This mini-script lists your directory structure from a starting point. Nothing special - but small and far from complex and not used for a certain purpose. You could modify and use it for whatever you need.
Download
View Source (print view)
Rating : 4.7
Views : 116
<?php
// starting directory
$basedir = ".";
// function
function listdir($basedir){
if ($handle = @opendir($basedir)) {
while (false !== ($dir = readdir($handle))){
if ($dir != '.' || $dir != '..'){
if (is_dir($basedir."/".$dir)){
echo $basedir."/".$dir."<br>";
listdir($basedir."/".$dir);
}
}
}
closedir($handle);
}
}
// function call
listdir($basedir);
?>
php script" class="neww" target="_b, how to use this code, php_tools, yahoo_status_shopping_cart.php, php file upload, shopping_cart and user=0--, drop down, mysql_commit, forum, shopping_cart', backup, updateoraddimagesonpages, rtttl to 8 bit source code, stefan_hornea, rent_and_0=1_union_select, how to run php, php_script"_class="neww"_target="_blank"_title="im_neuen, embed_snippets, farah_aead, sql incection, antoine anik