![]() |
How can I tell where the script is being called from?
Hello,
Here is what I want to do. I want to have a variable that tells me whether the page that is loaded is from the root directory (i.e. www.domain.com/xyz.php) or whether it is being called from the blog directory (i.e. www.domain.com/blog/xyz.php). Based on what pages are getting loaded, i want to be able to change things in the common header. How do I do this? Thanks |
Define a constant in each script, something like;
PHP Code:
PHP Code:
|
Check the constant VB_AREA.
|
All times are GMT. The time now is 07:03 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|