Re: help on using 'request_uri' to make a front-end site
| From: | Donn Ingle | Date: | Tue, 18 Mar 2008 07:50:03 +0000 |
| Subject: | Re: help on using 'request_uri' to make a front-end site | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-271699@lists.php.net to get a copy of this message | ||
Shawn McKenzie wrote:
> Does seem strange. Try:
> <head>
> <base href="http://localhost/~donn/blah/index.php"
> />
> </head>
> Then just use /home, /use1 etc... Might work.
Right, I'll give it a go. It's not much different from wiring-in a php var
naming the base with {$base}/use1 being the form.
The thing that would help here is if I could get a reliable way to extract
the working 'path' (from an http:// pov) from the $_SERVER array
somehow.
Each of them gives a result tantalizingly close to the base, but they get
it wrong in various ways.
Well, thanks for your help.
\d