Forum Moderators: coopster

Message Too Old, No Replies

Random Internal Server Errors

         

ZachH

10:17 am on Mar 13, 2005 (gmt 0)

10+ Year Member



Hi

I've made a site that gathers information from a couple of search engines. The site usually works just fine, but somethime there is a problem. The problem I get random Internal Server Errors. Not every time just every 10 times the script runs. It is completely random, it does not matter which parameters are used. You can run the script with the exact same parameters 10 times and 1 of them will generate an Internal Server Error.

I’m using fopen() to retrieve the information from the search engines. I used to use a combination of file_exists and file(), but someone told me that fopen() was better.

So what on earth can I do? I presume the Internal Server Error comes when the script cannot get in touch with the Search Engines. This knowledge does not help me a lot because I don’t know what to do with it.

Is there some kind of Error Handling that can help me?

Or is there a problem with the host? The reason why asking about the host because I never get this error when I do it on my local machine.

I’ve tried everything so please help me, I’m completely lost.

- Zach

[edited by: coopster at 12:27 pm (utc) on Mar. 13, 2005]
[edit reason] removed url per TOS [webmasterworld.com] [/edit]

jatar_k

10:05 pm on Mar 14, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



take a look at what is returned when you get the internal error, see if there is something you can compare, like the string itself ;)