How to Fix PHP's Most Annoying Error
airpair.com
airpair.com
Later on I say: "If by increasing the memory limit you have gotten rid of the error and your code now works, you’ll need to take measures to decrease that memory usage. Here are a few things you could do to decrease it:"
<?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?In any case, you're right that the title is a little misleading, but pedantry aside, it's still a useful resource.