italie![Administrator Administrator](//www.mameworld.info/ubbthreads/images/adm.gif) |
MAME owes italie many thank yous, hah
|
|
|
Reged: 09/20/03
|
Posts: 15245
|
Loc: BoomTown
|
|
Send PM
|
|
Dead again....
09/18/06 02:49 AM
|
|
|
> > I had max_execution_time set to "0", which I assumed to be infinite. Changing that > > brought the script back to life for large dirs in firefox, but not in IE. > > Interesting. It might have to do with different rendering methods, which might cause > (?) extraneously large times in IE. Try with ob_implicit_flush() and a smart flush() > usage to see if it helps in the output and it shows something before stalling. > > Does the script end if you don't try any large output?
working flawlessly running php from my test box in firefox, but dead when uploading to the host. At least I know where to start looking for that issue.
What do you mean by large output? Script runs through completely for smaller directories. Larger directories hang at a white browser page with no response to any code, and eventually time out. As I said, the script is working great now on my test box after changing the max_ex_time from zero to 120. Here is what I'm using code wise for a simplified test page, see anyhting out of the ordinary? I'll try flushing it when I can get it back up on firefox.
Code:
//$ftp_tout = 900; // timeout ini_set("memory_limit","50M"); ini_set("set_time_limit", "120"); ini_set("max_execution_time","120"); error_reporting(E_ALL);
$ftp_server = '67.xx.xx.xx'; $ftp_user_name = 'xxx'; $ftp_user_pass = 'xxxx';
$conn_id = ftp_connect($ftp_server);
$login_result = ftp_login($conn_id, $ftp_user_name, $ftp_user_pass);
// //Enable PASV ( Note: must be done after ftp_login() ) //
$mode = ftp_pasv($conn_id, TRUE);
if ((!$conn_id) || (!$login_result) || (!$mode)) { echo "FTP connection has failed!"; echo "Attempted to connect to $ftp_server for user $ftp_user_name"; exit; } else { echo "Connected to $ftp_server, for user $ftp_user_name connection ID is $conn_id
"; // change dir to music $dir=ftp_pwd($conn_id);
echo "$dir "; ftp_chdir($conn_id, "xxxxxx"); $dir=ftp_pwd($conn_id); echo "$dir ";
// //Now run ftp_nlist() //
$file_list = ftp_nlist($conn_id, " "); foreach ($file_list as $file) { echo " $file"; }
echo" Through for each loop";
ftp_close($conn_id);
%>
|
|