Re: [PHP] Writting a simple proxy in PHP

2007-02-06 Thread Jochem Maas
Alessandro Vernet wrote: > > 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. it's rather a neat w

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.

Re: [PHP] Writting a simple proxy in PHP

2007-02-06 Thread Casey Chu
Try using cUrl. On 2/6/07, Jochem Maas <[EMAIL PROTECTED]> wrote: Alessandro Vernet wrote: > 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://localh

Re: [PHP] Writting a simple proxy in PHP

2007-02-06 Thread Jochem Maas
Alessandro Vernet wrote: > 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 th

[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