PHP 8.5.0 Alpha 4 available for testing

Voting

: one minus one?
(Example: nine)

The Note You're Voting On

Peter Hkansson
17 years ago
Would you like to view your directories in your browser this script might come in handy.

<?php
$sub
= ($_GET['dir']);
$path = 'enter/your/directory/here/';
$path = $path . "$sub";
$dh = opendir($path);
$i=1;
while ((
$file = readdir($dh)) !== false) {
if(
$file != "." && $file != "..") {
if (
substr($file, -4, -3) =="."){
echo
"$i. $file <br />";
}else{
echo
"$i. <a href='?dir=$sub/$file'>$file</a><br />";
}
$i++;
}
}
closedir($dh);
?>

<< Back to user notes page

To Top