Get a remote FLV using PHP and curl -
I want to know whether it is possible to get a remote flv file and use it 'stream' can be done. I have been 'curled' in my environment, so I want something like this:
exec ('curl http://myhosts.com/myflv.flv', $ out); Print out $;
The problem is that $ is returned as an array; I want to output the 'raw' stream returned by Curl.
Although you should be able to use it for it, it may be possible to correct the URL to the correct url Instead you have to redirect.
$ fp = fopen ('http://myhosts.com/myflv.flv', 'rb'); Fpassthru ($ FP);
or redirect:
header ('location: http://myhosts.com/myflv.flv');
Come to think of it, you can also use
readfile ('http://myhosts.com/myflv.flv') should be there. ;
At any rate, if you can simply redirect the user, do so. Its method is more efficient.
Comments
Post a Comment