View Full Version : Link broken? Report it!
Danny
March 5th, 2005, 01:53
Hey,
Is there a script floating around anywere so i can do the following:
Put a link called, Report Broken Link, onto my error 404 page, and when the user click the link it sends me an e-mail with a message with the page they were trying to access?
Make sense?
Pauly
March 5th, 2005, 04:04
Makes sense and I'm unsure of a script that does this. Could always check the access logs for 404 errors, AWStats has this as I'm sure others do to ...
Jamie
March 5th, 2005, 09:41
I don't know of a script Danny but it shouldn't be too hard, should it?
On the 404 error page simply call using PHP the page that you came from, I am sure one of the PHP experts here can tell us how to do this.
Insert it in a form textbox if it is easier, then use the 404 error page as you would with a contact form processing script. Just tell it to email you using the normal contact form style with the url from the textbox in.
Then, you would go to that page and run a link checker on it.
Danny
March 5th, 2005, 13:46
Lol, a little advanced for me, still learning PHP Includes ;)
Would it be easier to have a form in which the user can type the files they are trying to access?
Pauly
March 5th, 2005, 15:13
Clicking a link is much easier. Something about submitting the referrer?
Danny
March 5th, 2005, 15:15
Can someone point me in the direction of what exactly im searching for script wise?
Pauly
March 5th, 2005, 15:17
I'm afraid I don't know, maybe someone else might, I'm a complete amateur with PHP I only know includes and variables :lol:
However, it's a guess that the script would submit the referrer, try searching for 'Broken link reporter'.
Danny
March 5th, 2005, 15:21
OK cheers, seems your already way more advanced than me in php then ;)
Danny
March 5th, 2005, 15:23
http://www.codeave.com/asp/print.asp?u_log=119
I think thats what im looking for!
vBulletin® v3.6.8, Copyright ©2000-2010, Jelsoft Enterprises Ltd.