Error Pages

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
BShurilla09
Forum Newbie
Posts: 1
Joined: Sat Jul 17, 2010 12:30 am

Error Pages

Post by BShurilla09 »

Is there a way with the PHP to create an error page automaticllay i.e. the same error picture and contact form but it automatically puts in Error 404 The page your looking for either doesn't exist, or it is broken. or error 403 Forbidden??
User avatar
Salaria
Forum Commoner
Posts: 34
Joined: Fri Feb 13, 2009 2:50 am
Location: India
Contact:

Re: Error Pages

Post by Salaria »

Hi,

This is possible using .htaccess you can setup custom page for error and can also dynamic page for the same by setting
"ErrorDocument 404 /notfound.html" into .htaccess

More more details please have a look at:
http://www.thesitewizard.com/archive/custom404.shtml
User avatar
liljester
Forum Contributor
Posts: 400
Joined: Tue May 20, 2003 4:49 pm

Re: Error Pages

Post by liljester »

if youre using IIS, you can define custom error files from the IIS Admin tool.
Post Reply