News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Brian Nelson's Blog:
Writing A Reverse Proxy in PHP5
July 18, 2007 @ 15:55:00

Brian Nelson submitted a link to a new class he's developed to fill a hole he hand and didn't see anything that would easily fill it - having a reverse proxy in PHP5.

So I have been working on a little class to run a reverse proxy from PHP using cURL. I have extended this class for my own purposes (single-sign-on) to handle some special request parameters, but here it is. It has some warts, but it's a good starting point. I would appreciate any pointers anyone has to offer.

His code uses the cURL functionality to set up a handler to push the requests through. Also included are an htaccess file and a two-line PHP example of how to use it to request a public site.

0 comments voice your opinion now!
curl php5 proxy reverse tutorial modproxy htaccess curl php5 proxy reverse tutorial modproxy htaccess


blog comments powered by Disqus

Similar Posts

The Bakery: Eight New Articles, Components, Tutorials Posted

Brian DeShong's Blog: Small news that's big to me: my PHP Testfest submissions made it into 5_3!

SaniSoft Blog: Introduction to creating desktop applications with PHP and Titanium

Zend Developer Zone: SQLite: Lean, Mean DB Machine

PHPBuilder.com: BitMasks: Emulate Unix Permissions in PHP (Quickly)


Community Events





Don't see your event here?
Let us know!


unittest code laravel symfony2 list api interview release refactor testing install developer framework introduction podcast threedevsandamaybe community language series opinion

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework