Re: Big file encryption
| From: | Mikey | Date: | Thu, 14 Jul 2005 12:18:23 +0000 |
| Subject: | Re: Big file encryption | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-218672@lists.php.net to get a copy of this message | ||
david forums wrote:
Hihihihi Of course I already has the whole object to encrypt and decrypt, my problem is link to the size of the file. There is no mcrypt function to load directly a file, so it's need to preload it in a variable and then encrypt or decrypt it. But when the file is 12M size it failed. So I need to know a way to be able to encrypt large file. regards david Le Thu, 14 Jul 2005 13:33:25 +0200, Jay Blanchard <jay.blanchard@niicommunications.com> a écrit:hth, Mikey[snip] well I have a big file (around 12M), and I have to encrypt this file, and to decrypt some time after. How could I do? Is it possible to encrypt and decrypt a file line by line ? [/snip] Start with the manual at http://us2.php.net/manual/en/ref.mcrypt.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.phpYou could try upping the max memory limit in your php.ini file, or with ini_set() if you only want to allow this for your one script...