I feel like this is an easy answer but google isnt helping on this one right now
I need to get the url up to the folder that a script is in
so
http://www.testing.com/test1/test2/myScript.php
in myScript.php, how could I have it echo out
http://www.testing.com/test1/test2/
I need this for the paging script I use, any help appreciated =)
$_SERVER['SCRIPT_NAME']
//returns = /test1/test2/myScript.php
This is perfect if I can get a function to remove the myScript.php part from it?