biwerw Posted August 12, 2009 Share Posted August 12, 2009 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 More sharing options...
Michdd Posted August 12, 2009 Share Posted August 12, 2009 Safe mode may be enabled then. You can try set_time_limit(0); Link to comment https://forums.phpfreaks.com/topic/169930-extend-operation-longer-than-30-seconds/#findComment-896582 Share on other sites More sharing options...
biwerw Posted August 12, 2009 Author Share Posted August 12, 2009 Safe mode is listed as off in the phpinfo() Link to comment https://forums.phpfreaks.com/topic/169930-extend-operation-longer-than-30-seconds/#findComment-896599 Share on other sites More sharing options...
biwerw Posted August 12, 2009 Author Share Posted August 12, 2009 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?? Link to comment https://forums.phpfreaks.com/topic/169930-extend-operation-longer-than-30-seconds/#findComment-896653 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.