noalyss
Version-9
html
file-dir.php
Go to the documentation of this file.
1
2
<?php
3
$dir
=
"admin/"
;
4
5
// Open a known directory, and proceed to read its contents
6
if
(is_dir(
$dir
)) {
7
if
($dh = opendir(
$dir
)) {
8
while
((
$file
= readdir($dh)) !==
false
) {
9
echo
"filename: $file : filetype: "
. filetype(
$dir
.
$file
) .
"\n"
;
10
}
11
closedir($dh);
12
}
13
}
14
?>
15
$file
$file
Definition:
export_document_template.php:50
$dir
$dir
Definition:
file-dir.php:3