Hi I am adding this into my settings.php file as I want the memory to increase when the URL visited contain one these string in the page
if ( (strpos($_GET['q'], 'admin') === 1) || ( strpos($_GET['q'], '/media/add/image') === 1) ||
( (strpos($_GET['q'], 'node/') === 1 && preg_match('/^node\/[\d]+\/edit/', $_GET['q']) === 1) )
) {
ini_set('memory_limit', '256M');
} }
is this correct? Thanks