yes, you can change it in your script
http://php.net/manual/en/ini.php#ini.list
PHP_INI_ALL means this variable can be set everywhere
- php.ini, httpd.conf(Apache) .htaccess and in your php scripts
you would use [man]ini_set[/man]
and set
log_errors = 1
error_log = file
<?php
error_reporting( E_ALL );
ini_set('log_errors', '1');
ini_set('error_log', 'path/filename');
?>
or in .htaccess
php_value error_reporting 2047 (same as E_ALL )
php_flag log_errors On
php_value error_log path/filename (I think without quotes around)