- exec: documentation ( source)
- escapeshellarg: documentation ( source)
<?php
$url = 'http//www.google.com/';
$cmd = "wget -b -nc --restrict-file-names=nocontrol --content-disposition --no-check-certificate ".escapeshellarg($url);
exec($cmd, $status);
echo $status;
?>