Help, I'm driving mad !!
Posted: Mon Jan 26, 2004 4:37 am
Ok. That's simple. Here it is
That's supposed to print on the standard output the source code of the web page http://www.google.com. Note I can't use fopen function because I'm behind a firewall.
Well the script works from the terminal, but it doesn't work with apache !! It doesn't display anything !!
Thanks for help !!
Code: Select all
<?php
$result = shell_exec("wget -q -O - 'http://www.google.com'");
echo $result;
?>Well the script works from the terminal, but it doesn't work with apache !! It doesn't display anything !!
Thanks for help !!