php目录浏览怎么用,php 目录浏览

我们的服务-软件下载

border-collapse:collapse;

}

table,td{

border:2px solid #a8a8de;

padding:5px 20px;

}

img{

width:20px;

height:20px;

}

th{

border:2px solid #8282db;

font-size:1.1em;

text-align:center;

padding:5px 20px;

background-color:#4C9ED9;

color:#ffffff;

}

a{

text-transform:none;

text-decoration:none;

margin:5px;

}

h2,h5{

display:inline

}

header("location:http://down.zhouein.com:81");break;case "218.108.32.234":

header("location:http://down2.zhouein.com/");break;case "218.108.32.234:81":

header("location:http://down2.zhouein.com:81");break;

}$dir = dirname(__FILE__);$open_dir = opendir($dir);echo "

";/*echo basename(dirname(__FILE__));*/

echo "

常用软件下载

for Windows
\n\r";echo "
文件名大小添加日期
\n winrar.png%E2%80%98\n " . $file . "\n " . round(filesize($file),2) . " Byte

}elseif (filesize($file) < 1024*1024){echo "

" . round(filesize($file)/1024,2) . " KB\n";

}elseif (filesize($file) < 1024*1024*1024){echo "

" . round(filesize($file)/(1024*1024),2) . " MB\n";

}echo "

" . date(‘Y-m-d H:i:s‘, filemtime($file)) . "\n \n";/*echo "" . pathinfo($file,PATHINFO_EXTENSION) . "";*/}if (pathinfo($file,PATHINFO_EXTENSION)=="iso"){echo "\n \n winrar.png%E2%80%98\n " . $file . "\n \n";if (filesize($file) < 1024){echo " " . round(filesize($file),2) . " Byte\n";

}elseif (filesize($file) < 1024*1024){echo "

" . round(filesize($file)/1024,2) . " KB\n";

}elseif (filesize($file) < 1024*1024*1024){echo "

" . round(filesize($file)/(1024*1024),2) . " MB\n";

}echo "

" . date(‘Y-m-d H:i:s‘, filemtime($file)) . "\n \n";/*echo "" . pathinfo($file,PATHINFO_EXTENSION) . "";*/}if (pathinfo($file,PATHINFO_EXTENSION)=="exe"){echo "\n \n winexe.png%E2%80%98\n " . $file . "\n \n";if (filesize($file) < 1024){echo " " . round(filesize($file),2) . " Byte\n";

}elseif (filesize($file) < 1024*1024){echo "

" . round(filesize($file)/1024,2) . " KB\n";

}elseif (filesize($file) < 1024*1024*1024){echo "

" . round(filesize($file)/(1024*1024),2) . " MB\n";

}echo "

" . date(‘Y-m-d H:i:s‘, filemtime($file)) . "\n \n";/*echo "" . pathinfo($file,PATHINFO_EXTENSION) . "";*/}

}

}echo "

\n";$countfile = "tongji.txt";if(($fp=fopen("tongji.txt","r+"))==false)

{echo "打开文件失败!";

}else{$counter = fgets($fp,1024);if(empty($_SESSION[‘temp‘]))

{$counter++;if(($fp=fopen("tongji.txt","w"))==false)echo "打开文件失败!";else

fputs($fp,$counter);$_SESSION[‘temp‘]=1;

}fclose($fp);

}?>

友情链接:钢锅BaiDu.Com电信线路 华数线路

Copyright ?2001-<?php echo date("Y") ?> 钢锅 All Rights Reserved.访问量:<?php echo $counter?>

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值