0

how to use php variables in apache

Is it possible to set my PHP variables to my apache' s config file. i.e it should load from httpd.conf file not from php.ini file???

Apache Php Environment Variables Add a comment
caden
asked May 12 2017

Answer

0

Definitely its possible to do so. You can initiate PHP variables in httpd.conf file. But once the PHP is initialized it first reads the php.ini file.

NOTE:

php.ini variable put into your httpd file will apply to php when it runs as apache module i.e in web page but not in CLI.

Add a comment
jagannatharumugam
asked May 12 2017
edited Oct 05 2018
Post your Answer