Custom Search

News World

Oct 28, 2008

PHP Script : Section 13 : How to make simple tree file in browser by PHP Scritp?

Everybody that have experience to use the computer, as generally know what the meaning with tree file.

Tree file is the structure of file that have in folders as operating system, whatever operating system type.

With this I make a simple sample for that tree file in browser (netscape, firefox, eudora, internet explorer, etc).


Important : I'm not recommend you to put this script on your web site in internet.
Better if youuse this script to implementation on your "intranet" only.

$d = dir("./$drr");
echo "Path: ".$d->path."
\n";
while (false !== ($entry = $d->read())) {
if (!is_dir($entry)){
echo " - ".$entry."
\n";
}else{
echo "[+] a href="'?drr="">".$entry." /a
\n";
}}
$d->close();
?>


more : web.solusi@gmail.com

No comments:

IT Conversations

Moneycontrol Latest News

Latest new pages on Computer Hope

Latest from Infoworld

Door Lock

Door Lock Import Top Door Lock from China Contact Quality Manufacturers Now