I am brand new to the PHP world and a friend of mine did the majority of the legwork to get my website up and running. However, I have one final task and it's proving to be the more arduous for me because I don't know what I'm doing...
To break it down, I would like to have streaming media on my website without hosting it. I chose Flyupload as the host because it's compatible with a streaming divx player, so long as the file is in divx avi. Anyway, Flyupload links are encoded with Base64 time encryption. If the link gives a time that isn't recently, Flyupload denies direct access to that file and the link is then broken (and useless for streaming).
Someone on another forum found a way to work this out by redirecting the flyupload link using PHP to attach a current base64 timestamp to that link, to fool Flyupload into thinking it's a recent file. So long as the file stays recent, the file stays active.
My question to you guys is what is a simple PHP code I can use to produce a redirected link with a base64 encoded timestamp so I can link to media?
Before my friend left for vacation (and left me stuck with this problem), he did the following simple code just to test the idea:
What this did was produce a download link for a movie that stays constant because the time stamp stays current. So the proof of concept works and can be found here.PHP Code:
<a href=http://www4.flyupload.com/dl?fid=5167274&t=<?php print base64_encode(time()); $url =$_GET['http://www4.flyupload.com/dl?fid=5167274']; ?>>Link</a>
I have found a site that does something similar to what I'm looking to do here... Except I don't need a massive amount of media, just a few.
I am looking for the simplest solution to this problem. I know a lot of you guys are absolutely brilliant, so any help would be greatly appreciated. Also, I spend hours on end doing fruitless work, I will likely continue the trend until this one gets solved. Thank you for any and all assistance... I've been banging my head on the wall with this one.