Ian Ian - 1 month ago 15
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

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

Comments