RE: [PHP] checking users have the latest version of a file

From: Date: Thu, 19 Feb 2004 17:22:39 +0000
Subject: RE: [PHP] checking users have the latest version of a file
Groups: php.general 
Request: Send a blank email to php-general+get-178264@lists.php.net to get a copy of this message
daniel@electroteque.org <mailto:daniel@electroteque.org> on Wednesday, February 18, 2004 5:18 PM said: > I dont understand what you are doing with the md5, and > > i assume YOU will know which file is the latest version. > > this is what i have to try and find out to prevent that. the md5 thing will just give you an easy way to determine if two (or more) files are different from each other. even if there's one byte different within the files, you'll get a different hash from the md5 function. if you don't know what an md5 hash is you can use this as an example: <?php echo md5("stereolab")."<br/>"; echo md5("stareolab")."<br/>"; ?> it's possible to perform an md5 hash on an entire file from the command line so you'll need to figure out how to do that. if you so choose to do that at all. chris.

« previous php.general (#178264) next »