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:
TheBlasphemer
Senior Member
****

Avatar

Posts: 714
Reputation: 47
36 / – / –
Joined: Mar 2004
RE: PHP File Indexer
quote:
Originally posted by DJeX
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>



put the fopen BEFORE the while!
[Image: theblasp.png]
03-01-2005 01:07 AM
Profile PM 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