Re: how could a php script return a dns error ?

From: Date: Sat, 28 Dec 2002 18:52:35 +0000
Subject: Re: how could a php script return a dns error ?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-129518@lists.php.net to get a copy of this message
Hatem Ben wrote:
Hello all, I got a strange problem, a wrong php script was upladed in my hosting server and make my website return a dns error ! i've discoverd after one day that my index.php was a wrong one ! normally it should return another error related to script not to dns !
I don't get a dns error on this I get - 'zero sized reply'
can someone explain me this ? Is this caused by server configuration or something else ?
I would say that a php error cannot directly cause dns problems - so the error message may be wrong ! (what is generating the message ?)
this is the correct script url : http://www.dynamix-tn.com/ and this is the wrong script url : http://www.dynamix-tn.com/index-old.php in localhost the index-old.php return this error, wich i think should be the correct error message at least i can understand that my script is wrong): Warning: fopen("tmp/sample.htm", "r") - No such file or directory in tmp.class.php on line 43 Warning: Supplied argument is not a valid File-Handle resource in tmp.class.php on line 44 Warning: Supplied argument is not a valid File-Handle resource in tmp.class.php on line 45 ....
on your test system - are these error messages the first thing outputed if the hosting setup is configured not to report error messages - you may just be getting an error and no output. you may be able to override the error reporting on a per-script basis http://www.php.net/manual/en/function.error-reporting.php also you could check that the file exists before opening it. -- Sean

« previous php.general (#129518) next »