Jump to content

Extend operation longer than :30 seconds


biwerw

Recommended Posts

I'm building a script that will upload files from a form to an separate FTP site. The files that will be uploaded are large, 10mb and larger.

 

I keep running into this error:

Fatal error: Maximum execution time of 30 seconds exceeded in E:\www\########\clientlogin\general\upload-file.php on line 35

 

I have added the following lines of code in hopes it will override the :30 second limit but no luck.

 

Ini_set('max_execution_time',0);
Ini_set('max_input_time',0);
Ini_set('set_time_limit',0);

Link to comment
https://forums.phpfreaks.com/topic/169930-extend-operation-longer-than-30-seconds/
Share on other sites

Ok, now I'm getting these two errors on any file over 6.7mb (largest I tested that worked)

 

Notice: Undefined index: submit in E:\www\###\clientlogin\general\upload-file.php on line 81

 

Notice: Undefined index: submit in E:\www\###\clientlogin\general\upload-file.php on line 88

 

Line 81

If($_POST["submit"]!="submit"){

Line 88

If(($_POST["submit"]=="submit")&&(is_array($_FILES['userfiles']))){

 

Numerous files below 6.7mb have worked. I also have these lines in the file:

Ini_set("upload_max_filesize","1000M");
Ini_set("post_max_size","1000M");

 

Any ideas what could be causing this??

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.