I have to process more images with big amount, (10 mb/image)
How do I determine the execution time to process all of the images in queue?
-
Determine the time base from the data that we have.
-
Set the time limit.
-
Run process.
And what do the execution time depend on? (Server, internet speed, type of data…?)
@All:
i have changed my way to do my issue, send 1reqeust/1image,
so with 40 images, we will be have 40 request. no need to care about excution time 😀
Thanks
You can test your setup with the code
Please note two things: in the CLI-version of PHP, the max_execution_time is hardcoded to 0 / inifinity (according to this comment). Also, you may reset the timer by calling
set_time_limit()again like so:That way, you can let your script run forever or at least until you’re finished with your image processing. You must enable the appropriate overwrite rules in the apache-configuration to allow this via
AllowOverride All