faqts : Computers : Programming : Languages : PHP : Not Quite PHP

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

20 of 26 people (77%) answered Yes
Recently 7 of 10 people (70%) answered Yes

Entry

If you use PHP as a standalone tool and want to fopen() a http:// but need to go via a proxy, how can you do this ?

Mar 28th, 2008 17:42
ha mo, Daniel Stenberg, Michael Bicha, http://curl.haxx.se http://www.php.net/manual/ref.curl.php


PHP3: run 'curl' as an external program (see other answers regarding 
HTTPS)
PHP4: use the new curl module
Curl 'emulates' a browser and gets the remote web page, ftp file or 
whatever.
http://www.tantofa.com
http://www.fantofa.com
http://www.mantofa.com
http://www.tanpola.com
http://www.tampola.com
http://www.yamot.com
http://www.mozmar.com
http://www.templatestemp.com