MAMEWorld >> Programming
Previous thread Previous  View all threads Index   Next thread Next   Flat Mode Flat  

twistyAdministrator
Space Lord
Reged: 09/18/03
Posts: 15570
Send PM
Re: PHP question, FTP and dir listings of larger sizes.
09/13/06 06:16 AM


> I'm ftp'ing into a server, and if I nlist the root dir consisting of a few files, I
> can do it just fine.
>
> When I change dirs and nlist the folder with 8,000 files in it, no go. Any ideas?
> Timeout of some kind? I figure I should be getting some kind of data off it....

Try changing to passive mode first.


Code:

$ftp_host = "yourFTPHost";
$ftp_user = "yourUsername";
$ftp_password = "yourPassword";
$conn = ftp_connect($ftp_host);
ftp_login($conn, $ftp_user, $ftp_password);
ftp_pasv($conn, TRUE);
$file_list = ftp_nlist($conn, "");
foreach ($file_list as $file)
{
echo "<br>$file";
}
ftp_close($conn);











Entire thread
Subject Posted by Posted on
* PHP question, FTP and dir listings of larger sizes. italieAdministrator 09/13/06 04:33 AM
. * Re: PHP question, FTP and dir listings of larger sizes. PiModerator  09/14/06 04:50 PM
. * Re: PHP question, FTP and dir listings of larger sizes. twistyAdministrator  09/14/06 11:01 PM
. * Re: PHP question, FTP and dir listings of larger sizes. italieAdministrator  09/15/06 05:00 AM
. * Re: PHP question, FTP and dir listings of larger sizes. PiModerator  09/15/06 04:15 PM
. * Re: PHP question, FTP and dir listings of larger sizes. italieAdministrator  09/15/06 05:26 PM
. * Almost there.... italieAdministrator  09/17/06 11:21 PM
. * Re: Almost there.... PiModerator  09/18/06 02:31 AM
. * Re: Almost there.... italieAdministrator  09/18/06 02:41 AM
. * Re: Almost there.... twistyAdministrator  09/18/06 01:35 AM
. * Re: Almost there.... PiModerator  09/18/06 01:13 AM
. * Dead again.... italieAdministrator  09/18/06 02:49 AM
. * Re: Dead again.... PiModerator  09/18/06 06:27 PM
. * update.... italieAdministrator  11/05/06 07:02 PM
. * Re: update.... PiModerator  11/09/06 01:28 AM
. * Re: update.... twistyAdministrator  11/05/06 07:08 PM
. * Re: update.... italieAdministrator  11/05/06 07:20 PM
. * Re: PHP question, FTP and dir listings of larger sizes. twistyAdministrator  09/15/06 06:15 AM
. * Re: PHP question, FTP and dir listings of larger sizes. twistyAdministrator  09/13/06 06:16 AM
. * Re: PHP question, FTP and dir listings of larger sizes. italieAdministrator  09/13/06 06:52 AM
. * Re: PHP question, FTP and dir listings of larger sizes. twistyAdministrator  09/13/06 07:06 AM
. * Re: PHP question, FTP and dir listings of larger sizes. italieAdministrator  09/13/06 08:41 AM
. * Re: PHP question, FTP and dir listings of larger sizes. kgutteridge  01/17/07 03:39 AM

Extra information Permissions
Moderator:  Pi 
0 registered and 68 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 4789