It seems as if I cannot use the $_SERVER
vars in a command line script in PHP as the return seems to be blank? If this is the case then does anyone have a suggestion for getting the IP of the server I am running the script on?
Thanks in advance.
It seems as if I cannot use the $_SERVER
vars in a command line script in PHP as the return seems to be blank? If this is the case then does anyone have a suggestion for getting the IP of the server I am running the script on?
Thanks in advance.