Skip to content

Instantly share code, notes, and snippets.

@duogeekdev
Created May 9, 2015 22:21

Revisions

  1. duogeekdev created this gist May 9, 2015.
    16 changes: 16 additions & 0 deletions gistfile1.php
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,16 @@
    <?php

    /** Turns the output of errors on or off, you really never want this on, you should only view errors by reading the log file. */
    ini_set('display_errors', WP_DEBUG_DISPLAY);

    /** Tells whether script error messages should be logged to the server's error log or error_log. */
    ini_set('log_errors', 'On');

    /** http://us.php.net/manual/en/timezones.php */
    ini_set('date.timezone', 'America/Indianapolis');

    /** Where to log php errors */
    ini_set('error_log', ASKAPACHE_ROOT . '/logs/php_error.log');

    /** Set the memory limit, otherwise defaults to '32M' */
    ini_set('memory_limit', WP_MEMORY_LIMIT);