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

From: Date: Sat, 28 Dec 2002 23:55:01 +0000
Subject: Re: how could a php script return a dns error ?
References: 1 2 3 4 5 6 7  Groups: php.general 
Request: Send a blank email to php-general+get-129550@lists.php.net to get a copy of this message
I went to it in Netscape 4.x, 6 & 7, and got this.... /* Not Found The requested URL /index-old.php was not found on this server. Apache/1.3.20 Server at dynamix-tn.com Port 80 */ In IE, I got.... /* The page cannot be found The page you are looking for might have been removed, had its name changed, or is temporarily unavailable. -------------------------------------------------------------------------------- Please try the following: If you typed the page address in the Address bar, make sure that it is spelled correctly. Open the www.dynamix-tn.com home page, and then look for links to the information you want. Click the Back button to try another link. Click Search to look for information on the Internet. HTTP 404 - File not found Internet Explorer */ Hatem Ben wrote:
Ok, this is Netscape shots http://www.dynamix-tn.com/28dec2002/Image1.png If you want with lynx i'll do it, it's always the same. Better, i can do this : $sockhandle = @fsockopen("http://www.dynamix-tn.com/index-old.php", 80, &$errno, &$errstr); if(!$sockhandle) { echo "<center><h5>server dynamix-tn.com not available!: $errno : $errstr</h5></center>"; } else { echo "<center><h5>server dynamix-tn.com is available!: $errno : $errstr</h5></center>"; } and run it from here, it return server not available. ----- Original Message ----- From: Leif K-Brooks To: Hatem Ben Cc: php-general@lists.php.net Sent: Saturday, December 28, 2002 10:49 PM Subject: Re: [PHP] how could a php script return a dns error ? No, it is IE specific. It's IE's general error message, which means the document contains no data in this case. Hatem Ben wrote: it's not an IE specefic :)) netscape or opera or whatever will return the same error message. ----- Original Message ----- From: "Paul Reed" <paul@bsdc.ca> To: "'Hatem Ben'" <reflex_news@yahoo.fr> Sent: Saturday, December 28, 2002 10:19 PM Subject: RE: [PHP] how could a php script return a dns error ? It's not really a dns error, that the general error that MS Internet Explorer spits out when it can't find the file, as opposed to showing you the erro 404 file not found ... PHP cannot give a dns error, looks like your just linking to a file that doesn't exist and that's IE's friendly way of telling you so ... yes .. a bit confusing to the developer. (Thanks again MS...) Try it with netscape, and I bet you'll get a 'file not found' error instead... Paul.
    
-- By-Tor.com It's all about the Rush http://www.by-tor.com

« previous php.general (#129550) next »