yarub Posted January 11, 2007 Share Posted January 11, 2007 Is there a function or something that would allow me to see the file that's being used either from the URL itself or somewhere? For instance, if I want to see if they're currently on "index.php", is there a way to see that? If they were on "members.php", how could I determine that? I've been doing scripts where I'd have index.php be the only page and then just use the $_GET but the site's getting far too large for that. =\Can anyone help? Quote Link to comment Share on other sites More sharing options...
magic2goodil Posted January 11, 2007 Share Posted January 11, 2007 well if they are logged in users, u can make a spot in your db to store the page they are on.create a function perhaps called switchPage($page) for switching pages..so when they click to goto another page, switchPage() updates the database for that user and shows what page they are on Quote Link to comment Share on other sites More sharing options...
yarub Posted January 11, 2007 Author Share Posted January 11, 2007 I figured it out. =D$filename = $_SERVER['PHP_SELF'];That prints out /index.php . Thank you for the reply. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.