Re: site root variable (for Generic Unix and Windows)
| From: | Harshdeep S Jawanda | Date: | Mon, 19 Mar 2001 19:02:54 +0000 |
| Subject: | Re: site root variable (for Generic Unix and Windows) | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-44614@lists.php.net to get a copy of this message | ||
Hi,
ben.2.edwards@bt.com wrote:
> What seems crazy to me is that you cant just set a varable (i.e. siteroot)
> in common.inc and refer to URLs at $siteroot."/page.html".
Are you sure that
$siteroot = "$HTTP_HOST:$SERVER_PORT"
doesn't work for you (as an absolute link seems ok to you)? Have a look at
http://www.php.net/manual/it/language.variables.predefined.php
and experiment around.
--
Regards,
Harshdeep Singh Jawanda.