hey all, I am trying to make a simple script that detects the URL, and changes some CSS attributes accordingly. I have done all the script, but I have encountered a problem. I could call the function that gets the page file name in the include page, but then it only detects the file name of the include page, but for the script to operate correctly it needs to detect the main file name.
Heres a layout of how it works:
I have tried it and I get this error: Fatal error: Call to undefined function: curpagename() in /home/killerch/public_html/templates/header.php on line 61file.php [
include to header.php - for cosmetical reasons the div tag im editing needs to be in this file. This is also the file that contains the script that needs the function.
actual function here.
]
I know what it means, I just cant see any logical way to get past it :S
Thanks



Reply With Quote
) heres the page I need to detect through header.php.

Bookmarks