PHP has in built facility to detect remote browser or IP address and other properties. These values are assigned to special variable. In this case, it is assigned to variable called REMOTE_ADDR. You can use any one of the following statement to obtained or read IP address:
$ip = $_SERVER['REMOTE_ADDR'];
OR
$ip= $REMOTE_ADDR;
Here is sample code:
<?
$ip= $REMOTE_ADDR;
echo “<br> [...]
Q. Can You tell me more about Linux /etc/group file?
Eject allows removable media (typically a CD-ROM, floppy disk, tape, or JAZ or ZIP disk) to be ejected under software control. The command can also control some multi-disc CD-ROM changers, the auto-eject feature supported by some devices, and close the disc tray of [...]
What is the difference between Linux and UNIX?
Q. Can you explain /etc/shadow file used under Linux or UNIX?
Q. Can you explain /etc/passwd file format for Linux and UNIX operating systems?
Explains Linux user account concept and related files with an example.