grasperstail Posted April 9, 2008 Share Posted April 9, 2008 How can I get PHP to write error logs to another drive on the server. I've tried changing the address in php.ini. Link to comment Share on other sites More sharing options...
justsomeguy Posted April 9, 2008 Share Posted April 9, 2008 I use this to write to an error log: error_reporting(E_ALL);ini_set('error_log', dirname(__FILE__) . DIRECTORY_SEPARATOR . 'error.log');ini_set('html_errors', 0);ini_set('log_errors', 1);ini_set('display_errors', 0); That will set it to a file called "error.log" in the same directory, but that's an absolute path so I assume you should be able to substitute any absolute path there. The PHP process just needs write permission to wherever you're writing to. Is it a physical drive or virtual (mapped) drive? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.