on 13/01/03 9:34 PM, Marek Kilimajer ([EMAIL PROTECTED]) wrote:

> Couple things you can try:
> - if you are using output buffer, try turning it off

nope, not using any ob :)

> - check other virtual hosts on the server when these problems occur

can't tell for sure... without constantly surfing a site for hours "hoping"
to get an error... I do, however, occasionally check other sites on the same
server (one using the same library of code), and haven't spotted a problem
yet.

> - if you have access to the logs, check them if the server is not dying

I have access to the logs, but it's a bit tricky -- I have to wait until I
spot an error, then download a 10+meg log, and try and find my request...
but I'll work on that next for sure.


Justin




> Justin French wrote:
> 
>> Hi gang,
>> 
>> I'm encountering a strange, random, sporadic error on a new server.
>> Basically, sometimes, in a non-repeatable fashion, a page will not load.
>> 
>> In NN7 Mac, the error is "the page contained no data".  In IE5.x Mac, the
>> error is along the lines of "host not found" or "could not access URL ...".
>> 
>> Until 5 minutes ago, I was pretty damn sure it was the host, and have been
>> complaining constantly for about a week, but I was just using some non-PHP
>> stuff on the server without any problems, which leads me to believe it may
>> be a problem with my code, or perhaps with a portion of the installation or
>> PHP, or a combination.
>> 
>> Problem is, this will be like finding a needle in a haystack.  For starters,
>> I can't repeat the problem on my server.  I also can't repeat the problem on
>> another server.  It's also random -- I can go a day without seeing the
>> error, and then get stuck with them for half an hour or more.  It's also on
>> any and every script, not just *a script* or *some scripts*.
>> 
>> I'm also not inclined to post any code, because the application is quite
>> large and complex, with many include files and modules.
>> 
>> 
>> I guess what I'm hoping for is some wild stabs in the dark as to what the
>> problem might be, and where I might start looking.
>> 
>> 
>> I have no idea where to start.  It seems to me that if it IS my code, it
>> must be something high up at the start of my scripts, in the include()'d
>> files.
>> 
>> The code does make a "persistent" connection to the DB in an auto-prepend
>> file at the beginning of each and every script:
>> <?
>> $db = mysql_connect($dbhost, $dbuser, $dbpass);
>> mysql_select_db("db_name",$db);
>> ?>
>> 
>> The code also:
>> 
>> - (occasionally) makes use of header() redirects
>> - makes use of trans_sid for users without cookies (I have them enabled, so
>> pretty much rules that out), but I thought it was worth mentioning,
>> especially since this feature is unique to this server (my local test server
>> doesn't have it for example)
>> - inserts a row into the database for my statics/counters
>> - calls session_start();
>> 
>> 
>> Any ideas?
>> 
>> 
>> You're probably all laughing and shaking your head with a "no", but it's
>> worth a shot, I'm all out of ideas!!
>> 
>> 
>> Justin
>> 
>> 
>> 
>> 
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to