PHP.INI: Relative Ways?

I am using the local php.ini file in the root directory of my website.

If I put the path "logs / php_error.log" for error_log in php.ini, does it look for a folder named logs in the same folder as php.ini?

php.ini is located in the root folder (public_host) on my web server. I want to save errors in the folder where php.ini is located. How to write such a path in my local php.ini?

/public_html/php.ini
/public_html/logs/php_error.log
+4
source share
1 answer

It depends on how you use PHP, since you did not specify this.

php.ini, , suPHP? , CWD suPHP , script. , php.ini, script, Apache (, "error_log" ), error_log script, Apache). suPHP, , .

+3

Source: https://habr.com/ru/post/1535775/


All Articles