When you execute a php script you might come across this error
Fatal error: Maximum execution time of 30 seconds exceeded
What does it mean ?
It means that your execution of your php script time has exceeded.
How to fix it ?
Its simple if you have root access then edit the php.ini
/usr/local/lib/php.ini
if it’s not found there then try
$ find /etc -name "php.ini"
or if it is not there then
$find / -name "php.ini"
edit php.ini find
max_execution_time
now change the number to your needs.
if you don’t have root access and you are on shared hosting then open notepad
copy paste this and save as php.ini and upload it to your script folder.
max_execution_time = 600 /// 600 in seconds. you might need to change it for your needs.