Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Script timeout [IIS-PHP4.3.4]
  • Well, I'm getting problems implementing uploadify in my webapp, I really can't figure out what's the problem with it..
    Troube happends when the upload exced the 30 seconds, script goes timeout.
    Infact when the upload finish i get this from upload.php (i put an alert on the OnComplete callback):

    <br />
    <b>Fatal error</b>: Maximum execution time of 30 seconds exceeded in <b>C:\Website***\inc\upload\upload.php</b> on line <b>2</b><br />


    and after that I get an Action Script error from flash:

    Error: Error #1502: A script has executed for longer than the default timeout period of 15 seconds.
    at flash.external::ExternalInterface$/flash.external:ExternalInterface::_toAS()
    at flash.external::ExternalInterface$/call()
    at MethodInfo-15()


    So I've added this on the top of upload.php:

    set_time_limit(999);


    But nothing changed, seems that php took the global value for max_execution_time instead of mine, BTW standing to this script i made, seems that the override works on php (commenting set_time_limit(999); will get the same error as before):

    <?

    set_time_limit(999);
    echo \"max_execution_time --> \".ini_get('max_execution_time');
    echo \"<br>\";

    while(1){
    $var = \"stuff\";
    }

    ?>


    Many thanks