|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-08-08 09:47 UTC] kalowsky@php.net
[2002-08-08 12:13 UTC] dennisre at gmx dot de
[2002-08-08 12:38 UTC] kalowsky@php.net
[2002-08-08 18:22 UTC] dennisre at gmx dot de
[2002-08-08 18:46 UTC] dennisre at gmx dot de
[2002-08-09 00:29 UTC] kalowsky@php.net
[2002-08-09 10:14 UTC] dennisre at gmx dot de
[2002-08-09 10:18 UTC] kalowsky@php.net
[2002-08-09 21:15 UTC] dennisre at gmx dot de
[2002-08-10 07:18 UTC] wez@php.net
[2002-08-10 09:30 UTC] kalowsky@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 09:00:01 2025 UTC |
My scripts contains this code. It should copy the $filename file to the $dest file on the FTP server, and then get a raw list of files in the current directory. $filename = ""; $dest = ""; $server = ""; $user = ""; $password = ""; $ftp = @ftp_connect($server); @ftp_login($ftp, $user, $password); $tmpfile = tempnam("/tmp", "ftp"); @ftp_get($ftp, $tmpfile, $filename, FTP_BINARY); @ftp_put($ftp, $dest, $tmpfile, FTP_BINARY); @unlink($tmpfile); $list = @ftp_rawlist($ftp, "."); @ftp_close($ftp); When this script is executed, it takes about 5 minutes and the ftp_rawlist() function returns an empty list. It should be completed in less then one second (FTP server was local when I tested). Also the return rawlist should not be empty.