What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » PHP File Indexer

PHP File Indexer
Author: Message:
DJeX
Veteran Member
*****

Avatar


Posts: 1138
Reputation: 11
– / Male / –
Joined: Jul 2003
O.P. RE: PHP File Indexer
Ive tryed this code

code:
<?php
$maindir = "." ;
$mydir = opendir($maindir) ;
$exclude = array( "index.php") ;
while($fn = readdir($mydir)) { if ($fn == $exclude[0] || $fn == $exclude[1]) continue;
$file = fopen("file.txt","w");
fwrite($file,"<br><a href='$fn'>$fn</a>"); } closedir($mydir);
fclose($file);
?>


But alls it wrote in the txt was:

code:
<br><a href='indexer.php'>indexer.php</a>
[Image: top.gif]
03-01-2005 01:04 AM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
PHP File Indexer - by DJeX on 03-01-2005 at 12:42 AM
RE: PHP File Indexer - by L. Coyote on 03-01-2005 at 12:45 AM
RE: PHP File Indexer - by TheBlasphemer on 03-01-2005 at 12:55 AM
RE: PHP File Indexer - by DJeX on 03-01-2005 at 01:04 AM
RE: PHP File Indexer - by TheBlasphemer on 03-01-2005 at 01:07 AM
RE: PHP File Indexer - by DJeX on 03-01-2005 at 01:08 AM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On