那位大哥帮忙把我这个小文件ASP转换为PHP啊!谢谢!! 以前用的是ASP程序,现在买了个外国空间需要用PHP才行,哪位大哥帮帮忙啦!帮我转换下!~谢谢! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 function downloadfile($fullpath){ if(!file_exists($fullpath)) return false; $filesize = filesize($fullpath); $qvodpath = strtolower($_POST['qvodurl']); if(strpos($qvodpath, "qvod://') !== false) { $arrstr = explode("|", $qvodapth); $basename = $arrstr[1]; $strfilename = $arrstr[2]; } Header("Content-Type: application/octet-stream;"); Header("Content-Disposition: attachment; filename=\"" . $strFileName . "_" . $bashname . ".exe\""); Header("Content-Length: $filesize"); Header('Accept-Ranges: bytes'); echo file_get_contents($fullpath);}//dy.exe 前面要加绝对路径和相对路径都可以downloadfile("dy.exe"); 谢谢“jakey9826”但是不对啊!求救啊~! 一个页面内需要查询多个表的内容,如何操作?? 可以实现站内外链 加密吗? 一个应聘的试题 PHP 谁给解答一下 急用 请教 php发送邮件问题 在线等~~~~~~~~~~ 问个小白问题 关于php的引用,怎么理解。。 Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in ...可以正确的得到结果,但是有warning!是什么 这段程序怎么修改啊? 两个文件间的变量如何传递? APMServ修改了httpd.conf就不能加载CSS和图片了 php 字符串数组 mysql
{
if(!file_exists($fullpath))
return false;
$filesize = filesize($fullpath);
$qvodpath = strtolower($_POST['qvodurl']);
if(strpos($qvodpath, "qvod://') !== false)
{
$arrstr = explode("|", $qvodapth);
$basename = $arrstr[1];
$strfilename = $arrstr[2];
} Header("Content-Type: application/octet-stream;");
Header("Content-Disposition: attachment; filename=\"" . $strFileName . "_" . $bashname . ".exe\"");
Header("Content-Length: $filesize");
Header('Accept-Ranges: bytes');
echo file_get_contents($fullpath);
}//dy.exe 前面要加绝对路径和相对路径都可以
downloadfile("dy.exe");