FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


Connect To Proxy





coreymanshack
I want to connect to an actual proxy server with php and request a page, how would i do this?
hexkid
coreymanshack wrote:
I want to connect to an actual proxy server with php and request a page, how would i do this?


You have at least three options:

1. use cURL
2. use fsockopen()
3. use fopen() with stream functions for context (if you have PHP 5.0.0 or greater).
coreymanshack
thanks Smile i've already looked at fsockopen() and i dont understand it Sad
hexkid
coreymanshack wrote:
thanks Smile i've already looked at fsockopen() and i dont understand it Sad

The user contributed notes have some examples of using fsockopen() with a connection through a proxy. I've never used it for that, because I prefer cURL.
coreymanshack
is CURL a class?
hexkid
coreymanshack wrote:
is CURL a class?

Nope, it's a set of library functions. See the manual page for cURL.

I don't know if there are classes with the same functionality as cURL, but, as far as I can tell, there are none from PHP itself. You can build your own or search and download from the net.
Related topics
How can I connect to cpanel?
How can I connect to cpanel?
How can I connect to cpanel?
How can I connect to cpanel?
Internet Download Manager
addon domains / rndc: connect failed
Michael Jackson 'Suicide' virus spreads
Please Help me to configure Outlook Through Proxy
connect to site via proxy & dreamweaver mx?
PHP to detect users accessing site via proxy server
can connect ftp
Application Software blocked by proxy
Application Software Blocked by Proxy
Win 7 activation thru a proxy
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.