RE: [PHP] site root variable (for Generic Unix and Windows)

2001-03-19 Thread Matt Williams
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

RE: [PHP] site root variable (for Generic Unix and Windows)

2001-03-19 Thread Jeff
at a time to smarter .php as you get the coding done. Of course, you need a decent web server... Regards Jeff -Original 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

RE: [PHP] site root variable (for Generic Unix and Windows)

2001-03-19 Thread Matt Williams
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

Re: [PHP] site root variable (for Generic Unix and Windows)

2001-03-19 Thread Harshdeep S Jawanda
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

Re: [PHP] site root variable (for Generic Unix and Windows)

2001-03-19 Thread Harshdeep S Jawanda
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 a

Re: [PHP] site root variable (for Generic Unix and Windows)

2001-03-19 Thread Harshdeep S Jawanda
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