Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- define('WP_DEBUG', true);
- define('WP_DEBUG_DISPLAY', false);
- ini_set('log_errors',TRUE);
- ini_set('error_reporting', E_ALL);
- ini_set('error_log', dirname(__FILE__) . '/error-logs/php.log');
- if (!file_exists(dirname(__FILE__) . '/error-logs') && is_writable(dirname(__FILE__))) {
- mkdir(dirname(__FILE__) . '/error-logs');
- }
- if (file_exists(dirname(__FILE__) . '/error-logs') && !file_exists(dirname(__FILE__) . '/error-logs/.htaccess')) {
- file_put_contents(dirname(__FILE__) . '/error-logs/.htaccess', "AuthType Basic\nAuthName \"Restricted Access\"\nAuthUserFile .htnopasswd\nAuthGroupFile /dev/null\nRequire valid-user");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement