bzsveq
Last Updated: August 24, 2018
·
1.413K
· 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

4130

nice!

over 1 year ago ·
30465

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 https://windowsclassroom.com/find-wifi-password-on-windows-10 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 ·