文件大小问题 while($file=readdir($handle)) { if ( !eregi("(\.|cgi|php)$",$file) ) {$file = 'asd/asd/$file'; // readdir读出的内容不含路径,而实际上是需要路径的 echo "<tr><td><a href='$file' target=\"_blank\">$file</a></td><td>".filesize($file)."</td></tr>\n";} 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <?$newspath="asd/asd/";echo "<table border=0><tr><th width=120>文件名</th><th>大小(字节)</th></tr>";$hd=dir($newspath);while($filename=$hd->read()){ if($filename=="."||$filename==".." ) continue; if(!eregi("(\.|cgi|php)$",$filename)) { echo "<tr><td><a href='$newspath.$filename' target=\"_blank\">$filename</a></td><td>".filesize($newspath.$filename)."</td></tr>\n"; }}?> 求mysql分表策略 fpdf如何实现表格内容的自动换行 PHP代码解释 想写一句SQL语句 google霸道了,chrome27不再支持12px以下字体了。 函数调用时为仲裁委员会自动输出!!!? 新手提问:多窗口页面frames中的数据传递问题 求判断EMAIL地址正确性的正则表达式 为什么得不到$HTTP_SESSION_VARS['thisuser'] 在Window2000下如何运行PHP呢? mkdir()怎么不能用 PHP调用DLL文件的疑问
$newspath="asd/asd/";
echo "<table border=0><tr><th width=120>文件名</th><th>大小(字节)</th></tr>";
$hd=dir($newspath);
while($filename=$hd->read())
{
if($filename=="."||$filename==".." ) continue;
if(!eregi("(\.|cgi|php)$",$filename))
{
echo "<tr><td><a href='$newspath.$filename' target=\"_blank\">$filename</a></td><td>".filesize($newspath.$filename)."</td></tr>\n";
}
}
?>