Jump to content

Can you detect where a browser was before it got to php page?


DamienRoche

Recommended Posts

Just thought. Is it possible to do this on a server level?

 

Like say I have two scripts:

 

script1.php

script2.php

 

and in script1.php I INCLUDE script2.php....can I determine within script2 that it was included in script1?

 

Thanks.

If you are trying to determine on your site what page someone came from, use a session variable (set it to a value or string that indicates each page and check it on the next page.) If you are trying to require someone to get to a page after some initial page (like a login), you should be using sessions anyway to indicate they are logged in.

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.