Jump to content

MD5 an image


slarson20

Recommended Posts

At some point during the process of pushing data into the db, execute (Notice: Backticks, not single quotes):

 

 

$image_md5 = `md5sum /path/to/imagename`;

 

There are other ways. This is probably the most simplistic. Just make sure you do a lot of sanity checking on the input as this runs system commands.

Link to comment
https://forums.phpfreaks.com/topic/247482-md5-an-image/#findComment-1270879
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.