Re: Newbie: [PHP] $HTTP_POST_VARS

From: Date: Tue, 20 Feb 2001 22:07:37 +0000
Subject: Re: Newbie: [PHP] $HTTP_POST_VARS
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-40822@lists.php.net to get a copy of this message
From: "Chris Lee" <lee@mediawaveonline.com> > I dont think HTTP_POST_VARS is what your looking for I think its more > HTTP_SERVER_VARS > > <?php > echo $HTTP_SERVER_VARS['HTTP_HOST']; > ?> > > That should work but imho better practice is to use getenv(): <?php echo getenv("HTTP_HOST"); ?> This is especially useful inside a function, as you then do not need to declare $HTTP_SERVERS_VARS as a global variable. > > ""Phil Labonte"" <plabonte@atreus-systems.com> wrote in message > news:331AB909C797484B84CF8CF3C711BD4E0992A2@xchange... > > I have a Newbie question, > > > > What is the syntax to get the info from HHTP_POST_VARS? > > > > I mean what is the syntax to get the variable COMPUTERNAME for example or > to > > get HTTP_HOST? > > > > Thanks > > > > > > Phil Labonte > > Systems Administrator > > Atreus Systems > > (p) 613-233-1741 x243 > > (c) 613-277-1697 > > plabonte@atreus-systems.com > > > >

« previous php.general (#40822) next »