Working with PHP $_SERVER['SERVER_ADDR'] varible when used in command line script
<p>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?</p>

<p>Thanks in advance.</p>
