First time poster, long time lurker.
I have a failry simple problem I'd really like to get solved. I'm hoping some header magic will do the trick, but let's see shall we. what the problem is:
I'd like to serve a download from my own server with a PHP script, and then immediatly redirect to another website. The basic problem here is that I do not have any control of the final "landing" page that the user goes to, so I cannot serve the download from there (then it would all just be a simple matter of doing a header(Location:) and then have the landing page serve the download)
obviously multiple header redirects won't work, as PHP just takes the last redirect instruction and executes that (that's the behavior I've seen anyway) - But this would be the optimum behavior:
case 2: //serve file and then redirect (fileurl and offurl) header("Location: $fileurl"); header("Location: $offurl"); break;
I hope this is clear enough and that any of you guys have an idea on how to accomplish this...