Re: [PHP] Intentionally generate an "Internal Server Error"
On Mon, Aug 8, 2011 at 11:35 AM, Kirk Bailey wrote: > Access a non existant file. Woops! > That's a 404, not a 500.
Re: [PHP] Intentionally generate an "Internal Server Error"
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 -- end Very Truly yours, - Kirk Bailey, Largo Florida kniht +-+ | BOX | +-+ think -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Intentionally generate an "Internal Server Error"
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 http://www.chisimba.com signature.asc Description: This is a digitally signed message part
Re: [PHP] Intentionally generate an "Internal Server Error"
Tamara Temple 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 problem. >> Unfortunately, I don't get to see the actual Apache error log and my >> hosting provider's error reporting system isn't working. Customer >> support just sends me canned responses stating that everything's fine >> and they can't reproduce the error, so I'd like to create a >> reproducible internal server error so that they can see that it's not >> showing up in the error log. >> >> I know that I can mess up something in the .htaccess file, but that >> would break the whole site. I don't want to do that. >> >> I know I could use header("HTTP/1.1 500 Internal Server Error"), but >> that means I would also have to provide the content of the Error 500 >> page. I want to kick off they're internal server error page. They >> don't give me to option to create one of my own. >> >> I'm using GoDaddy. >> >> Can someone suggest some invalid PHP code that should generate an >> internal server error? >> >> Thank you. > >I don't think it's that hard to generate an Internal Server Error. If >you have error reporting and such turned off and your code contains a >syntax error, that results in an Internal Server Error... > > > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, visit: http://www.php.net/unsub.php Quickest way I know of is to mess up an .htaccess file! Thanks, Ash http://www.ashleysheridan.co.uk -- Sent from my Android phone with K-9 Mail. Please excuse my brevity. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Intentionally generate an "Internal Server Error"
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 actual Apache error log and my hosting provider's error reporting system isn't working. Customer support just sends me canned responses stating that everything's fine and they can't reproduce the error, so I'd like to create a reproducible internal server error so that they can see that it's not showing up in the error log. I know that I can mess up something in the .htaccess file, but that would break the whole site. I don't want to do that. I know I could use header("HTTP/1.1 500 Internal Server Error"), but that means I would also have to provide the content of the Error 500 page. I want to kick off they're internal server error page. They don't give me to option to create one of my own. I'm using GoDaddy. Can someone suggest some invalid PHP code that should generate an internal server error? Thank you. I don't think it's that hard to generate an Internal Server Error. If you have error reporting and such turned off and your code contains a syntax error, that results in an Internal Server Error... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Intentionally generate an "Internal Server Error"
On Sun, Aug 7, 2011 at 12:38 PM, shiplu 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 message on this list (Subject: "php causes HTTP 500, but results in blank page in apache"), that using header() would require me to provide the content of the error page. That probably should still put a message in the error log, but it wouldn't be enough to convince the stupid tech support people at GoDaddy that it was an error. I want them to see their own error page and then fix the problem with the logging. -- > Shiplu Mokadd.im > My talks, http://talk.cmyweb.net > > Follow me, http://twitter.com/shiplu > Innovation distinguishes between follower and leader > -- Ghodmode http://www.ghodmode.com/blog
Re: [PHP] Intentionally generate an "Internal Server Error"
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 between follower and leader
Re: [PHP] Intentionally generate an "Internal Server Error"
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"
On Sun, Aug 7, 2011 at 12:05 PM, shiplu 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 segmentation fault, wouldn't that be enough to generate a 500 error in a single php file without needing to be in an extension? -- > Shiplu Mokadd.im > Follow me, http://twitter.com/shiplu > Innovation distinguishes between follower and leader > Thank you. -- Ghodmode http://www.ghodmode.com/blog
Re: [PHP] Intentionally generate an "Internal Server Error"
On Sun, Aug 7, 2011 at 9:50 AM, 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 actual Apache error log and my > hosting provider's error reporting system isn't working. Customer > support just sends me canned responses stating that everything's fine > and they can't reproduce the error, so I'd like to create a > reproducible internal server error so that they can see that it's not > showing up in the error log. > > I know that I can mess up something in the .htaccess file, but that > would break the whole site. I don't want to do that. > > I know I could use header("HTTP/1.1 500 Internal Server Error"), but > that means I would also have to provide the content of the Error 500 > page. I want to kick off they're internal server error page. They > don't give me to option to create one of my own. > > I'm using GoDaddy. > > Can someone suggest some invalid PHP code that should generate an > internal server error? > > Thank you. > > One way would be, write a php extension and perform segfaults there. -- Shiplu Mokadd.im Follow me, http://twitter.com/shiplu Innovation distinguishes between follower and leader
[PHP] Intentionally generate an "Internal Server Error"
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 error reporting system isn't working. Customer support just sends me canned responses stating that everything's fine and they can't reproduce the error, so I'd like to create a reproducible internal server error so that they can see that it's not showing up in the error log. I know that I can mess up something in the .htaccess file, but that would break the whole site. I don't want to do that. I know I could use header("HTTP/1.1 500 Internal Server Error"), but that means I would also have to provide the content of the Error 500 page. I want to kick off they're internal server error page. They don't give me to option to create one of my own. I'm using GoDaddy. Can someone suggest some invalid PHP code that should generate an internal server error? Thank you. -- Ghodmode http://www.ghodmode.com/blog -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php