Finding Page Path
Posted: Fri Feb 25, 2005 5:35 pm
How would I go about getting the file and directory (or in other words full path) of the file that's being executing into a variable?
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
Code: Select all
$path = $_SERVERї'PHP_SELF'] . (!empty($_SERVERї'QUERY_STRING']) ? '?' . $_SERVERї'QUERY_STRING'] : '');