Wednesday 15 August 2012

process - Controlling wget with PHP -


I am writing a command line PHP console script to see the new URL and launch (big) download for the client's project I'm working on the client is currently manually downloading them with a few specific wget commands and ideally wants to be with that.

I was thinking that PHP would be the best way to call wget and either the download will be completed or any errors that come along. At the moment, I am using a basic shell_xax, though It is not suitable for production environment.

Any suggestions at all will be very helpful.

Thanks in advance.

You might think that some object is to use curls rather than wget. Libcurl is well integrated into PHP - with all the shabang of error reporting.


No comments:

Post a Comment