Tips and help with HTML, CSS, JavaScript, and site development.
-
ccb056
- Site Administrator
- Posts: 981
- Joined: January 14th, 2004, 11:36 pm
- Location: Texas
-
Contact:
Post
by ccb056 »
here is a little bit of php code that I found which will allow you to do irectory listing
Code: Select all
<html>
<title>Directory listing</title>
</head>
<body>
<pre>
<?php
$thispage = basename($_SERVER['PHP_SELF'];
foreach(glob('*') as $name)
{
if($name !== $thispage)
{
echo "<a href=\"$name\">$name</a>
}
";
}
?>
</pre>
</body>
</html>
-
Tebow2000
- Registered User
- Posts: 1099
- Joined: January 19th, 2004, 7:56 am
- Location: New Orleans, Louisiana
-
Contact:
Post
by Tebow2000 »
Its written in HTML tag format but php code
Redcode Hosting
redcodehosting.com | Unix Shared Hosting | sales[aT]redcodehosting[dOt]com