Monday, January 11, 2010

How to execute wget from php

I was trying to exectue wget from php, tried and read several sites.

The way to do it is very simple:

<?php

exec ('wget URL_TO_GRAB');   // note you can add ANY command or option as well.

?>

Have fun

No comments: