I'm using a laptop that runs on Windows 10 Home Single Language which is 64-bit Operating System, x64-based processor
Previously, I used to install WAMP/XAMPP on my machine to use PHP and MySQL.
In case of WAMP "www"was my document root directory and in case of XAMPP "htdocs" was my document root directory. In these directories I used to put my PHP files and run them from my browser by entering the URL as
http://localhost/dir_name/file_name.php
But, now I've come to know that since PHP 5.4.0 built-in server has been provided by PHP, so there is no need to install and configure a full-fledged web server.
I referred the file from official PHP documentation :
http://php.net/features.commandline.webserver
But I could not get how to run the built-in web-server on Windows machine as everything has been explained in the manual is with respect to Linux operating system.
Also, please let me know where should I keep my PHP files that I used to keep in a folder under "www" or "htdocs" folder.
Also, guide me in accessing these PHP files from a web browser using this built-in web server like I used to do previously(http://localhost/dir_name/file_name.php
)
Thank You.
I tried with the following command in to command prompt:
php -S localhost:8000
but it gave me nothing
see below image