How to run php code without installing apache or xampp or wampserver.

preview_player
Показать описание
how to run php code without installing apache or xampp or wampserver.

a. First, Open Project Directory Or Working directory.

b. Open a command prompt by clicking on start button and search command prompt. another option home key + r and type cmd and hit enter.

c. Go to working directory using command cd .

d. when you have reached on working directory, then enter the following command.

php -S localhost:8000

and hit enter.

Note: With PHP 5.4 or newer, you can start learning PHP without installing and configuring a full-fledged web server. To start the server, run above command from your terminal in your project’s web root.

Thank's for watching.
Don't forget to like & Subscribe.
Рекомендации по теме
Комментарии
Автор

This was incredibly helpful, thank you

jackdunfey
Автор

Is it possible for Windows 7? cause my computer's win 7 says that 'PHP" is not recognized as an internal or external command, operable program or batch file

ABUTAHER-wggz
Автор

I guess there should be installed an sdk sort of php or smth, shouldn't be?

webnetcoder
Автор

Isn't that a linux command. And, how do I install php?

defacube
Автор

I dont have wamp or xamp installed, can I still do this?

CarlosMoreno-vwir
Автор

An error is coming after written php -S localhost:8000

An attempt was made to access a socket in a way forbidden by its access permissions... Sir plz help me out from this situation

vasunarang
Автор

Will it work if I have xampp installed in my system?

rabiulazadtapu