RE: [PHP4BETA] Accessing server variables from php scripts...

From: Date: Mon, 20 Dec 1999 18:14:02 +0000
Subject: RE: [PHP4BETA] Accessing server variables from php scripts...
Groups: php.version4 
Request: Send a blank email to php-version4+get-8237@lists.php.net to get a copy of this message
Samuel, Sure, sorry about that. I have a very simple script that looks like this: <HTML> <HEAD><TITLE>Test</TITLE></HEAD> <BODY> <? echo $SCRIPT_NAME ?> </BODY> </HTML> The error I get is: PHP Warning: Undefined variable: SCRIPT_NAME in <path to file> on line <line number>. I get the same error with any of the ISAPI variables as well as things such as HTTP_REFERER which I would expect to exist. Thanks! Ryan Robertson Palm Development Support "Samuel Liddicott" <sam@campbellsci.co.uk> on 12/20/99 10:04:26 AM Sent by: "Samuel Liddicott" <sam@campbellsci.co.uk> To: Ryan Robertson/MTN/US/3Com, php4beta@lists.php.net cc: Subject: RE: [PHP4BETA] Accessing server variables from php scripts... Its always best if you give an example of the code that didn't work, describe what actually happened and what you expected to happen. Sam > -----Original Message----- > From: Ryan_Robertson@3com.com [mailto:Ryan_Robertson@3com.com] > Sent: Monday, December 20, 1999 05:51 PM > To: php4beta@lists.php.net > Subject: [PHP4BETA] Accessing server variables from php scripts... > > > > > Hello, > > I can't access any server variables from my php scripts. The > error file says > that each variable is undefined. > > I've looked through the PHP.ini file to make sure everything > appropriate is > turned on (ie: gpc_globals, track_vars, etc), > but nothing seems to help. Is there something else I need to enable? > > I'm running PHP on an NT box with SP 5 and IIS. > > Thanks! > > Ryan Robertson > Palm Development Support > > > > -- > PHP 4.0 Beta Mailing List <http://www.php.net/version4/> > To unsubscribe, e-mail: php4beta-unsubscribe@lists.php.net > For additional commands, e-mail: php4beta-help@lists.php.net > To contact the list administrators, e-mail: php4beta-admin@lists.php.net

« previous php.version4 (#8237) next »