I found that FTP wrapper in PHP works wrong.
Simple code:
$link='ftp://mylogin:mypassword@myhost.com:21/domains/folder1/folder2/123changes.doc';
$h=fopen($link,'r');
if(!$h){
echo 'bad';
}else
echo 'good';
This code always shows 'good'. Even file doesn't exists on FTP server. There is no file 123changes.doc in folder 'folder2'. But fopen returns correct handle.
What is wrong in my code?


Sign In
Create Account

Back to top









