houssam_ballout Posted January 9, 2007 Share Posted January 9, 2007 HelloI need to get the page name of the page that I am in using JavaScript , or PHP,I was using $_SERVER['PHP_SELF'], but its returning the url of the link for example its under folder webmin so the result is /webmin/pageName.phpI need to get only pageName.phpany help?Thanks Link to comment Share on other sites More sharing options...
Guest Kiwi Posted January 9, 2007 Share Posted January 9, 2007 When you run this code: <?= '<pre>' , print_r ( $_SERVER ) , '</pre>' ?> You'll find all $_SERVER variables, then there should be one like SCRIPT_FILENAME that only contains the filename.Good luck Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now