Pi |
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...
|
|