+ 3
Easiest way to make a localhost to test a php program?
I just want to know how to make a localhost easily using command prompt line(using windows)
3 Answers
+ 3
Mohamed ELomari thanks, I'll try this
+ 1
by using the php built-in server:
first step you need to add your PHP installation directory to the "%PATH%" environment variable
if first step was already done then you can type this command:
php -S localhost:5000 -ddisplay_errors=1 -t"your_document_root"
+ 1
I've been using MAMP for this purpose for quite some time, and I feel that it's the most easiest one to setup for creating local host.
https://www.mamp.info/en/
But the most popular one is XAMPP, and I will also advise that you go for XAMPP
https://www.apachefriends.org/download.html