|
|
Joined: Sep 2001
Posts: 194
Member
|
Member
Joined: Sep 2001
Posts: 194 |
Hi I have set up my web site so that if there is an "Internal 500 Error" from a cgi script, it goes directly to an "error page" that is a HTML file where I can put anything on it.
Is there any way I can put some code in this "error page" that will record the URL that was clicked (hence the cgi script being called by that URL) to enable loading of this "error page"
I assume it can be done by Javascript or some Apache ENV variable? Thanks in advance!!
|
|
|
|
Joined: Oct 2000
Posts: 743
Moderator / Code Fixer
|
Moderator / Code Fixer
Joined: Oct 2000
Posts: 743 |
Easy, just write a script that uses the environment variables
eg: $remote_host = $ENV{'REMOTE_HOST'}; $referral_address = $ENV{'HTTP_REFERER'};
then just print the results to a file on your server.
Only a few lines of code!
I can't afford a good signature editor
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 254
Joined: January 2000
|
|
Forums63
Topics37,575
Posts293,931
Members13,824
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|
|