如何在Visual Studio中使用PHP [英] How to use PHP with Visual Studio

查看:188
本文介绍了如何在Visual Studio中使用PHP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

首先让我说我从来没有使用过PHP,但是我想学习它,所以我的问题是,您如何在Visual Studio Ultimate中使用PHP?它与您声明JQuery即

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 JQuery i.e

$(document).ready(function () 
{ 
    // Code goes here?  
});

我已经在Google上进行了多次搜索,但是找不到所需的答案.

I've done multiple searches on Google, but I don't get the answer I'm looking for.

还是我需要完全不同的软件才能使用它?

Or do I need a complete different bit of software to use it?

推荐答案

默认情况下,VS不是运行PHP的,但是您可以使用扩展名来做到这一点:

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.

如果要在VS中安装它,请转至工具>扩展管理器> Online Gallery>搜索PHP,您将在其中找到Visual Studio的PHP工具(上面的链接).另外,您还有 VS.Php 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.

您还有一个很酷的PHP编译器,叫做Phalanger:

You have also a cool PHP compiler called Phalanger:

如果我没记错的话,您上面编写的代码是JavaScript(jQuery)而不是PHP.

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

如果您想要PHP的出色独立IDE :(免费)

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

这篇关于如何在Visual Studio中使用PHP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆