Jump to content

How do I check if a user is in root or a sub folder?


jamesxg1

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.