Forum Moderators: coopster

Message Too Old, No Replies

More complicated redirect

two servers, one client, lots of fun

         

nes11

6:35 pm on May 10, 2005 (gmt 0)



I need to have my php script access another page on a different server & then redirect all of the contents of that page to the client that requested the php page. the catch is that it also needs to forward the headers as well. for all practical purposes, the client should recieve the exact same thing from my php script that they'd get from the other server.

Has anyone done anything like this? I could make a simple proxy script, but I can't figure out how to get & forward the headers appropriately. I know it's possible in Perl, but I'm hoping there's a PHP way as well.

StupidScript

10:15 pm on May 10, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Have you tried:

header("Location: some://fqdn");

?

Welcome aboard, nes11 ... and this better not be for evil purposes ... ;)