From: bsgro at handsfreenetworks dot com Operating system: Linux PHP version: 5.0.4 PHP Bug Type: FTP related Bug description: ftp_put local and remote file names.
Description: ------------ This may not be a bug, because the documentation states a local and remote name. However I do not see why you cannot use same name when doing a: $filename = 'file.txt'; ftp_put($handle,$filename,$filename,FTP_BINARY); You can command line ftp and do: >send file.txt which sends the file and keeps the same name. Otherwise you do: >send >file.txt >remotefile.txt So, maybe this is a feature request, but it may seem more like a bug. Thanks. Actual result: -------------- PHP Warning: ftp_put() [<a href='function.ftp-put'>function.ftp-put</a>]: Could not create file. in .... -- Edit bug report at http://bugs.php.net/?id=34187&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=34187&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=34187&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=34187&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=34187&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=34187&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=34187&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=34187&r=needscript Try newer version: http://bugs.php.net/fix.php?id=34187&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=34187&r=support Expected behavior: http://bugs.php.net/fix.php?id=34187&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=34187&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=34187&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=34187&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=34187&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=34187&r=dst IIS Stability: http://bugs.php.net/fix.php?id=34187&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=34187&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=34187&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=34187&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=34187&r=mysqlcfg