What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » php and mysql help md5 hash...

php and mysql help md5 hash...
Author: Message:
stonesour
Full Member
***

Avatar
Posts: 901231

Posts: 205
35 / Male / –
Joined: Nov 2003
O.P. php and mysql help md5 hash...
What i'm trying to do, is for my forum hide the name of a file, so I want to md5 hash the filename on upload, and insert it into say ibf_md5image

in the table ibf_md5image, it would have a column for the md5 hash, and the original filename. So then in my forum, I would link the image to the md5 hash. My question is in my script watermark.php I want to hide the filename, so people can't remove the watermark by simply going to the original.

SO currently when I click an uploaded image on my board it goes to http://mysite.net/forums/uploads/watermark.php?na...ome-image-name.jpg

I want it to go to
http://mysite.net/forums/uploads/watermark.php?name=md5hashedname.jpg

So, because the the md5 hash of the filename isn't the exact filename, what I want to do is have my watermark.php show the image, and figure out the filename using some sql. But i'm not sure how I would word the statement.

select real_name from ibf_md5image where hash_name = $variable

now somehow, it would have to get the md5 hash name from the url, so the link on the board to the image would have to pass the md5 hashed filename to the variable.


Is this possible?
06-07-2004 11:12 PM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
php and mysql help md5 hash... - by stonesour on 06-07-2004 at 11:12 PM
RE: php and mysql help md5 hash... - by Hah on 06-07-2004 at 11:18 PM
RE: php and mysql help md5 hash... - by fluffy_lobster on 06-08-2004 at 11:16 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