Re: how could a php script return a dns error ?
| From: | Sean Burlington | Date: | Sat, 28 Dec 2002 20:24:24 +0000 |
| Subject: | Re: how could a php script return a dns error ? | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-129526@lists.php.net to get a copy of this message | ||
Hatem Ben wrote:
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.well thats not a dns error it's exactly what it says it is... the website is experiencing technical difficulties...
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.
maybe this is what happened, and our national gateway return me this as a dns error message.it can be awkward to debug when you get a one-size-fits-all error message set_error_handler() is anonther function you may find usefull http://www.php.net/manual/en/function.set-error-handler.php in fact there are all sorts of things you can do to help debugging - even if you don't want error messages apearing on the live site ! -- Sean :-)