Ian Ian - 1 year ago 81
PHP Question

Do .htaccess php_value settings affect scripts run at command line?

I'm investigating the best place to set my error logging options, and it seems the most reliable place would be in .htaccess in the script subdirectory. But this particular script is run via cron, and therefore via command line.

Do php_value settings made in .htaccess affect scripts that are not run through the web server?

Answer Source

No, .htaccess files are only read from the PHP httpd module.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download