DEV Community

kostaNovak
kostaNovak

Posted on

EP 3: Your first php tag


Enter fullscreen mode Exit fullscreen mode

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
Enter fullscreen mode Exit fullscreen mode

(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)