PHP Snippet: Reverse Proxy ?
I’m not suffering from Blog Burnout, just a little playstation distraction
Actually, I’ve spent a lot of time learning PHP for my potential new project; during this I found the function: file_get_contents, which in turn leads me to ask:
Is it possible to make a PHP Reverse proxy ?
I’m thinking yes, but it wouldn’t be easy. file_get_contents allows you to open a file or even a URL from a PHP script running on your webserver, just this simple thought gave birth to this snippet of code:
<?php
$URL=$_GET["url"];$self=$_SERVER["PHP_SELF"];
if ( $URL == "") {
?>
No URL Given:

Tags: