Timeout after 5 minutes

Hi,

I need to run a PHP script that takes a few minutes. The script downloads hundreds of images.

On localhost everything works, server returns error 500.

I made a test script that simulates the error:

<?php
ini_set('max_execution_time', 0);
sleep(310); // 5 minutes + 10 seconds
echo 'OK';
?>

Where do I increase this 5 minute time?

can you show me the logs as well?

these are error logs or stdrlogs?

Hi shoaibkk

Sorry, I don’t know the differecen between logs or stdrlogs. Where can I find the log that you want to see?