|No such thing as a small change|
404 image errorsby katgirl (Hermit)
|on Jun 11, 2002 at 12:13 UTC||Need Help??|
katgirl has asked for the
wisdom of the Perl Monks concerning the following question:
I have made a script for my website which catches 404 errors and logs them to a text file for later viewing, and shows a message to the person who made the error.
What I want to do now, is change the script slightly so that if it is an image that does not exist, the script will show another image that will appear instead of the image that was linked. I will show you what I have:
This works fine for text, html, shtml, anything, really. But when I deliberately look for a jpg or gif that is not there, it shows me the default 404 page. Why does it do that, what have I done wrong?
Thank you in advance, you're all great,