Our source is open
The syntax highlighted source is automatically generated by PHP from
the plaintext script.
If you're interested in what's behind the several functions we
used, you can always take a look at the source of the following files:
Of course, if you want to see the source
of this page, we have it available.
You can also browse the SVN repository for this website on
svn.php.net.
Source of: /manual/en/book.dir.php
<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/refs.fileprocess.file.inc";
$setup = array (
'home' =>
array (
0 => 'index.php',
1 => 'PHP Manual',
),
'head' =>
array (
0 => 'UTF-8',
1 => 'en',
),
'this' =>
array (
0 => 'book.dir.php',
1 => 'Directories',
),
'up' =>
array (
0 => 'refs.fileprocess.file.php',
1 => 'File System Related Extensions',
),
'prev' =>
array (
0 => 'function.dio-write.php',
1 => 'dio_write',
),
'next' =>
array (
0 => 'dir.setup.php',
1 => 'Installing/Configuring',
),
);
$setup["toc"] = $TOC;
$setup["parents"] = $PARENTS;
manual_setup($setup);
manual_header();
?>
<div>
<h1 class="title">Directories</h1>
<ul class="chunklist chunklist_book"><li><a href="dir.setup.php">Installing/Configuring</a><ul class="chunklist chunklist_book chunklist_children"><li><a href="dir.requirements.php">Requirements</a></li><li><a href="dir.installation.php">Installation</a></li><li><a href="dir.configuration.php">Runtime Configuration</a></li><li><a href="dir.resources.php">Resource Types</a></li></ul></li><li><a href="dir.constants.php">Predefined Constants</a></li><li><a href="ref.dir.php">Directory Functions</a><ul class="chunklist chunklist_book chunklist_children"><li><a href="function.chdir.php">chdir</a> — Change directory</li><li><a href="function.chroot.php">chroot</a> — Change the root directory</li><li><a href="class.dir.php">dir</a> — Return an instance of the Directory class</li><li><a href="function.closedir.php">closedir</a> — Close directory handle</li><li><a href="function.getcwd.php">getcwd</a> — Gets the current working directory</li><li><a href="function.opendir.php">opendir</a> — Open directory handle</li><li><a href="function.readdir.php">readdir</a> — Read entry from directory handle</li><li><a href="function.rewinddir.php">rewinddir</a> — Rewind directory handle</li><li><a href="function.scandir.php">scandir</a> — List files and directories inside the specified path</li></ul></li></ul></div><?php manual_footer(); ?>