Jump to content

md5 the file name?


phpSensei

Recommended Posts

Everytime I retrieve the admin's avatar from the phpbb table, to show it on the front page, the file wont show..

 

in the database, the file name is:2_1189208725.png

 

but in the image directory, there is some sort of hash: bf7f219391dc87b1b483147ce4db23d9_2.png

 

I tried hashing it, but nothing comes up the same.

Link to comment
Share on other sites

I would guess that only the string after the underscore is being hashed. Have you tried this?

foreach(hash_algos() as $hash)
   echo hash($hash, $filename);

 

That will show you all the available hashes. To see which one it was, just print_r(hash_algos());

Or try taking the "2_" out of $filename. That is just a guess.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.