dev-resources.site
for different kinds of informations.
Run a local PHP web server
Published at
7/21/2021
Categories
php
webserver
Author
muncey
One of the reasons that I like using PHP is that it is an easy language to pickup and also an easy language to create a new project. I will often times use PHP as a prototyping language and once I am happy with the project move onto a more robust platform such as .NET or Java.
To create a new web server using PHP is actually very easy. All that you need to do is create a file such as index.php with some php and html code in it and then run this command:
php -S localhost:3000
This command will start a local web server that you can then access easily enough at http://localhost:3000 as per the example below.
Articles
12 articles in total
How I was able to configure syntax highlighting on my WordPress site
read article
I have updated my WordPress REST API to set and return the number of views per post
read article
OAuth calls for PHP
read article
Enabling API Access for Google Sheets
read article
Run a local PHP web server
currently reading
Using google sheets as a database
read article
Deploying my budget tool to Heroku
read article
Creating an online budget tool 5/5
read article
Creating an online budget tool 4/5
read article
Creating an online budget tool 3/5
read article
Creating an online budget tool 2/5
read article
Creating an online budget form 1/5
read article
Featured ones: