Click here to Skip to main content
14,487,848 members
Rate this:
Please Sign up or sign in to vote.
See more:
Having never written a written php in VS before, am I right in assuming I just need a TEXT page ?

I seem to be having a problem, does VS even recognise simple php?
Rate this:
Please Sign up or sign in to vote.

Solution 3

Hi DD,

assuming your web server (presumablu some flavour of IIS) supports PHP, there are a number of ways to go about this. Let's start from the top:

First, PHP support needs to be added to your IIS. For IIS6, look here[^], and for IIS7, look here[^], here[^], and here[^].

Now that your IIS can serve PHP, you need to author PHP files, right? Well, VS (out of the box) does not provide intellisense and such for php. There are ways (usually paid addons) to go about that discussed in previous answers. I would say that would be the preferred solution. However, if money is tight, you could either use VS by editin a plain text file, ultimately giving it the .php extention (extention may vary with version of php, not sure), but again this will not have intellisense, code colouring and so on. Alternatively you can use one of a gazillion PHP editors freely available through the intergoogle and import your file to your VS project.

There is usually more than one way to the Collosseum.


Rate this:
Please Sign up or sign in to vote.

Solution 1

Visual Studio does not recognize PHP out of the box.

You might want to look into this[^]
Rate this:
Please Sign up or sign in to vote.

Solution 2

Don't know if it can... I don't think PHP is a Windows technology. But I did a quick Google search and it seems VS.Php is some sort of Visual Studio add-on for PHP.

Think you need to install something to get IIS to run PHP (may work different for XP, since it uses an older version of IIS, I think), and I'm guessing the web server that Visual Studio uses only runs ASP.Net, not PHP. That is not a problem if you have XP Pro, which comes with IIS (XP Home does not, so you must use the Visual Studio web server).

Perhaps you should not be using Visual Studio for PHP development in the first place?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100