Re: [PHP] Writting a simple proxy in PHP

2007-02-06 Thread Alessandro Vernet
Jochem Maas wrote: > > if your using apache then you should look at the ProxyPass directive - > very hand, > STW or STA for more detailed info. > Jochem, I went this route. I agree, it is much simpler than trying to hack this in PHP. Alex -- View this message in context: http://www.nabble.

[PHP] Writting a simple proxy in PHP

2007-02-05 Thread Alessandro Vernet
I would like to forward on the server side (also called "proxy" or "server-side redirect") some queries that get to my PHP script. A naive approach is to do: print(implode("", file("http://localhost:8090"; . $REQUEST_URI))); Where http://localhost:8090 is the address I want to proxy to. But of c