What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » [small php request] can someone write me hash creator

[small php request] can someone write me hash creator
Author: Message:
Eljay
Elite Member
*****

Avatar
:O

Posts: 2949
Reputation: 77
– / Male / –
Joined: May 2004
RE: [small php request] can someone write me hash creator
I started this before Felu posted his code, but I got bored so I added recursive listing 8-)
If something doesn't work, remember I haven't used PHP a lot for a long time thanks to the wonderful Ruby language :P

code:
<?php

function md5_list($path, $indent=''){
  $dir = dir($path);
  $entry = $dir->read();
  while($entry !== false){
    if($entry != '..' && $entry != '.'){
      $fullPath = $path . DIRECTORY_SEPARATOR . $entry;
      if(is_dir($fullPath)){
        md5_list($fullPath, $indent . "  ");
      }
      else echo $indent . md5_file($fullPath) . ' *' . $fullPath . "\n";
    }
    $entry = $dir->read();
  }
  $dir->close();
}
echo "<pre>";
md5_list(getcwd());
echo "</pre>";

?>
04-02-2007 01:23 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[small php request] can someone write me hash creator - by CookieRevised on 04-02-2007 at 12:01 PM
RE: [small php request] can someone write me hash creator - by Felu on 04-02-2007 at 12:21 PM
RE: [small php request] can someone write me hash creator - by CookieRevised on 04-02-2007 at 12:49 PM
RE: [small php request] can someone write me hash creator - by Felu on 04-02-2007 at 12:51 PM
RE: [small php request] can someone write me hash creator - by surfichris on 04-02-2007 at 12:58 PM
RE: [small php request] can someone write me hash creator - by Nathan on 04-02-2007 at 01:15 PM
RE: [small php request] can someone write me hash creator - by Eljay on 04-02-2007 at 01:23 PM
RE: [small php request] can someone write me hash creator - by CookieRevised on 04-02-2007 at 01:26 PM
RE: [small php request] can someone write me hash creator - by Dempsey on 04-02-2007 at 01:37 PM
RE: [small php request] can someone write me hash creator - by CookieRevised on 04-02-2007 at 02:48 PM
RE: [small php request] can someone write me hash creator - by Felu on 04-02-2007 at 02:51 PM
RE: [small php request] can someone write me hash creator - by hmaster on 04-02-2007 at 03:29 PM
RE: [small php request] can someone write me hash creator - by surfichris on 04-02-2007 at 11:37 PM


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