hey guys
i wrote this code which works fine.
f(ftp_size($ftp, 'test') != -1)
ftp_chdir($ftp, 'test');
else{
// create the file
ftp_mkdir($ftp, 'test');
ftp_chmod($ftp, 0755, 'test');
ftp_chdir($ftp, 'test');
}
but im using it on connecting to another ftp basically setup same way.
But i check on if folder exist but i always get -1 even though the folder is there.
Its killing me cause it works on connecting to another ftp.
Any ideas?