Errata...
Harshdeep S Jawanda wrote:
> $siteroot = "$HTTP_HOST:$SERVER_PORT"
Sorry, this should be
$siteroot = "http://$HTTP_HOST:$SERVER_PORT"
--
Regards,
Harshdeep Singh Jawanda.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For ad
Hi,
[EMAIL PROTECTED] 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
Hi,
Matt Williams wrote:
> you could make your links absolute
> ie..
>
> /cat.html
Properly speaking, even this link is relative :-) (it is relative to the
document root of the web server). I like to call such links "impure relative"
links :-). I call links of the type "../cat.html" "pure relat
> Agreed - use absolute paths - but DONT include the protocol://server
Sorry, I didn't mean it to sound like I meant include the above
M@
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact th
ginal Message-
From: Matt Williams [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 19, 2001 1:23 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: [PHP] site root variable (for Generic Unix and Windows)
you could make your links absolute
ie..
/cat.html
so if you're in http://green/adm
you could make your links absolute
ie..
/cat.html
so if you're in http://green/admin/admin.html
you would link to
http://green/cats.html
HTH
M@
> I am developing a PHP site under windows which is going to be deployed
> eventually on Unix (indeed when life gets less hectic will also
> be dev
6 matches
Mail list logo