Gossamer Forum
Home : General : Chit Chat :

Parsing the page URL

Quote Reply
Parsing the page URL
Hi

We use the following to parse a referer url: my $ref = $ENV{HTTP_REFERER} || 'nowhere'; return $ref

What would we use to parse the very page being viewed URL?
Regards
KaTaBd

Users plug In - Multi Search And Remote Search plug in - WebRing plug in - Muslims Directory
Quote Reply
Re: [katabd] Parsing the page URL In reply to
This should help:

Code:
REQUEST_URI => /cgi-bin/script.cgi?do=category_add
SCRIPT_NAME => /cgi-bin/script.cgi

REQUEST_URI includes the full request including query string. SCRIPT_NAME is the same as REQUEST_URI less the query string.

~Charlie
Quote Reply
Re: [Chaz] Parsing the page URL In reply to
Thanks

What I really need is to print the very page the users is viewing URL no matter if it is par of script or not for Instant translation service we offer..

Lets say I am the GT webmaster and I want every page within the forum to print the URL it resides on.. what will I use?
Regards
KaTaBd

Users plug In - Multi Search And Remote Search plug in - WebRing plug in - Muslims Directory