In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Christian Blichmann) wrote:
> "Cc Zona" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > You can look over the environment vars available to you with a quick call > > to phpinfo() <http://php.net/phpinfo>. > > Thanks for replying, but as Philip stated in his reply to my question > its that the actual location doesn't appear in the environment block. That's true, the URL does not appear there as a single preset variable; it's up to you to re-assemble a URL out of the variables that are available, and thus the need to scan the vars phpinfo() has to offer. Since you're using PHP as a CGI, somewhat different variables get set than when PHP is run as a module, so a call to phpinfo() is the best way to identify the right vars for accomplishing your task. Question: before you dismissed phpinfo() as useless, did you call it and look at what's there? Because more than likely the info that you envision extracting in a two step process (access URL, break down into needed components) can be directly accessed from one or more environment/server vars. -- CC -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php