note 129709 added to configuration.file

From: Date: Thu, 15 Aug 2024 20:58:05 +0000
Subject: note 129709 added to configuration.file
Groups: php.notes 
Request: Send a blank email to php-notes+get-221482@lists.php.net to get a copy of this message
I'm not sure why the comment saying you can use constants is downvoted so much. This is amazing news and just what I was looking for. Having a configuration like: php_admin_value[error_log] = "/logfolder/php-fpm-"PHP_VERSION".$pool.log" will nicely log to /logfolder/php-fpm-8.3.10.mypool.log , which is really useful if you have multiple versions of PHP running and want to keep your log files separate and not have to fiddle with the configuration each time you update. A list of the pre-defined constants is here ( https://www.php.net/manual/en/reserved.constants.php#reserved.constants.core ) The PHP_*_VERSION, PHP_VERSION, PHP_OS_FAMILY, and maybe PHP_SAPI are useful in this case. ---- Server IP: 45.112.84.4 Probable Submitter: 80.90.5.137 (proxied: 2607:fea8:fd04:800b:ecea:c3dc:69c5:a6f6) ---- Manual Page -- https://php.net/manual/en/configuration.file.php Edit -- https://main.php.net/note/edit/129709 Del: integrated -- https://main.php.net/note/delete/129709/integrated Del: useless -- https://main.php.net/note/delete/129709/useless Del: bad code -- https://main.php.net/note/delete/129709/bad+code Del: spam -- https://main.php.net/note/delete/129709/spam Del: non-english -- https://main.php.net/note/delete/129709/non-english Del: in docs -- https://main.php.net/note/delete/129709/in+docs Del: other reasons-- https://main.php.net/note/delete/129709 Reject -- https://main.php.net/note/reject/129709 Search -- https://main.php.net/manage/user-notes.php

« previous php.notes (#221482) next »