PHP behind proxy - fopen, include

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • demotis
    New Member
    • Jul 2006
    • 1

    PHP behind proxy - fopen, include

    I'm working on an internal website and have full control of the web server and php scripts. I do not, however, have the ability to change or modify internet access to allow me to get past the proxy server. The web server is in the local network (behind the proxy), running Windows 2003 with Apache web server, and PHP 5. I can use the include functions to include page content from my local server, and other servers local to my machine. When I try to include page content over the proxy I get only blank pages. The code I use is very simple.

    <?php include('http://10.14.41.149:80 80/index.php'); ?>

    This returns the compiled out of the page, like I want it to. But if I put in any URL that is not local I get a blank page.

    <?php include('http://www.yahoo.com') ; ?>

    Or if I put the include inside the HTML tags of the page I only get a blank where the page shoudl have been included.

    I put the proxy information in the php.ini and this does nothing.

    I have also used fopen with the same results.

    Anyone have any ideas?
  • jbedell
    New Member
    • Sep 2006
    • 1

    #2
    Hi Demotis,

    Did you ever find a solution to this problem? I have the same issue of trying to PHP behind a proxy.

    Thanks,

    jbedell

    Comment

    • tempuser123
      New Member
      • Feb 2010
      • 1

      #3
      Solution

      Scroll down to the comments to read the solution to this

      PHP is a popular general-purpose scripting language that powers everything from your blog to the most popular websites in the world.

      Comment

      Working...