PHP commonly used code snippets

If you have max code execution limit error you can try resolve with following code

  ini_set("max_execution_time", "1800");
  ini_set('memory_limit','1048M');


if you want to display all hidden php errors

  ini_set('display_errors', 1);