答案:<?php
if ($_GET['action']=="down")
{
$file=end(explode("/",$_GET['path']));
$type=end(explode(".",$file));
header('Content-type: image/'.$type);
header('Content-Disposition: attachment; filename='.$file);
readfile($file);
}
?>
<script type="text/javascript">
<!--
function GoUrl(url)
{
var php=confirm("下载按确定,浏览按取消")
if (php==true)
{
location.href=> }
else
{
location.href=> }
}
//-->
</script>
<a href=>
上一个:WAP版的手机号码所在地查询
下一个:C/C++与WAP的综合应用