Will php work without a server?

Started by Vladislav, August 21, 2015, 08:16:54 AM

Previous topic - Next topic

Jay

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.

Aayan

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