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:
Felu
Veteran Member
*****


Posts: 2223
Reputation: 72
30 / Male / Flag
Joined: Apr 2006
Status: Away
RE: [small php request] can someone write me hash creator
code:
<?php
//Define the path as relative
$path = ".";
$dir_handle = @opendir($path) or die("Unable to open $path");
?>
<table>
<tr>
<th>MD5 hash</th>
<th>Name</th>
</tr>
<?php
//Running the loop
while ($file = readdir($dir_handle))
{
   if($file != "." && $file != ".."){
      if(!is_dir($file)){
         $md5 = md5_file($file);
     echo "<tr><td>$md5</td><td><a href='$file'>$file</a></td></tr>";
      }
   }
}
?>
</table>
<?php
//close the directory
closedir($dir_handle);
?>
Should work fine :P.

This post was edited on 04-02-2007 at 12:22 PM by Felu.
04-02-2007 12:21 PM
Profile E-Mail PM Web 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