File tree Expand file tree Collapse file tree 1 file changed +25
-1
lines changed
user_guide_src/source/installation Expand file tree Collapse file tree 1 file changed +25
-1
lines changed Original file line number Diff line number Diff line change @@ -81,16 +81,40 @@ Checking PHP ini Settings
8181
8282.. versionadded :: 4.5.0
8383
84- PHP ini settings change the behaviors of PHP. CodeIgniter provides a command to
84+ ` PHP ini settings `_ change the behaviors of PHP. CodeIgniter provides a command to
8585check important PHP settings.
8686
87+ .. _PHP ini settings : https://www.php.net/manual/en/ini.list.php
88+
8789.. code-block :: console
8890
8991 php spark phpini:check
9092
9193 The *Recommended * column shows the recommended values for production environment.
9294They may differ in development environments.
9395
96+ .. note ::
97+ If you cannot use the spark command, you can use ``CheckPhpIni::run(false) ``
98+ in your controller.
99+
100+ E.g.,
101+
102+ .. code-block :: php
103+
104+ <?php
105+
106+ namespace App\Controllers;
107+
108+ use CodeIgniter\Security\CheckPhpIni;
109+
110+ class Home extends BaseController
111+ {
112+ public function index(): string
113+ {
114+ return CheckPhpIni::run(false);
115+ }
116+ }
117+
94118************************
95119Local Development Server
96120************************
You can’t perform that action at this time.
0 commit comments