Is there any actual difference between these two lines of code?
ini_set('max_execution_time', 20*60);
set_time_limit(20*60);
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Looking at the current source:
set_time_limit()is indeed just a convenience wrapper around the accordingini_set()call. It doesn’t even seem to perform the advertised timer reset. (But I would guess the “timer” actually isn’t a separate entity, but the ini value itself is used as such.)