Hey Bill, This is indeed pretty easy to do. We do it for a number of reasons, from collecting statistical information to finding the most appropriate server to deliver the video from, which means that our code for doing this is pretty complicated. Your code can probably be much simpler.
I'm not really a php programmer (I'm more of a perl guy), but this kind of form should work for you assuming you have a call style like http://mywebsite.com/video.php?video=bar.mpg: <?php $videos['foo.mpg'] = 'http://bar.baz/foo.mpg'; $videos['bar.mpg'] = 'http://foo.baz/bar.mpg'; // Do what you want to collect data, et cetera header('Location: ' . $videos[$_GET['video']]; ?> You should probably consider this pseudo code and not actual code, since my recollection of php syntax and variable instantiation is pretty rusty. One thing to keep in mind is that you cannot output anything from your php script prior to calling the header() function -- if it isn't the first thing you call that produces output your script will break with an ugly HTML Web page with a big bold error message in the middle of it. Yours, Mike Co-founder & CEO, blip.tv > -----Original Message----- > From: [email protected] > [mailto:[EMAIL PROTECTED] On Behalf Of billshackelford > Sent: Tuesday, January 23, 2007 12:39 AM > To: [email protected] > Subject: [videoblogging] Permalinks and download tracking? > How do I do that? > > Blip.tv has permalinks like this: > > http://blip.tv/file/get/Bshack-PopPopPop659.m4v > > When you click on it, it will redirect to the actual file > location. When it redirects it also gathers information about > you for stats. The above link will work in itunes even with > the redirects. > > How do they do that? I could I do that with PHP? > > > > > Yahoo! Groups Links > > > >
