ArcticFox
01-24-2007, 07:45 PM
I've several pages I want logged. I had the entire PHP script on each page with the name of the page in the script (echo <div>Page: Index</div>, echo <div>Page: Email</div>, etc). Now I've put the script as its own .php page and have installed <?php include("php/logging.php"); ?> on all the pages I want to log.
The problem now is I have no idea which pages the logs are coming from. So I was thinking that I could just echo the URL of the page being logged at that time.
I know it's possible to document.write the URL with JS, but can it be done just PHP? I also thought about trying to echo the page title as well, but I dont know if that's even possible with PHP.
:(
The problem now is I have no idea which pages the logs are coming from. So I was thinking that I could just echo the URL of the page being logged at that time.
I know it's possible to document.write the URL with JS, but can it be done just PHP? I also thought about trying to echo the page title as well, but I dont know if that's even possible with PHP.
:(