Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Random Internal Server Errors
Old 03-13-2005, 05:25 AM Random Internal Server Errors
Average Talker

Posts: 15
Trades: 0
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.

You can see the site here: Statbrain.com

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

Please login or register to view this content. Registration is FREE

FREE Tells you how many visitors any website has.
ZachH is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 03-13-2005, 06:05 AM
Experienced Talker

Posts: 36
Trades: 0
What's the error message in your error log say ?
tress is offline
Reply With Quote
View Public Profile
 
Old 03-13-2005, 08:55 AM
Average Talker

Posts: 15
Trades: 0
Here is what my error log says:
[Sat Mar 12 23:55:50 2005] [error] [client 194.192.69.13] Premature end of script headers: /powweb/web/cgi-bin/php5
[Sat Mar 12 23:56:50 2005] [error] [client 194.192.69.13] Premature end of script headers: /powweb/web/cgi-bin/php5
[Sat Mar 12 23:57:45 2005] [error] [client 194.192.69.13] Premature end of script headers: /powweb/web/cgi-bin/php5
[Sat Mar 12 23:58:58 2005] [error] [client 194.192.69.13] Premature end of script headers: /powweb/web/cgi-bin/php5

Is this what you mean or is there a different log?
__________________
Zach Highknee

Please login or register to view this content. Registration is FREE

FREE Tells you how many visitors any website has.
ZachH is offline
Reply With Quote
View Public Profile
 
Old 03-13-2005, 08:57 AM
dan245's Avatar
Skilled Talker

Posts: 59
Location: Massachusetts, USA
Trades: 0
From the looks of this error, did you install PHP in the cgi-bin?
dan245 is offline
Reply With Quote
View Public Profile
 
Old 03-13-2005, 09:14 AM
Average Talker

Posts: 15
Trades: 0
I'm on shared hosting and PHP works just fine. This is a random error that only occurs every 10th time or so. You can try it on my website.
__________________
Zach Highknee

Please login or register to view this content. Registration is FREE

FREE Tells you how many visitors any website has.
ZachH is offline
Reply With Quote
View Public Profile
 
Old 03-13-2005, 10:28 AM
dan245's Avatar
Skilled Talker

Posts: 59
Location: Massachusetts, USA
Trades: 0
Well, it working fine for me.
dan245 is offline
Reply With Quote
View Public Profile
 
Old 03-13-2005, 11:09 AM
Experienced Talker

Posts: 36
Trades: 0
What (exact) PHP version ?
tress is offline
Reply With Quote
View Public Profile
 
Old 03-13-2005, 11:29 AM
Average Talker

Posts: 15
Trades: 0
The site is running PHP Version 5.0.3.
__________________
Zach Highknee

Please login or register to view this content. Registration is FREE

FREE Tells you how many visitors any website has.
ZachH is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Random Internal Server Errors
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.27287 seconds with 12 queries