Hi there,
I’m writing a command line PHP console script to watch for new URLs and launch (large) downloads for a client’s project I am working on. The client is currently manually downloading them with a slightly specific wget command and ideally would like to stay with that.
I was wondering what the best way to call wget from PHP would be and to watch for either a completed download or any errors that come along. At the moment, I’m using a basic shell_exec however this isn’t suitable for a production environment.
Any suggestions at all would be extremely helpful.
Thanks in advance.