RE: [PHP] why is SERVER_ADDR empty from command line script?

From: Date: Sun, 11 May 2003 23:30:27 +0000
Subject: RE: [PHP] why is SERVER_ADDR empty from command line script?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-147235@lists.php.net to get a copy of this message
> -----Original Message----- > From: Daevid Vincent [mailto:daevid@daevid.com] > > How come I can't get my SERVER_ADDR when running a script via the > command line (yet it works if I run it via web page)? Uh, because you're running your script in the context of a command line instead of the context of a Web server ?? (Hint - a server sets SERVER_ADDR ...)

« previous php.general (#147235) next »