Last Updated: August 24, 2018
· ipetepete

Launch a quick PHP web-server for dev/tests

If you run PHP >= 5.4 you can do this (on the command line):

$> php -S localhost:9292

And it will start a web server in your current directory. This makes it easy to test backend json, responses, proxies etc etc. Of course, choose your own port

0 configuration + 0 Apache/Nginx = AWESOME

And as a bonus, if you do test some AJAX from another location, say a flat HTML file you might want to add this to your script:

header('Access-Control-Allow-Origin: *');

2 Responses
Add your response



over 1 year ago ·

How do i find my wifi password on windows 10,window are mostly used in operating system,Microsoft develped the many different tools and setting functions i am here and look it here the best ways to how do i change wifi and router password,so thanks for this platform.provide this info.

about 2 months ago ·