Custom Error Pages with PHP

 
Post new topic   Reply to topic    Aprelium Forum Index -> PHP
View previous topic :: View next topic  
Author Message
langguy
-


Joined: 01 Jul 2003
Posts: 2

PostPosted: Tue Jul 01, 2003 7:27 am    Post subject: Custom Error Pages with PHP Reply with quote

Abyss doesn't seem to like custom error pages written in PHP. They always generate internal [500] errors. I have PHP properly installed and working. The CGI path for PHP is the root directory [eg. all PHP scripts can be executed on my server regardless of what directory it's in]. I have my error pages in the /errors/ directory. If I request http://127.0.0.1/errors/404error.php it processes fine. If I request a file that doesnt exist, however, I don't get my 404error.php file, but the standard IE 404 page. I have the parameters in the options for custom error pages set correctly [I believe]: Error Code = 404, Assiciated URL = /errors/error404.php. If I make a copy of error404.php but use an HTML extension, it loads correctly, but it will not load the custom error page as a PHP file. My log says it generates errors 404 and 500. What can I do?
Back to top View user's profile Send private message
badai
-


Joined: 24 Apr 2003
Posts: 82

PostPosted: Tue Jul 01, 2003 2:18 pm    Post subject: Re: Custom Error Pages with PHP Reply with quote

mine work just fine.


langguy wrote:
Abyss doesn't seem to like custom error pages written in PHP. They always generate internal [500] errors. I have PHP properly installed and working. The CGI path for PHP is the root directory [eg. all PHP scripts can be executed on my server regardless of what directory it's in]. I have my error pages in the /errors/ directory. If I request http://127.0.0.1/errors/404error.php it processes fine. If I request a file that doesnt exist, however, I don't get my 404error.php file, but the standard IE 404 page. I have the parameters in the options for custom error pages set correctly [I believe]: Error Code = 404, Assiciated URL = /errors/error404.php. If I make a copy of error404.php but use an HTML extension, it loads correctly, but it will not load the custom error page as a PHP file. My log says it generates errors 404 and 500. What can I do?
Back to top View user's profile Send private message
os17fan
-


Joined: 21 Mar 2003
Posts: 531
Location: USA

PostPosted: Tue Jul 01, 2003 11:06 pm    Post subject: Reply with quote

Try typing the full path URL instaed of using /errors/error404.php , use

http://your_domain/errors/error404.php 8)

Mine doesn't work with 404 errors localy either
_________________
This web server is the best !
Back to top View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
badai
-


Joined: 24 Apr 2003
Posts: 82

PostPosted: Wed Jul 02, 2003 2:12 am    Post subject: Reply with quote

mine work fine. i put it in root directory

os17fan wrote:
Try typing the full path URL instaed of using /errors/error404.php , use

http://your_domain/errors/error404.php 8)

Mine doesn't work with 404 errors localy either
Back to top View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Thu Jul 03, 2003 12:54 pm    Post subject: Re: Custom Error Pages with PHP Reply with quote

The fact that IE displays its own error page is not related to the server. You should configure IE to not display "friendly error pages".
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
langguy
-


Joined: 01 Jul 2003
Posts: 2

PostPosted: Thu Jul 03, 2003 5:59 pm    Post subject: Reply with quote

os17fan: your reply was the only one that was helpful. that solved the problem.

badai: I originally had it in the root directory, but it didn't work there either

aprelium: I think it is server-related. If i deleted my entry in the custom error pages, I would get abyss' standard 404 page. But, when I put my own in there, I got IE's 404 page.

But, I have it working now, thanks
Back to top View user's profile Send private message
badai
-


Joined: 24 Apr 2003
Posts: 82

PostPosted: Sun Jul 06, 2003 2:27 pm    Post subject: Reply with quote

you don't believe me? fire up your IE and go to

http://tago.pointnetwork-asia.com/any_thing

see the php custom error page yourself

langguy wrote:
os17fan: your reply was the only one that was helpful. that solved the problem.

badai: I originally had it in the root directory, but it didn't work there either

aprelium: I think it is server-related. If i deleted my entry in the custom error pages, I would get abyss' standard 404 page. But, when I put my own in there, I got IE's 404 page.

But, I have it working now, thanks
Back to top View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> PHP All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group