how to activate php development server windows code example

Example: how to activate php development server windows

open the command prompt
  
php -S localhost:4000
  
then copy the link returned into the search tab while also parsing in
the directory containing the PHP file

for example if your terminal after entering step 2 returns to you
[Wed Apr 21 10:46:33 2021] PHP 8.0.3 Development Server (http://localhost:4000) started
you should enter into the search tab
http://localhost:4000/directory_to_php_file
http://localhost:4000/php_file_dir/site.php

Tags:

Misc Example