note 45679 added to function.md5

From: Date: Wed, 15 Sep 2004 02:45:19 +0000
Subject: note 45679 added to function.md5
Groups: php.notes 
Request: Send a blank email to php-notes+get-76700@lists.php.net to get a copy of this message
I was having issues with ie grabbing a text file which was meant to be treated as an unknown file type and thus downloaded instead of opened in the browser window. I used md5 to insert some junk binary into the file which scared ie out of opening it (doesn't matter where i put it). basically: "string" . md5("something", true) . "string" where: "string" are the strings you are writing to the file and "something" is just a string to work from and when i go to use the file i just ignore the output of the hash. after this i hit problems when i went to a 4.3 server i just cut and paste the hash output from notepad into the code as a string and the effect was just the same (probably a bit faster too). ---- Manual Page -- http://www.php.net/manual/en/function.md5.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+45679 Delete -- http://master.php.net/manage/user-notes.php?action=delete+45679&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+45679&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#76700) next »