phpSensei Posted September 7, 2007 Share Posted September 7, 2007 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 https://forums.phpfreaks.com/topic/68431-md5-the-file-name/ Share on other sites More sharing options...
lemmin Posted September 7, 2007 Share Posted September 7, 2007 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 https://forums.phpfreaks.com/topic/68431-md5-the-file-name/#findComment-344068 Share on other sites More sharing options...
phpSensei Posted September 8, 2007 Author Share Posted September 8, 2007 will try, thanks. Link to comment https://forums.phpfreaks.com/topic/68431-md5-the-file-name/#findComment-344111 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.