From: "Chris Lee" <[EMAIL PROTECTED]>

> 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"" <[EMAIL PROTECTED]> wrote in message
> 331AB909C797484B84CF8CF3C711BD4E0992A2@xchange">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
> > [EMAIL PROTECTED]
> >
> >



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to