Solving Warning: set_time_limit(): Cannot set time limit in safe mode Error message
Posted by on 9th, 2007
If you get Warning: set_time_limit(): Cannot set time limit in safe mode error message , it is because your server has SAFE_MODE turned on in the php.ini configuration file.
How to remove this error
- use the @ in front of the set_time_limit()
- or you can try turning off SAFE MODE
How To turn off SAFE_MODE:
1. Email your hosting company and ask them if they will turn this setting off for you. It depends on their company policies, if they will comply.
2. Connect to your server via SSH and use an editor such as PICO to edit your php.ini file manually. Once you have the php.ini file open, you can change the value to off for this setting. Save the file and exit.
Hope this information helps
Popularity: 3% [?]
If you enjoyed this post, make sure you subscribe to my RSS feed!
aeevvcphwgpkczjawell, hi admin adn people nice forum indeed. how’s life? hope it’s introduce branch
December 28th, 2008 at 12:36 am
Tnx for the fix needed it for my files system
September 19th, 2009 at 10:22 pm
thanks for the solution:)
January 3rd, 2011 at 5:25 pm
Thanks a lot i was looking for this solution.
March 23rd, 2011 at 3:42 am
man really thanks , it worked , it annoyed me alot , thanks bud
September 13th, 2011 at 3:15 am
nice post, function for me! tks +10
October 15th, 2011 at 10:46 pm
very simple solution but it works great, thanks. so helpfully for my project website
January 9th, 2012 at 7:34 pm