P粉1410350892023-09-01 10:37:04
php Sparkserve
Only works with CodeIgniter 4. For CodeIgniter 3, you can use the php -S localhost:8080
directory (usually the root folder of your project). 8080 is the port, you can replace it with any available port if needed. command line in the
index.php
You will also need to edit the application/config/config.php
file so that $config['base_url']="http://localhost:8080/"
code>. But for peace of mind, and to avoid having to edit your environment when changing it (eg: staging, production), it's better to use environment variables (Set environment variables using CodeIgniter 3).
hope it helps you.