4 ms·
Being massively pedantic for a moment; he didn't set the memory limit to 1GB but instead to 0.9765625GB: <?php ini_set('memory_limit', '1000M'); //
by laumars 12y ago
Being massively pedantic for a moment; he didn't set the memory limit to 1GB but instead to 0.9765625GB:
<?php
ini_set('memory_limit', '1000M'); // or you could use 1G
?>
Joking aside, do most people these days just use MB (1000^n) instead of MiB (1024^n) when working with RAM? Is this now the standard way to calculating memory?
- 2upmedia 12y agoGood call. Minor oversight. Just updated that. I think if your NOT a hardcore technologist you probably think of megabytes as as 1000^n. It's really easy to forget too for the rest of us.
- derickr 12y agoÜber-pedantry: It's "you're" and not "your".