iam trying to execute a php script on my shared hosting, when the script execution take more than 30 seconds it gave: A communication error occurred: "Operation timed out".
i try to increase max_execution_time setting from php Options but still gave same error if execution time exceeds 30 second.
How to avoid this error to be able to execute my script?
yes i check it using phpinfo and ini_get('max_execution_time') i get the new updated value which is 300 second, but still get operation timed out when executing my script which take about 31 second.
for a test purpose i just create an empty php file that contains only below code
<?php sleep(31); //when put 31 it gave operation timed out, if i replace 31 by 29 it work as expected
i already chat with the support team and gave him a test link for the above script and this post URL but still waiting their reply on this post.