开发者

Is it possible to play a flash video stored in php?

开发者 https://www.devze.com 2023-04-02 20:07 出处:网络
Suppose I have some videos stored in a MySQL database. How do I play those videos on开发者_开发百科 demand using flash.You can use PHP to serve content of any type. For flash, I assume you could use s

Suppose I have some videos stored in a MySQL database.

How do I play those videos on开发者_开发百科 demand using flash.


You can use PHP to serve content of any type. For flash, I assume you could use something like:

<?php
$video = get_video_contents_from_db();
header('Content-type: application/x-shockwave-flash');
die($video);

Where get_video_contents_from_db() is some function that returns the contents of the video you have stored in your database. You might also need to specify additional headers, such as Content-length, but that is the general idea.

0

精彩评论

暂无评论...
验证码 换一张
取 消