Log in

View Full Version : Re-Direct PHP Write Address...



DigiplayStudios
03-26-2010, 02:44 PM
Hi There,

I have a website which links to .MP3 files and allows users to listen to them through a .SWF music player, however, one of the websites that hosts the .MP3 files does not work with the music player. The reason is because the URL found by website is not a direct link to the .MP3 it is an instant re-direct to the .MP3 files.

Now, the issue is that the .SWF music player tries to play the initial page, which is of course just a re-direct page so it wont play anything.

How do I write a code in PHP that waits 5 seconds and then copies the new, .MP3, file address into a variable at the top which can then be copied in turn into the .SWF player script? Hope it makes sense! :confused:

bluewalrus
03-26-2010, 03:45 PM
Maybe http://php.net/manual/en/function.sleep.php