By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,812 Members | 863 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,812 IT Pros & Developers. It's quick & easy.

PHP behind proxy - fopen, include

P: 1
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(''); ?>

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(''); ?>

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?
Jul 27 '06 #1
Share this Question
Share on Google+
2 Replies

P: 1
Hi Demotis,

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


Sep 15 '06 #2

P: 1
Scroll down to the comments to read the solution to this
Feb 16 '10 #3

Post your reply

Sign in to post your reply or Sign up for a free account.