File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -35,17 +35,17 @@ codeigniter/
3535$ composer create-project kenjis/codeigniter-composer-installer codeigniter
3636```
3737
38- If you want to install translations for system messages (requires shell).
38+ If you want to install translations for system messages (requires shell):
3939
4040```
4141$ bin/install-translations.sh
4242```
4343
44- ### Run PHP built-in server
44+ ### Run PHP built-in server (PHP 5.4 or later)
4545
4646```
4747$ cd /path/to/codeigniter
48- $ php -S localhost:8000 -t public/
48+ $ php -S localhost:8000 -t public/ bin/router.php
4949```
5050
5151### Update CodeIgniter
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ $ file = $ _SERVER ['DOCUMENT_ROOT ' ] . $ _SERVER ['SCRIPT_NAME ' ];
4+ //echo $file, PHP_EOL;
5+
6+ if (is_file ($ file )) {
7+ return false ;
8+ }
9+
10+ //$_SERVER = array_merge($_SERVER, $_ENV);
11+
12+ $ _SERVER ['SCRIPT_FILENAME ' ] = $ _SERVER ['DOCUMENT_ROOT ' ] . '/ ' . 'index.php ' ;
13+ //echo $_SERVER['SCRIPT_FILENAME'], PHP_EOL;
14+
15+ require './index.php ' ;
You can’t perform that action at this time.
0 commit comments