View Single Post
Old 07-22-2011, 09:36 PM   PM User | #56
chump2877
Senior Coder

 
chump2877's Avatar
 
Join Date: Dec 2004
Location: the U.S. of freakin' A.
Posts: 2,530
Thanks: 15
Thanked 128 Times in 121 Posts
chump2877 is on a distinguished road
http://www.php.net/manual/en/info.co...execution-time

Try adjusting this value:

ini_set('max_execution_time',0);

in my index.php....Or just comment that line out....I honestly can't remember why I set that to '0'...It might be some left over code that I never removed, and possibly an error on my part?

Hope it helps.

Quote:
Originally Posted by chump2877 View Post
I honestly can't remember why I set that to '0'...
This must be the reason why: http://www.php.net/manual/en/functio...time-limit.php

From that URL:

Quote:
The maximum execution time, in seconds. If set to zero, no time limit is imposed.
Whether or not the following 2 lines of code are equivalent in terms of what they accomplish, I'm not sure:

PHP Code:
set_time_limit(0);  // or

ini_set('max_execution_time',0); 
So you might also try replacing the existing ini_set() call with a set_time_limit() call, as illustrated above.

This seems to corroborate that the following lines of code do in fact do the same thing:

PHP Code:
set_time_limit(0);  // or 

ini_set('max_execution_time',0); 
...even though this is not made abundantly clear in the PHP manual (at least per my understanding of it)...

Also, you could try adding either of those lines of code to the top of YouTubeToMp3Converter.class.php, since that is where the error occurred for you...
__________________
Regards, R.J.

Last edited by Inigoesdr; 07-22-2011 at 10:08 PM..
chump2877 is offline   Reply With Quote