Webastor - Programming Tips and Tricks

Programming language => PHP => Topic started by: Jay on August 21, 2015, 08:16:54 AM

Title: Will php work without a server?
Post by: Jay on August 21, 2015, 08:16:54 AM
Hi, I have a little question that has been in my head since just now, and I can not find an answer, will php work without a server? Thank you please kindly give me your help quickly because I am stressed.
Title: Re: Php server
Post by: Aayan on June 16, 2017, 09:45:43 PM
It's worth adding that PHP from version 5.4 onwards is able to run a web server on its own. You can do it by running this code in a folder which you want to serve the pages from:

$ php -S localhost:8000