Click here to Skip to main content
15,884,473 members
Please Sign up or sign in to vote.
4.67/5 (9 votes)
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?
Posted

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.

HTH,

//L
 
Share this answer
 
Visual Studio does not recognize PHP out of the box.

You might want to look into this
http://www.jcxsoftware.com/vs.php[^]
 
Share this answer
 
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?
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900