How to run wget from php so that output gets displayed in the browser window?
The exec
function can be used to run wget. I've never used wget for more then simple file downloads but you would use whatever arguments you give to wget to make it output the file contents. The second parameter/argument of exec will be an array, and this array will be filled line by line with the output of wget.
So you would have something like:
', $array);
?>
The manual page for exec probably explains this better: http://php.net/manual/en/function.exec.php