Juparis
08-12-2005, 01:09 PM
Once again, I've run into a little problem with my undeveloped PHP skills..
Plain and simply, I'd like to know: Is it possible for a PHP include to detect which page it's being loaded onto?
Example: If I were to have an include such as footer.php, and it is being called onto a page called works3t.php... Since this isn't works2t.php, would it be possible to change a small segment of the footer.php?
My actual situation is changing a different segment of a JavaScript code, but that's nothing to worry about until I can figure out how to detect the pages (if possible)..
Is this making sense to anyone? :confused:
Thanks in advance!
Plain and simply, I'd like to know: Is it possible for a PHP include to detect which page it's being loaded onto?
Example: If I were to have an include such as footer.php, and it is being called onto a page called works3t.php... Since this isn't works2t.php, would it be possible to change a small segment of the footer.php?
My actual situation is changing a different segment of a JavaScript code, but that's nothing to worry about until I can figure out how to detect the pages (if possible)..
Is this making sense to anyone? :confused:
Thanks in advance!