Of course ! I wrote a script once that did this. In fact, I decided to polish up that script seeing as how I haven't contributed much of anything to TalkPHP for a week or 2! Sorry guys. Hopefully this makes it all better.
The example is in the file, but here it is anyway to show you how easy I made it for you all:
Thank you ! You could port it over to PHP 4, although such functions as get_header are not available in PHP 4, though there are ways around that by using cURL.
Owen: Help yourself! Give TalkPHP a little mention though when you can please!
I modified the setAddress function earlier. Merely to ensure it can always extract the ID where available. Whereas the previous version, if there's any data trailing the YouTube ID, then it wouldn't work correctly.
For a moment there you had me going, as I never actually tested a downloaded FLV. But I'm glad to say it does actually play for me. Albeit in VLC. Windows Media Player never takes kindly to being given an FLV.
The man who comes back through the Door in the Wall will never be quite the same as the man who went out.