So in the start we learn some basic commands in terminal like:
mkdir - creating folder
cd - changing directory
Now for the important stuff, to run a php server we need to get in project directory where our index file is, and run this in terminal:
php -S localhost:8888
(8888 could be any other port number)
This makes our website run on our local server.
Also basic php tag is explained <?php ?>
Everything inside it is considered php code.
That should be about it.
Top comments (0)