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

italieAdministrator
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);

%>











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 67 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