I use the following code to transfert file from remote site ti my site ( where this script is running )
When I transfert a small file everything is ok but I obtain an empty file with 0 bytes and no error message when the file is bigger
Is there any limit or error in this code??
$fp = @fopen($local, "w");
ftp_fget($ftp,$fp,"$file",FTP_BINARY) OR DIE("Erreur: Le fichier $file n'a pas pu ĂȘtre mis en cache sur notre serveur.\r\nNous ne pouvons donc vous transfĂ©rer le fichier.\r\nVeuillez nous en excuser.");
@fclose($fp);
echo "<br>Tranfert successfull<br>";