jamesxg1 Posted March 24, 2010 Share Posted March 24, 2010 Hiya! I was wondering how I would make an IF statment and check if a user is in the root folder or a sub folder? Many thanks James. Link to comment https://forums.phpfreaks.com/topic/196350-how-do-i-check-if-a-user-is-in-root-or-a-sub-folder/ Share on other sites More sharing options...
MatthewJ Posted March 24, 2010 Share Posted March 24, 2010 Well, that makes me think that they would be viewing a page in the root or sub folder, how about adding a location variable to your pages or appending one to your url's that you could check for? Maybe I'm confused by the question Link to comment https://forums.phpfreaks.com/topic/196350-how-do-i-check-if-a-user-is-in-root-or-a-sub-folder/#findComment-1031010 Share on other sites More sharing options...
jamesxg1 Posted March 24, 2010 Author Share Posted March 24, 2010 Yea they will be viewing pages in the root and sub folders, this has crossed my mind also what has crossed my mind is using the SERVER_URI and checking if it is the root folder in a IF statment, but I was hopeing there is and eaiser solution. Many thanks James Link to comment https://forums.phpfreaks.com/topic/196350-how-do-i-check-if-a-user-is-in-root-or-a-sub-folder/#findComment-1031012 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.