noalyss
Version-9
Toggle main menu visibility
Main Page
Related Pages
Packages
Package List
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
Data Fields
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Variables
$
a
s
u
v
Files
File List
Globals
All
$
(
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
y
Functions
a
b
c
d
e
f
g
h
i
j
l
m
n
p
r
s
t
u
w
Variables
$
(
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
y
Typedefs
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Pages
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