Almost all PHP programmers use Apache or NGINX as their server.
Even they're just coding using PHP (no SQL).
For this reson, Actually you can start your own server with just using the executable php file
in Windows (php.exe).
Thi s very useful if you want to experiment or learn more about PHP without database. You still can use MySQL if the socket was started.
Note : This only works for PHP version 5.4
Fire up your terminal or command prompt in windows
cdin your web project. in my case its in
- And type
php -S [serverip/domain:port]In this case I type
php -S localhost:8089
You can set any port as long it is not being use.
And now fire up your facourite browser
localhost:8089in my case.
Notice the index.php in my project folder is loaded in browser