Re: [PHP] php causes HTTP 500, but results in blank page in apache

2011-06-04 Thread Sean Greenslade
That's what I was thinking, thanks for confirming it. On Jun 3, 2011 3:49 PM, Tamara Temple tamouse.li...@gmail.com wrote: On Jun 2, 2011, at 7:09 PM, Stephon Chen wrote: Hello Sean, 1. while I directed connected to these error pages such as 403, 404, and 500.html, they works correctly,

Re: [PHP] php causes HTTP 500, but results in blank page in apache

2011-06-03 Thread Sean Greenslade
What happens if you create a test page with just the 500 header and some html content in it? IIRC, apache won't override a php-generated error page. On Jun 2, 2011 8:09 PM, Stephon Chen step...@gmail.com wrote: Hello Sean, 1. while I directed connected to these error pages such as 403, 404, and

Re: [PHP] php causes HTTP 500, but results in blank page in apache

2011-06-03 Thread Tamara Temple
On Jun 2, 2011, at 7:09 PM, Stephon Chen wrote: Hello Sean, 1. while I directed connected to these error pages such as 403, 404, and 500.html, they works correctly, showing correct error page 2. but while I use something like header('HTTP/1.1 500') to trigger apache 500 the content of

Re: [PHP] php causes HTTP 500, but results in blank page in apache

2011-06-02 Thread Sean Greenslade
So do you get the contents of that page in the response? What happens when you browse to that page manually? On Jun 1, 2011 2:14 AM, Stephon Chen step...@gmail.com wrote: All 403, 404, 500.html are static html pages like: div 500 error happens /div On Wed, Jun 1, 2011 at 14:10, Tamara

Re: [PHP] php causes HTTP 500, but results in blank page in apache

2011-06-02 Thread Stephon Chen
Hello Sean, 1. while I directed connected to these error pages such as 403, 404, and 500.html, they works correctly, showing correct error page 2. but while I use something like header('HTTP/1.1 500') to trigger apache 500 the content of 500.html does not show, but blank page only. both

Re: [PHP] php causes HTTP 500, but results in blank page in apache

2011-06-01 Thread Tamara Temple
On May 31, 2011, at 8:14 AM, Stephon Chen wrote: Hello Sean, Here is my apache config for error handling. 403, 404 works fine, but 500 shows blank page Alias /errorpage/ /usr/local/www/apache22/errorpage/ Directory /usr/local/www/apache22/errorpage/ AllowOverride None Options -Indexes

Re: [PHP] php causes HTTP 500, but results in blank page in apache

2011-06-01 Thread Stephon Chen
All 403, 404, 500.html are static html pages like: div 500 error happens /div On Wed, Jun 1, 2011 at 14:10, Tamara Temple tamouse.li...@gmail.com wrote: On May 31, 2011, at 8:14 AM, Stephon Chen wrote: Hello Sean, Here is my apache config for error handling. 403, 404 works fine, but 500

Re: [PHP] php causes HTTP 500, but results in blank page in apache

2011-05-31 Thread Sean Greenslade
Have you checked your apache settings for generating error pages? How is it configured to handle 500 errors? On May 30, 2011 4:51 AM, Stephon Chen step...@gmail.com wrote: Hello all, I use a test script below to generate HTTP 500 status: ?php header('HTTP/1.1 500 Internal Server Error'); ?

Re: [PHP] php causes HTTP 500, but results in blank page in apache

2011-05-31 Thread Stephon Chen
Hello Sean, Here is my apache config for error handling. 403, 404 works fine, but 500 shows blank page Alias /errorpage/ /usr/local/www/apache22/errorpage/ Directory /usr/local/www/apache22/errorpage/ AllowOverride None Options -Indexes FollowSymLinks MultiViews Order allow,deny

[PHP] php causes HTTP 500, but results in blank page in apache

2011-05-30 Thread Stephon Chen
Hello all, I use a test script below to generate HTTP 500 status: ?php header('HTTP/1.1 500 Internal Server Error'); ? It causes HTTP 500 in apache log, but apache shows blank page instead of HTTP 500 error page But 403, 404 works correctly. Why this thing occurs? And is there any soultion?