PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
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 !!
since this is a unix command try not to place the URL inside the single quotes. Also, as far as i remember, the -O parameter also requires a filename to output the file contents.
Gonik wrote:since this is a unix command try not to place the URL inside the single quotes. Also, as far as i remember, the -O parameter also requires a filename to output the file contents.