|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
  [2002-12-04 09:28 UTC] db at unit-netz dot de
 The PHPFTP-script running fine with PHP 4.2.3 won't work with PHP 4.3.0RC2 because ftp_get returns false in spite of doing its work correctly. DB PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             | |||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 04:00:01 2025 UTC | 
This simple script works fine, but displays "Failed!" That's a hard "cosmetic" problem. <? $conn=ftp_connect("ftphost"); ftp_login($conn,"ftpuser","ftppass"); ftp_chdir($conn,"/ftpdir"); if (ftp_get($conn,"/tmp/ftptest","ftp.txt",FTP_BINARY)) echo "Success!"; else echo "Failed!"; ftp_quit($conn); ?>