Re: how could a php script return a dns error ?
| From: | Hatem Ben | Date: | Sat, 28 Dec 2002 19:40:02 +0000 |
| Subject: | Re: how could a php script return a dns error ? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-129522@lists.php.net to get a copy of this message | ||
> 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 what i get exactly :
<error>
The page cannot be displayed
The page you are looking for is currently unavailable; The Web site might be
experiencing technical difficulties, or you may need to adjust your browser
settings.
</error>
The same message i got when a website experience dns problem ! anyway, i got
this problem accidently.
> > 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
>
Yes On my test system these are the first thing outputed (system configured
to report all errors).
> 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
>
maybe this is what happened, and our national gateway return me this as a
dns error message.
Thanks,
Hatem