derrick1123 Posted December 4, 2008 Share Posted December 4, 2008 I am trying to use: set_time_limit(900); at the top of my script, but I don't know if that will work becuase I can't access my site from school. My problem was that the script would stop uploading to the website after a sertain amount of time, I just wanted to know if this little bit of code would help solve my problem. Quote Link to comment https://forums.phpfreaks.com/topic/135526-execution-time/ Share on other sites More sharing options...
MadTechie Posted December 4, 2008 Share Posted December 4, 2008 Nope.. for uploading you need to change a few things, in the php.ini file update the following max_execution_time max_input_time post_max_size you could try via script ini_set("max_execution_time", "900"); Quote Link to comment https://forums.phpfreaks.com/topic/135526-execution-time/#findComment-706004 Share on other sites More sharing options...
derrick1123 Posted December 5, 2008 Author Share Posted December 5, 2008 .htaccess php_value post_max_size 5125M php_value upload_max_filesize 5125M php_value max_execution_time 900 php_value max_input_time 900 Would this work? and the use the following in the header or .htaccess? ini_set("max_execution_time", "900"); Quote Link to comment https://forums.phpfreaks.com/topic/135526-execution-time/#findComment-706447 Share on other sites More sharing options...
corbin Posted December 5, 2008 Share Posted December 5, 2008 I don't think you can change the first second or last one of those in htaccess. Quote Link to comment https://forums.phpfreaks.com/topic/135526-execution-time/#findComment-706454 Share on other sites More sharing options...
derrick1123 Posted December 5, 2008 Author Share Posted December 5, 2008 Well, problem is I don't have access to my php.ini file, but I can edit it remotely with php_value <bla> <bla> Quote Link to comment https://forums.phpfreaks.com/topic/135526-execution-time/#findComment-706466 Share on other sites More sharing options...
corbin Posted December 5, 2008 Share Posted December 5, 2008 That's not editing the php.ini file.... That's just setting values via .htaccess. The PHP engine won't allow certain values to be set via htaccess. (Oh, in response to your sig, I hear a lot of WoW servers were threatened by Blizzard today, so be careful. [i think the WoW community has been shutdown before, and they came back. Wonder how long it will take this time lol.]) Quote Link to comment https://forums.phpfreaks.com/topic/135526-execution-time/#findComment-706499 Share on other sites More sharing options...
derrick1123 Posted December 6, 2008 Author Share Posted December 6, 2008 (Oh, in response to your sig, I hear a lot of WoW servers were threatened by Blizzard today, so be careful. [i think the WoW community has been shutdown before, and they came back. Wonder how long it will take this time lol.]) Thanks for the heads up. ^.^ Oh, and my WoW site went down when I lost my HDD about 2years ago. >.< Quote Link to comment https://forums.phpfreaks.com/topic/135526-execution-time/#findComment-707523 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.