Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Jan 2004
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Angry Please help, I'm driving mad !

    Ok. That's simple. Here it is

    PHP Code:
    $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 !!

  • #2
    Senior Coder Mhtml's Avatar
    Join Date
    Jun 2002
    Location
    Sydney, Australia
    Posts
    3,531
    Thanks
    0
    Thanked 1 Time in 1 Post
    Does the server you are trying this on have this ability enabled? I mean you could of course use something else which would wreak havok in that string and as such it may be disabled??
    Omnis mico antequam dominus Spookster!

  • #3
    Mega-ultimate member
    Join Date
    Jun 2002
    Location
    Winona, MN - The land of 10,000 lakes
    Posts
    1,855
    Thanks
    1
    Thanked 45 Times in 42 Posts
    Have you tried using fsockopen through your proxy server (if you have one)??? I did that to pull in RSS feeds through a firewall.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •