phpÏÂÔØÎļþµÄÎÊÌâ
ÎÒÏëͨ¹ýµã»÷À´ÊµÏÖÏÂÔØ£º <a href="down.php?id= <? echo $id?>" target="_blank">ÏÂÔØ </a>
down.phpÈ«´úÂëÈçÏÂ(ÍøÉϲéÀ´µÄ)£º
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title> </title>
</head>
<body>
<?php
$id=$_GET['id'];
$SQL="select * from filedown where id=".$id;
$rs=mssql_query($SQL,$sqlLink);
list($id,$title,$puttime,$fileurl,$filesrc)=mssql_fetch_row($rs);
$filedownUrl = $fileurl.$filesrc;
if(strpos($filedownUrl, 'http://') !== false || strpos($filedownUrl, 'ftp://') !== false) {
header("Location: $filedownUrl");
exit();
}else {
$filename = basename($filedownUrl); //È¡ÎļþÃû
$pathinfo = pathinfo($filename);
$filetype = $pathinfo['extension']; //È¡µÃÀ©Õ¹Ãû
$filesize = filesize($filedownUrl);
if(ob_get_length() !== false) @ob_end_clean(); //Çå³ýÒÔǰµÄ»º³å
header('Pragma: public');
header('Last-Modified: '.gmdate('D, d M Y H:i:s') . ' GMT');
header('Cache-Control: no
Ïà¹ØÎÊ´ð£º
ÔÚ¹úÍâµÄ¿Õ¼ä£¬ÆäËüµÄphpÕ¾µã¶¼Õý³££¬¿ÉÖ»ÓÐ×î½ü½¨µÄÕâ¸öÕ¾µã£¬Ö»ÒªÒ»ä¯ÀÀphpÎļþ¾Í³öÏÖÏÂÔØÌáʾ£¬ÏÂÔØÏÂÀ´µÄÎļþ¶¼ÊÇ´øÓÐphpÔ´Â룬¸÷λ·¹ýµÄ£¬°ï°ïÎÒ£¬¿´¿´Ê²Ã´ÔÒò£¬ÏÈлÁË¡£
¿Õ¼ä²»Ö§³Ö¡£
»òÕßÄãµÄÕ˺ÅûÓп ......
¸÷λ´óЩ
ÇóÒ»¶Îphp´úÂë
¿ÉÒÔʵÏÖÒÔϹ¦ÄÜ
Õë¶Ô²»Í¬µÄä¯ÀÀÆ÷ÏÔʾ²»Í¬µÄͼƬ
¾ÍÊÇÓÐÒ»ÕÅͼƬ£¬Ö»Ïë¸øie6Óû§¿´µ½
Èç¹ûie7¡¢chrome¡¢firefoxÓû§ä¯ÀÀÔòÏÔʾÁíÍâÒ»ÕÅͼƬ
¼Û¸ñ²»ÒªÌ«ÀëÆ×¾ÍÐÐ ......
<!--¹ºÂòÊýÁ¿-->
<div class='buyinfo'>
<table width='auto'>
<tr>
<td><span>¹ºÂòÊýÁ¿£º</sp ......
¹ýÍêÄêҪȥÎ人ÁË£¬ÏëÁ˽âÒ»ÏÂPHPÅàѵ±È½ÏÕý¹æ?
Ŷ ¶ÔÁË£¬»¹ÓУ¡PHPÊÖ²á±ØÐëµÃŪһ¸ö
àÅ ÌìÌìÔÚ¿´Ê¥¾£¨Ò»ÌìÒ²¾ÍÖ»ÄÜ¿´¸ö¶þʮҳ£©£¬PHP100ÊÓÆµ½Ì³Ì¿´ÁË33½²ÁË£¨Ò»ÌìÒ²Ö»¿´Ò»½²£©
ÎÒ»á¼á³Ö°ÑÕâ±¾ÊéºÍÊÓÆµ¸ã¶¨ ......
ÇëÎÊ
object(Helper_Uploader_File) {
protected '_file' => array(
'name' => string '4_¹âÓ°_1.jpg' (length=14)
'type ......