I created a script to search for, copy, compress and send files from a Cliet/Local PC to a Master PC.
The files need to be identified on the master PC. the format is
`UUID.IP.crc.gz`
So the PC running the script (Local), I need that PC's IP address.
I've tried using $_SERVER["REMOTE_ADDR"]
and $_SERVER['SERVER_ADDR']
, but none of those where defined.
Notice: Undefined index: SERVER_ADDR in C:\wamp\www\postEnginInstruction\properties.php on line 9
and the same for "REMOTE_ADDR"
What am I doing wrong?