treehouse : what would you like to learn today?
Web Design Web Development iOS Development

PHP and ASP coexistance?

  • I have been a professional developer for many years (mainly large C++ and Java applications at big companies), but I am fairly new to web development. Since I am trying to branch out on my own as a freelancer, I have settled on PHP and MySQL as the technologies of choice. My question is, if a client is already using ASP, does that pretty much lock you into ASP? Can PHP and ASP coexist? I am assuming the problem really narrows down to what web server they are using. I am assuming that if they are using IIS, then there would be problems with Apache coexistance?

    If you can share some insight into this, I'd appreciate it.

    Thanks!
  • I really have no idea...

    My gut feeling is that if you have PHP running on the server, any file with a PHP extension should work as intended. The question is whether you can have PHP running on the server if ASP already is.
  • I had that same question, and had thought it wasn't possible. But I have found instructions through a google search for installing php on Windows Server 2003... also, in searching for a new webhost, I noticed two (seem to be two of the top) hosting companies that list PHP as a supported feature right next to ASP.NET, all running on Windows Server 2003. So, it looks like it can be done.

    http://www.webhost4life.com/hosting_nosetup1.asp - PHP listed under "Web Features"
  • Its possible if i am correct, but you have to have 2 ip adresses on the server. One for IIS and the other for Apache.

    Or ...
    you will have to run IIS on port 80 (default http port) and Apache for example on port 81.