<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: 404 Error Handling part II</title>
	<atom:link href="http://www.scriptygoddess.com/archives/2004/03/18/404-error-handling-part-ii/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.scriptygoddess.com/archives/2004/03/18/404-error-handling-part-ii/</link>
	<description></description>
	<lastBuildDate>Tue, 10 Jan 2012 01:21:38 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Francois</title>
		<link>http://www.scriptygoddess.com/archives/2004/03/18/404-error-handling-part-ii/comment-page-1/#comment-17850</link>
		<dc:creator>Francois</dc:creator>
		<pubDate>Thu, 17 Mar 2005 13:35:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2004/03/18/404-error-handling-part-ii/#comment-17850</guid>
		<description>I&#039;ve added two lines to your 404 PHP script.

404 errors with no referer are not that useful. Here&#039;s a line that indicates in the subject of the email that there is no referer to this 404 alert:

if($HTTP_REFERER == &quot;&quot;) $subject .= &quot; [no referer]&quot;;

I also add a Google link search to every email: even where there is no referer, I can look for error sources.

$message .= &quot;No referrer? Google this
link:\nhttp://www.google.com/search?q=link:$domain$REQUEST_URI\n\n</description>
		<content:encoded><![CDATA[<p>I&#039;ve added two lines to your 404 PHP script.</p>
<p>404 errors with no referer are not that useful. Here&#039;s a line that indicates in the subject of the email that there is no referer to this 404 alert:</p>
<p>if($HTTP_REFERER == &#034;&#034;) $subject .= &#034; [no referer]&#034;;</p>
<p>I also add a Google link search to every email: even where there is no referer, I can look for error sources.</p>
<p>$message .= &#034;No referrer? Google this<br />
link:\nhttp://www.google.com/search?q=link:$domain$REQUEST_URI\n\n</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dasme</title>
		<link>http://www.scriptygoddess.com/archives/2004/03/18/404-error-handling-part-ii/comment-page-1/#comment-13591</link>
		<dc:creator>Dasme</dc:creator>
		<pubDate>Thu, 16 Dec 2004 03:25:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2004/03/18/404-error-handling-part-ii/#comment-13591</guid>
		<description>Just dug out this old script again to look for missing files after a recent site rebuild, and I too am having the problem where the script will stop counting up at 008... 

Any ideas on what is wrong? I&#039;ve traced it down to teh php function parse_ini_file, but can&#039;t find any solutions to this problem on the net.

Anyone fix this little bug?</description>
		<content:encoded><![CDATA[<p>Just dug out this old script again to look for missing files after a recent site rebuild, and I too am having the problem where the script will stop counting up at 008&#8230; </p>
<p>Any ideas on what is wrong? I&#039;ve traced it down to teh php function parse_ini_file, but can&#039;t find any solutions to this problem on the net.</p>
<p>Anyone fix this little bug?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: atog</title>
		<link>http://www.scriptygoddess.com/archives/2004/03/18/404-error-handling-part-ii/comment-page-1/#comment-11104</link>
		<dc:creator>atog</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2004/03/18/404-error-handling-part-ii/#comment-11104</guid>
		<description>&lt;trackback /&gt;&lt;strong&gt;404 script&lt;/strong&gt;
Holy Cow! Yesterday I made a custom 404 page using this script. The scripts sends you a mail each time a person hits a 404 page. It also keeps track of previous missing files so you only get a mail once for each new request.

So here&#039;s where the Hol...
</description>
		<content:encoded><![CDATA[<trackback /><strong>404 script</strong><br />
Holy Cow! Yesterday I made a custom 404 page using this script. The scripts sends you a mail each time a person hits a 404 page. It also keeps track of previous missing files so you only get a mail once for each new request.</p>
<p>So here&#039;s where the Hol&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: scrapblog</title>
		<link>http://www.scriptygoddess.com/archives/2004/03/18/404-error-handling-part-ii/comment-page-1/#comment-11103</link>
		<dc:creator>scrapblog</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2004/03/18/404-error-handling-part-ii/#comment-11103</guid>
		<description>&lt;trackback /&gt;&lt;strong&gt;Very very clever 404&lt;/strong&gt;
404 Error Handling part II...</description>
		<content:encoded><![CDATA[<trackback /><strong>Very very clever 404</strong><br />
404 Error Handling part II&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: shmuel</title>
		<link>http://www.scriptygoddess.com/archives/2004/03/18/404-error-handling-part-ii/comment-page-1/#comment-11101</link>
		<dc:creator>shmuel</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2004/03/18/404-error-handling-part-ii/#comment-11101</guid>
		<description>Ladysilver,

Thank you. That&#039;s exactly what the problem was and adjusting my path in the .htaccess file made everything &quot;right as rain&quot;. Thanks for your help.</description>
		<content:encoded><![CDATA[<p>Ladysilver,</p>
<p>Thank you. That&#039;s exactly what the problem was and adjusting my path in the .htaccess file made everything &#034;right as rain&#034;. Thanks for your help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: shmuel</title>
		<link>http://www.scriptygoddess.com/archives/2004/03/18/404-error-handling-part-ii/comment-page-1/#comment-11102</link>
		<dc:creator>shmuel</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2004/03/18/404-error-handling-part-ii/#comment-11102</guid>
		<description>Ok, here we go again. I&#039;ve got the script working on the server - it&#039;s emailing me correct URLs and correct referrers as far as I can tell. The only problem is once I reach 8 individual 404 errors in my missing.txt file the script starts repeating 008 as the currentKeyNum over and over again. This results in my receiving emails for files that I&#039;ve already been email about. Any thoughts?</description>
		<content:encoded><![CDATA[<p>Ok, here we go again. I&#039;ve got the script working on the server &#8211; it&#039;s emailing me correct URLs and correct referrers as far as I can tell. The only problem is once I reach 8 individual 404 errors in my missing.txt file the script starts repeating 008 as the currentKeyNum over and over again. This results in my receiving emails for files that I&#039;ve already been email about. Any thoughts?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ladysilver</title>
		<link>http://www.scriptygoddess.com/archives/2004/03/18/404-error-handling-part-ii/comment-page-1/#comment-11100</link>
		<dc:creator>ladysilver</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2004/03/18/404-error-handling-part-ii/#comment-11100</guid>
		<description>shmuel, the problem is probably in your .htaccess path. You have to careful how you setup your script redirect. For example, if you set up an URL path like &lt;i&gt;ErrorDocument 404 http://www.mysite.com/errordocs/404error.php&lt;/i&gt; then .htaccess is going to redirect as if it&#039;s going to a different website and you will get the script path in your email instead of the error path. Try putting your error documents in your root folder and write .htaccess as &lt;i&gt;ErrorDocument 404 /404error.php&lt;/i&gt;. See if that fixes it.</description>
		<content:encoded><![CDATA[<p>shmuel, the problem is probably in your .htaccess path. You have to careful how you setup your script redirect. For example, if you set up an URL path like <i>ErrorDocument 404 <a href="http://www.mysite.com/errordocs/404error.php" rel="nofollow">http://www.mysite.com/errordocs/404error.php</a></i> then .htaccess is going to redirect as if it&#039;s going to a different website and you will get the script path in your email instead of the error path. Try putting your error documents in your root folder and write .htaccess as <i>ErrorDocument 404 /404error.php</i>. See if that fixes it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: shmuel</title>
		<link>http://www.scriptygoddess.com/archives/2004/03/18/404-error-handling-part-ii/comment-page-1/#comment-11099</link>
		<dc:creator>shmuel</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2004/03/18/404-error-handling-part-ii/#comment-11099</guid>
		<description>/me is confused. I put your script up on my site. It seems to work just fine but no matter what I request from my server (i.e. shmuel.org/blahblah ) the script only ever sees this as shmuel.org/missing.php - the file that contains this script and my 404 error. Any ideas?</description>
		<content:encoded><![CDATA[<p>/me is confused. I put your script up on my site. It seems to work just fine but no matter what I request from my server (i.e. shmuel.org/blahblah ) the script only ever sees this as shmuel.org/missing.php &#8211; the file that contains this script and my 404 error. Any ideas?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Murilo</title>
		<link>http://www.scriptygoddess.com/archives/2004/03/18/404-error-handling-part-ii/comment-page-1/#comment-11098</link>
		<dc:creator>Murilo</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2004/03/18/404-error-handling-part-ii/#comment-11098</guid>
		<description>Hi,

I&#039;ve been searching for a PHP version of this script 

http://www.hotscripts.com/Detailed/3160.html

for ages now. Can you guys help me maybe?

As the original page seems to be down, I could make it avaiable to someone willing to port it from Perl.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I&#039;ve been searching for a PHP version of this script </p>
<p><a href="http://www.hotscripts.com/Detailed/3160.html" rel="nofollow">http://www.hotscripts.com/Detailed/3160.html</a></p>
<p>for ages now. Can you guys help me maybe?</p>
<p>As the original page seems to be down, I could make it avaiable to someone willing to port it from Perl.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jennifer</title>
		<link>http://www.scriptygoddess.com/archives/2004/03/18/404-error-handling-part-ii/comment-page-1/#comment-11097</link>
		<dc:creator>Jennifer</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2004/03/18/404-error-handling-part-ii/#comment-11097</guid>
		<description>Yes - you can just add it to your existing 404 page (without having to deal with the .htaccess stuff. That was just *extra* information not specifically relating to the script) - however, if your 404 is .html you may need to do something else (either changing the extension to .php or some other setting on the server) so the server will process the php code on that page.</description>
		<content:encoded><![CDATA[<p>Yes &#8211; you can just add it to your existing 404 page (without having to deal with the .htaccess stuff. That was just *extra* information not specifically relating to the script) &#8211; however, if your 404 is .html you may need to do something else (either changing the extension to .php or some other setting on the server) so the server will process the php code on that page.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

