ID: 30516 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Open +Status: Feedback Bug Type: FTP related Operating System: linux PHP Version: 5CVS-2004-10-21 (dev) New Comment:
Please try using this CVS snapshot: http://snaps.php.net/php5-latest.tar.gz For Windows: http://snaps.php.net/win32/php5-win32-latest.zip ..and again, update the version field accordinly. Previous Comments: ------------------------------------------------------------------------ [2004-10-21 19:17:21] [EMAIL PROTECTED] Description: ------------ file_put_contents isn't working with FTP (or I'm doing something wrong). Tested in PHP 5.0.3-dev Reproduce code: --------------- <?php $context = stream_context_create(array('ftp' => array('overwrite' => true))); if(file_put_contents("ftp://anonymous:[EMAIL PROTECTED]/MS/OPEN-R/MW/OBJS/SOCROB4L.BIN", file_get_contents('src/SocRob4l.bin'), null, $context) === false) { echo "There was an error"; } else { echo "The upload completed succesfully"; } ?> Expected result: ---------------- The upload completed succesfully Actual result: -------------- Warning: file_put_contents(ftp://[EMAIL PROTECTED]/MS/OPEN-R/MW/OBJS/SOCROB4L.BIN): failed to open stream: Operation now in progress in /home/socrob4l/consola/update4.php on line 5 There was an error ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=30516&edit=1
