How to use PHP with Visual Studio

前端 未结 6 935
我寻月下人不归
我寻月下人不归 2020-12-02 10:18

First let me say I\'ve never used PHP but I\'m looking to learn it, so my question is this how do you use PHP within Visual Studio Ultimate? is it similar to how you declare

6条回答
  •  时光取名叫无心
    2020-12-02 10:55

    By default VS is not made to run PHP, but you can do it with extensions:

    You can install an add-on with the extension manager, PHP Tools for Visual Studio.

    If you want to install it inside VS, go to Tools > Extension Manager > Online Gallery > Search for PHP where you will find PHP Tools (the link above) for Visual Studio. Also you have VS.Php for Visual Studio. Both are not free.

    You have also a cool PHP compiler called Phalanger: Phalanger PHP Compiler

    If I'm not mistaken, the code you wrote above is JavaScript (jQuery) and not PHP.

    If you want cool standalone IDE's for PHP: (Free)

    • Netbeans: https://netbeans.org/downloads/start.html?platform=windows&lang=en&option=php
    • Eclipse: http://www.eclipse.org/downloads/packages/eclipse-php-developers/heliosr

提交回复
热议问题