I’m not too experienced with shell or what not, I only have experience with setting php script file to run in cpanel corn tabs/jobs. Is this similar? I have a script that downloads images (in data format), but it keeps timing out, it didn’t help when I increased maximum execution time. Anyway, I was told that I have to run the script through shell to bypass limitations and such. How would I go about doing this?
Basically I want it to run a php script file through shell command-line, I want to be able to set an interval when the file is run as well, same as what I’ll do when setting up a php script corn job.
The same script that you are calling from the browser you can call it from the shell.
For example if your script is in your home’s web root folder called get_images.php, the command would be: