Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Automatic index...
01-27-2017, 10:00 PM
Post: #1
Automatic index...
Grab this and put it in any directory, change txt to php

When you view it, you'll see your entire directory listed...

http://www.wormworks.org/codes/tools/PREDONE-DEX.txt
Visit this user's website Find all posts by this user
Quote this message in a reply
01-28-2017, 12:32 AM
Post: #2
RE: Automatic index...
This will show your entire directory list including sub-directories:

PHP Code:
<?php
$root 
"$_SERVER[DOCUMENT_ROOT]";
$iterator = new RecursiveDirectoryIterator($rootRecursiveDirectoryIterator::SKIP_DOTS);
foreach (new 
RecursiveIteratorIterator($iteratorRecursiveIteratorIterator::CHILD_FIRST) as $dir
{
if (
is_dir($dir)) {

## remove document root ##
$dir preg_replace("@$root/@"""$dir);

$dirs[] = $dir;
}
}
## loop through directories ##
asort($dirs);

foreach(
$dirs as $value)
{
$count++;
echo 
"$count - $value<br>";
}
?>
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)