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

PiModerator
Allergic to life
Reged: 09/20/03
Posts: 6449
Loc: Room 101
Send PM
Re: PHP question, FTP and dir listings of larger sizes.
09/15/06 04:15 PM


> Gotta be a time out somewhere, or nlist having a shitfit at certain array sizes.

Judging by my experience, arrays in PHP can be *awfully* slow when they are really big, but there's no reason for a complete stall.

About not outputting anything, have you tried writing to text files?

Another thing to consider is how are you developing PHP in a remote machine. I thought you'd have a local AMP (Apache MySQL PHP) server and you were doing the work there. A debugger can be easily placed somewhere in there, and trust me, debugging PHP is about 95% of the work of fixing code. What I have here is a copy *cough* of NuSphere phpED, which comes with a debugger you can run under PHP (as a module) and helps so much that it's almost pornographic.

In any case, I'm thinking that the problem is with ftp_nlist which for some reason chokes in large directories, and that can't be debugged. But it would be a step ahead if you could be sure that the problem is within a command.

A final thought is discovering when does ftp_nlist stop working. Is it at 8000 files? 4000? A binary search shouldn't take really long. I would also compare times of execution depending on directory size.


Wound up, can't sleep, can't do anything right, little honey / Oh, since I set my eyes on you. / I tell you the truth.
I can't get it right / Get it right / Since I met you...







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 175 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 4816