Home > Backend Development > PHP Tutorial > PHP implementation code for simply browsing directory contents_PHP tutorial

PHP implementation code for simply browsing directory contents_PHP tutorial

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-07-21 15:08:08
Original
962 people have browsed it

As shown below:

Copy the codeThe code is as follows:

$dir = dirname (__FILE__);
$open_dir = opendir($dir);
echo "";
echo "";
while ($ file = readdir($open_dir)) {
if ($file!= "." && $file != "..") {
echo "";
echo "";
echo "";
echo "";
}

}
echo "

File namesizetypemodification date
" . $file . "" . filesize($file) . "" . filetype($file) . "" . filemtime($file) . "
";
?>

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/327497.htmlTechArticle is as follows: Copy the code as follows: ?php $dir = dirname(__FILE__); $open_dir = opendir( $dir); echo "table border=1 borderColor=red cellpadding=6"; echo "trth file name/thth size...
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
php data acquisition?
From 1970-01-01 08:00:00
0
0
0
PHP extension intl
From 1970-01-01 08:00:00
0
0
0
How to learn php well
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template