Hey guys, this is my first time posting here..
I think I have a pretty unique question: I've set up a login-protected page to download my mp3's remotely. I keep the files in a dir off web root to keep users not logged-in from downloading them. I use headers to force the download and dump the contents of the file to the browser with readfile().
Now I'm trying to add a stream option using an m3u file. The problem is the m3u file needs a valid web address to an mp3. Since I don't want the mp3's accessable without authentication, I use php to copy whatever mp3 they're trying to stream to temp.mp3 in my web dir. Then I changed my m3u file to: "http://mysite.com/temp.mp3" This worked, but now I need some way to remove the temp.mp3 file when they're done streaming.
Anyone have any ideas?
Thanks.