News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

NETTUTS.com:
404/403 Website Error Pages With PHP Auto-Mailer
April 20, 2009 @ 07:57:14

NETTUTS.com has posted this new tutorial you can use to monitor when and what pages people are trying to get to on your site that aren't found:

Although many web developers rely on server logs to keep an eye out for hits on error pages, I'm going to take a different approach by using a PHP generated email. In addition, we will spice up the design a bit, add basic navigation and link to the website sitemap.

He briefly explains what error (404/403) pages are and how they work before getting into the mailing portion - a script that, using the phpMailer tool, notifies you when people hit the 404/403 page and includes things like their IP, where they came from and what the requested page was.

0 comments voice your opinion now!
email automailer page message error website 403 404


blog comments powered by Disqus

Similar Posts

DevShed: Displaying Meaningful Error Messages when Auto Loading Classes in PHP 5

Sasa Stamenkovic's Blog: Create Kick-ass Website in no Time with Silex

Daniel Cousineau's Blog: Quickie: Module-specific Error Controllers in Zend Framework (1.5)

PHPWomen.org: Zend Conference wiki page

Jani Hartikainen's Blog: The "do X or die()" pattern must die


Community Events





Don't see your event here?
Let us know!


framework library update symfony podcast laravel language community release package interview introduction series api tips zendserver deployment unittest install opinion

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework