Atom editor, open php script on localhost (Test on browse) [closed]

0

In Netbeans when you click | > (play) I run my php project on localhost. Now I am testing the Atom editor and wanted to know if there is any plugin / extension that enables this function. Open in browse html files, I already managed, but run the "index.php" I'm not getting.

    
asked by anonymous 08.02.2017 / 21:14

1 answer

1

Carlos, you can open the HTML as it is interpreted by any Browser. However, PHP requires that you install a PHP server. Previously, what was normally installed was apache2, but today with PHP 7 you can execute the command by CMD or terminal:

php -S localhost:8000 -t seudiretorio/index.php

NetBeans should probably have some built-in PHP server, so it works. I hope I have helped.

    
10.02.2017 / 00:33