473,659 Members | 2,965 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

PHP behind proxy - fopen, include

1 New Member
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?
Jul 27 '06 #1
2 18503
jbedell
1 New Member
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
Sep 15 '06 #2
tempuser123
1 New Member
Scroll down to the comments to read the solution to this

http://php.net/manual/en/function.st...et-default.php
Feb 16 '10 #3

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

Similar topics

13
7623
by: Mhaxx | last post by:
Is there a way to retrieve IP address behind a proxy? Mhaxx
0
2028
by: Andy Todd | last post by:
Hi We have just moved an ASP.NET application into the live environment which is as follows: Sun Proxy Server / Firewall Windows 2000 Server / IIS5 The URL for the site maps to the Sun proxy box. This translates the request and maps it to the Win2K server which responds through the proxy. The Win2K
2
6110
by: Tom | last post by:
Hi If I set a proxy in IE to view a view site. My IP is 223.12.98.244 and the proxy IP is 202.156.87.179 Can Request.UserHostAddress trace 223.12.98.244? I use C# If not, how can I trace the IP of the user?
1
2523
by: Andy Todd | last post by:
Hi We have just moved an ASP.NET application into the live environment which is as follows: Sun Proxy Server / Firewall Windows 2000 Server / IIS5 The URL for the site maps to the Sun proxy box. This translates the request and maps it to the Win2K server which responds through the proxy. The Win2K
2
3042
by: sameer | last post by:
hi all, Description of my .net application: Desktop application using webservices over the internet to communicate with the sql server2000 database which is sitting behind the webserver. Done in VS2003 using VB.net on framework 1.1, Database is sql server 2000 Application works perfectectly ok and no problems at all even if there is a firewall in between. Question is would my application have any problems if it is calling the
6
2874
by: sameer | last post by:
..NET Framework 1.1 VS2003 Application is making webservice calls from behind a proxy server and then freezes and dies. Questoin is can i use webservice over proxy server( i guess another name of them is ISA ... if i a not wrong), if yes how? Sameer
0
1389
by: ericms | last post by:
I need to consume one of our vendor's web service. So, we need to consume the web service behind a proxy server. I am working with Visual Studio 2005 and .NET 2.0. I did right-click on a project and click "Add Web Reference". I kept getting an error either "The web server could not be resolved: "www.website.com" or Http Error 407: Authentication is required. Can anybody show me how to do this ? Appreciate any help or suggestions....
6
2153
by: John | last post by:
Hi My app is running on a windows 2000 server with isa 2000 installed. How can it access an external sql server (using its ip) from within the isa 2000 firewall/proxy via code? Thanks Regards
1
3549
by: tommurray | last post by:
Hi I have a problem with one of our service providers website uses windows integrated authentication. I have searched through the internet and all I can see for solutions to this problem is get a better proxy server that supports windows intergrated authentication (the proxy we are behind does!) Also to by pass the proxy server, which cannot happen as its a security requirement. When attempting to access the site in question no login...
0
8428
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8335
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8851
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8528
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
5649
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4175
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2752
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1976
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1737
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.