如果不是电影的话
可以用以下代码<?php
// We'll be outputting a PDF
header("Content-type: application/pdf");// It will be called downloaded.pdf
header("Content-Disposition: attachment; filename=downloaded.pdf");// The PDF source is in original.pdf
readfile('original.pdf');
?>
如果是电影用这个,恐怕嘿嘿~~~~~~~~整天坐在机器边重器
可以用以下代码<?php
// We'll be outputting a PDF
header("Content-type: application/pdf");// It will be called downloaded.pdf
header("Content-Disposition: attachment; filename=downloaded.pdf");// The PDF source is in original.pdf
readfile('original.pdf');
?>
如果是电影用这个,恐怕嘿嘿~~~~~~~~整天坐在机器边重器
http://www.v136.com/sting.asp?id=823
嘿嘿,我知道怎么实现!^_^,多加点分先!
如果需要的话,加分也可以啊!
框架页面movie.php
<?require("conn.php");//连接数据库
$id=$_GET[id];
if($_COOKIE["movieid"]!=$id)
{
setcookie("movieid",$id);
}
$query=mysql_query("select title from movie where id=$id");
$rs=mysql_fetch_array($query);
$title=$rs[0];
?>
<html>
<head>
<title><?=$title;?></title>
</head>
<frameset framespacing="0" border="0" rows="*" frameborder="0">
<frame name="main" scrolling="no" noresize src="mainmovie.php"><!--mainstring.php为真正的主放映页面-->
<noframes>
<body oncontextmenu="return false" ondragstart="return false" onselectstart ="return false" onselect="document.selection.empty()" oncopy="document.selection.empty()" onbeforecopy="return false"onmouseup="document.selection.empty()"> <!--body中的选项是用来禁止选择和禁止右键的,有的网站的播放页面只禁止了右键而没禁止选择,这样别人也可就可利用网页编辑器来获取地址了!-->
<p>此网页使用了框架,但您的浏览器不支持框架。</p>
</body>
</noframes>
</frameset></html>
<?require("conn.php");
$id=$_COOKIE["movieid"];
$query=mysql_query("select url from movie where id=$id");
$rs=mysql_fetch_array($query);
$url=$rs[0];//这是电影地址了,之后的就你自己写了!
?>
mainmovie.php
中如何处理,没有输出,如何把url 传过去?取出那一点很易做到,主要的是把url传给播放器时如何隐藏!!!!!访问的页面在windows中都会有,到里面一看,什么也找到了!