php
Imal Perera  

Simple PHP Server

Spread the love

Sometimes you need to write a small PHP script and run and see how it perform, such situations I’m sure you would be happy if you can instantly run the file instead of copying the files to a PHP server ( locally ). This can be easily achieved through the following command.

1. Go to the folder which you have the script ready

2. Run the command


php -S localhost:8000

type localhost:8000 in your browser, simple as that

Comment below if you like this very simple article and also if you are interested more PHP and tech-related articles visit the home page

Leave A Comment