Jump to content

Archived

This topic is now archived and is closed to further replies.

KittyKate

Get Location

Recommended Posts

I want to check to see what the location is to see if I need to print certain information or not. So, how do I pull the "*.php" part of address? I can figure out how to set it, or grab it within my HTML (using DOM), but how do I grab it on the server side?

Share this post


Link to post
Share on other sites
$_SEREVER['PHP_SELF'] or $_SERVER['SCRIPT_NAME'] or $_SEREVER['FILE_NAME']

check out the super globals array to see merits of each

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.