php最简单的文件下载方式
Parse swf with PHP header
<?php
$filename="xxx.swf";
header("Content-Type: application/x-shockwave-flash");
@readfile($filename);
?>
<?php
$filename = "xxx.swf";
$fh = fopen($filename,"r");
header("Content-type: application/x-shockwave-flash");
fpassthru($fh);
?>
全文:https://forums.digitalpoint.com/threads/parse-swf-with-php-header.926658/
/*--------------------------------*/
求php最简单的文件下载方式,头文件,下载swf
header('Content-type: application/x-shockwave-flash');//输出的类型
header('Content-Disposition: attachment; filename="downloaded.swf"'); //下载显示的名字,注意格式
readfile('example.swf');
全文:http://zhidao.baidu.com/link?url=TYxMKMjop7rTefkKN7Tci3l7XchDouNdxhQJMWj9NEaD1JhyYiKDPAMhkRdZK7_-keE2KVPxpe-LM_BOimdcTC_rCF3Rxujv0P7ag_0jRkS
/*--------------------------------*/
怎么以php文件播放swf文件
如:我在swf.php文件里面了下面这个地址
http://www.111cn.cn/t/nce3/Lesson1/Lesson1_controller.swf
我在一个show.php文件要以
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="760" height="480">
<param name="movie" value="swf.php" />
<param name="quality" value="high" />
<embed src="swf.php" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="760" height="480"></embed>
</object>
播放flash这怎么写?
<?php
$file = "http://imgfree.21cn.com/free/flash/25.swf";
$data = file_get_contents($file);
header("content-type: application/x-shockwave-flash");
echo $data;
?>
全文:http://bbs.phpchina.com/thread-69806-1-1.html