Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 822
Ian Avatar asked Jun 11 '09 20:06

Ian


2 Answers

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

like image 70
Sean Bright Avatar answered Oct 13 '22 01:10

Sean Bright


.htaccess is used only by Apache. So the answer is NO.

like image 43
Flavius Stef Avatar answered Oct 13 '22 00:10

Flavius Stef