Re: [PHP] Intentionally generate an Internal Server Error

2011-08-07 Thread Tamara Temple
On Aug 6, 2011, at 10:50 PM, Ghodmode wrote: I'd like to use PHP to intentionally generate an Error 500 Internal Server Error. Here's the problem. My site has this error intermittently and I'd like to monitor the error log to figure out the problem. Unfortunately, I don't get to see the

Re: [PHP] Intentionally generate an Internal Server Error

2011-08-07 Thread Ashley Sheridan
Tamara Temple tamouse.li...@gmail.com wrote: On Aug 6, 2011, at 10:50 PM, Ghodmode wrote: I'd like to use PHP to intentionally generate an Error 500 Internal Server Error. Here's the problem. My site has this error intermittently and I'd like to monitor the error log to figure out the

Re: [PHP] Intentionally generate an Internal Server Error

2011-08-07 Thread Paul Scott
On Sun, 2011-08-07 at 07:30 +0100, Ashley Sheridan wrote: Quickest way I know of is to mess up an .htaccess file! Another good way to do it on shared hosts is to give a file incorrect permissions and try and access it -- -- Paul http://www.paulscott.za.net http://twitter.com/paulscott56

Re: [PHP] Intentionally generate an Internal Server Error

2011-08-07 Thread Kirk Bailey
Access a non existant file. Woops! On 8/7/2011 2:42 AM, Paul Scott wrote: On Sun, 2011-08-07 at 07:30 +0100, Ashley Sheridan wrote: Quickest way I know of is to mess up an .htaccess file! Another good way to do it on shared hosts is to give a file incorrect permissions and try and access it

Re: [PHP] Intentionally generate an Internal Server Error

2011-08-07 Thread Ghodmode
On Mon, Aug 8, 2011 at 11:35 AM, Kirk Bailey kbai...@howlermonkey.netwrote: Access a non existant file. Woops! That's a 404, not a 500.

[PHP] Intentionally generate an Internal Server Error

2011-08-06 Thread Ghodmode
I'd like to use PHP to intentionally generate an Error 500 Internal Server Error. Here's the problem. My site has this error intermittently and I'd like to monitor the error log to figure out the problem. Unfortunately, I don't get to see the actual Apache error log and my hosting provider's

Re: [PHP] Intentionally generate an Internal Server Error

2011-08-06 Thread shiplu
On Sun, Aug 7, 2011 at 9:50 AM, Ghodmode ghodm...@ghodmode.com wrote: I'd like to use PHP to intentionally generate an Error 500 Internal Server Error. Here's the problem. My site has this error intermittently and I'd like to monitor the error log to figure out the problem. Unfortunately,

Re: [PHP] Intentionally generate an Internal Server Error

2011-08-06 Thread Ghodmode
On Sun, Aug 7, 2011 at 12:05 PM, shiplu shiplu@gmail.com wrote: One way would be, write a php extension and perform segfaults there. Unfortunately, I don't know how to write an extension or intentionally perform a segmentation fault. If I did know how to intentionally perform a

Re: [PHP] Intentionally generate an Internal Server Error

2011-08-06 Thread shiplu
You can search for a buggy extension that has known issue of segmentation faults. -- Shiplu Mokadd.im Follow me, http://twitter.com/shiplu Innovation distinguishes between follower and leader

Re: [PHP] Intentionally generate an Internal Server Error

2011-08-06 Thread shiplu
By the way, You can also try sending proper html page and http header that will copy the Internal Server Error. That is completely possible in php. Just use the header() function. -- Shiplu Mokadd.im My talks, http://talk.cmyweb.net Follow me, http://twitter.com/shiplu Innovation distinguishes

Re: [PHP] Intentionally generate an Internal Server Error

2011-08-06 Thread Ghodmode
On Sun, Aug 7, 2011 at 12:38 PM, shiplu shiplu@gmail.com wrote: By the way, You can also try sending proper html page and http header that will copy the Internal Server Error. That is completely possible in php. Just use the header() function. Actually, I learned from reading a previous