astralaaron Posted February 6, 2008 Share Posted February 6, 2008 Fatal error: Maximum execution time of 30 seconds exceeded in C:\wamp\www\siteb\admin\video\adm_add_vid_s2.php on line 2 Link to comment Share on other sites More sharing options...
jhecht Posted February 6, 2008 Share Posted February 6, 2008 max_execution_time will do that. But honestly if any script is taking more than 30 seconds to run, then something isn't right(perhaps an infinite loop is occuring?). Link to comment Share on other sites More sharing options...
astralaaron Posted February 7, 2008 Author Share Posted February 7, 2008 max_execution_time will do that. But honestly if any script is taking more than 30 seconds to run, then something isn't right(perhaps an infinite loop is occuring?).well its uploading a video - my friends computer in canada only has dsl connection so its pretty slow...i was able to upload videos but then we re-installed WAMP5 server and now it times out at 30 seconds... Link to comment Share on other sites More sharing options...
boen_robot Posted February 7, 2008 Share Posted February 7, 2008 Use an FTP server isntead. FTP keeps track of how much the file is completed, if it was corrupted during trasmission, etc.XAMPP includes FileZilla FTP server, which should provide sufficient for your needs. If you need things done more automatically, PHP could ping the FTP server at regular intervals (or at a user demand) and fetch the file from there if it matches certain criterias, (re)moving it after the check. Otherwise, I'm afraid you'll have to either grant your users full rights to a certain directory (which could be scary if your site has lots of traffic), and manually sort out everything submitted. Link to comment Share on other sites More sharing options...
justsomeguy Posted February 8, 2008 Share Posted February 8, 2008 Uploads aren't affected by max execution time I believe. The time to upload the file is all before PHP starts, once the file finishes uploading the browser sends the request and then the max execution timer starts. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.