Chouchou
01-26-2004, 10:35 AM
Ok. That's simple. Here it is
$result = shell_exec("wget -q -O - 'http://www.google.com'");
echo $result;
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 !!
$result = shell_exec("wget -q -O - 'http://www.google.com'");
echo $result;
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 !!