How to run php file in localhost #shorts

preview_player
Показать описание
#shorts Lots of people run php after installing xampp and that to pasting all php files in htdocs folder to run it on localhost that is your local machine.

However this short cut will change your life. Just run the php on local machine with this command from any folder where you have your php file.
Рекомендации по теме
Комментарии
Автор

It works, but does anyone know how to open 2 sites at the same time?

Informatik-imhy
Автор

php : The term 'php' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ php -S localhost:8000
+ ~~~
+ CategoryInfo : ObjectNotFound: (php:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

dimon.digital
Автор

My CMD said php isn't recognized as an internal or external command

footballclips
Автор

Error:

Not found

The requested resource / was not found on this server

starmusic
join shbcf.ru