Overriding PHP.ini settings in Drupal's settings.php file

Here are a couple of useful tips for making development and debugging easier. I've written this primarily as a note for myself but maybe it'll prove useful to others as well.

To force PHP to display any errors in Drupal on screen instead of just 500 server error pages add these lines: -

ini_set('error_reporting', E_ALL); ini_set('display_errors', 'stdout');

To up the memory limit add this line: -

ini_set('memory_limit', '64M');

Get in touch

3 + 1 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.

This form collects your name, telephone number (optionally) and email address only so we can contact you back about your enquiry. We do not and will never use your data for any other purposes other than contacting you regarding this enquiry and no data is shared with any third-party.