koolkat67 Posted April 1, 2007 Share Posted April 1, 2007 I am using the move_uploaded_file command to upload some files but it seems as though my page times out while uploading. this is not a file type problem because I am able to upload files on the same type but smaller. I'm having problems with 7MB files even though my phpinfo says it can handle 50MB. Is there some kind of timing out setting I can change somewhere or do I need to set up a progress bar? Quote Link to comment https://forums.phpfreaks.com/topic/45093-upload-timing-out/ Share on other sites More sharing options...
MadTechie Posted April 1, 2007 Share Posted April 1, 2007 try <?php set_time_limit(3600); ?> Quote Link to comment https://forums.phpfreaks.com/topic/45093-upload-timing-out/#findComment-218890 Share on other sites More sharing options...
koolkat67 Posted April 2, 2007 Author Share Posted April 2, 2007 that didn't work. I really thought this was the ticket too Quote Link to comment https://forums.phpfreaks.com/topic/45093-upload-timing-out/#findComment-219486 Share on other sites More sharing options...
MadTechie Posted April 2, 2007 Share Posted April 2, 2007 try increasing the 3600 to 3600000 or something, Quote Link to comment https://forums.phpfreaks.com/topic/45093-upload-timing-out/#findComment-219494 Share on other sites More sharing options...
koolkat67 Posted April 2, 2007 Author Share Posted April 2, 2007 negative and my max_execution_time is set to 90 on my server which I have no control over. its in the phpinfo file, the *.ini file. Would this overtide the set_time_limit? Quote Link to comment https://forums.phpfreaks.com/topic/45093-upload-timing-out/#findComment-219499 Share on other sites More sharing options...
MadTechie Posted April 2, 2007 Share Posted April 2, 2007 not sure myself i think set_time_limit(0) will remove timeouts Quote Link to comment https://forums.phpfreaks.com/topic/45093-upload-timing-out/#findComment-219500 Share on other sites More sharing options...
MadTechie Posted April 2, 2007 Share Posted April 2, 2007 oh you could try 1) Create a file called .htaccess in the same directory as your php script (this will apply to any php script that is in this directory). 2) and set "php_value max_execution_time 0" i think that works but i am no expert on .htaccess files but atleast it a directions Quote Link to comment https://forums.phpfreaks.com/topic/45093-upload-timing-out/#findComment-219502 Share on other sites More sharing options...
koolkat67 Posted April 2, 2007 Author Share Posted April 2, 2007 i think im screwed, my server wont let me upload that file. I'm so close I can taste it!! Quote Link to comment https://forums.phpfreaks.com/topic/45093-upload-timing-out/#findComment-219510 Share on other sites More sharing options...
Warptweet Posted April 2, 2007 Share Posted April 2, 2007 If you have FTP, create a file called php.ini Insert that code that sets the time limit. That should be it, if you are forbidden to do that, then contact your host. Quote Link to comment https://forums.phpfreaks.com/topic/45093-upload-timing-out/#findComment-219525 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.