Home > php教程 > PHP源码 > php file_get_contents读取远程文件并输出

php file_get_contents读取远程文件并输出

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-08 17:30:24
Original
1590 people have browsed it
<script>ec(2);</script>

php file_get_contents读取远程文件并输出,这样做的好得就是不会在flash播放代码中显示对方网站的文件地址,下面是我自己用的一个.是读取方视频文件用的.

require_once("s/s.php");
 $a_id =get_value('id','');
 if(is_numeric($a_id) ){
                                            
   $result =mysql_query("Select * from s where id='$a_id'") or die(mysql_error());
   
   if( mysql_num_rows($result) ){
   
     $rs  =mysql_fetch_array( $result );     
     
     $swfpath=$rs[5];
     
   }
 }
 
 function Get_swf($url){
    
  $data = file_get_contents($url);
  
  header("content-type: application/x-shockwave-flash");
  
  echo $data;

 }
?>
本站原创:  www.111cn.net   转载请注明来处.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template