Posted by NC on 11/12/42 11:47
Peter wrote:
>
> I am using this code to retrieve the current URL:
>
> function selfURL() {
....
> }
>
> which returns the URL of the current PHP script.
Why? What's wrong with $_SERVER['SCRIPT_URI']?
> But, I would like it to return the URL of the html page
> that preceeded this script.
That would be $_SERVER['HTTP_REFERER'].
Cheers,
NC
[Back to original message]
|