note 16864 added to function.fopen
| From: | marcel at think-computer dot de | Date: | Fri, 16 Nov 2001 09:37:58 +0000 |
| Subject: | note 16864 added to function.fopen | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-20914@lists.php.net to get a copy of this message | ||
if you do this on win32 machines
$fp=@fopen("ftp://ftp.subjective.de/wsbeta/wsbeta.zip","r");
if ($fp) {
echo "The file exists!";
} else {
echo "The file does not exist!";
}
the script says the file does not exist.
but if you do the exact same script on a linux machine it works!
i think its because the winsock dll isnt waiting for further statements of the apache module.
dont know exactly what the heck is going on.
just use linux server and all is fine ;-)
--
http://www.php.net/manual/en/function.fopen.php
http://master.php.net/manage/user-notes.php?action=edit+16864
http://master.php.net/manage/user-notes.php?action=delete+16864
http://master.php.net/manage/user-notes.php?action=reject+16864