To run a live PHP server, follow these steps:

  1. run xampp/apache php server
  2. access localhost server: example: localhost/example/example.php
  3. start folder in vscode
  4. install chrome/firefox extension: live server by ritwickdey
  5. start live server (install extension if not installed yet) http://127.0.0.1:5000/
  6. configure live server:
    1. Live Reload: On
    2. [x] I don't want to proxy setup
    3. Actual Server Addres: http://localhost/example
    4. live server adddress: http://127.0.0.1:5000/
  7. Make any changes to the php code.
  8. access php page to see new changes: http://localhost/example
  9. Done

More info:

jMO2sLJElzs