Php – .net and php on same host

hostingnetPHP

I apologise if this is an idiot question but I've not had much expertise in this area.

I have a php website which needs to work under the same domain name as .net website, how can I go about achieving this? My first thought was to host them both together but I wasn't sure if you could run two different languages on the same hosting? I would be most grateful if you could let me know.

Best Answer

There may be alternative / better solutions however can definitely do this under Windows using IIS - the simplest method would be to either tell IIS to handle all requests for files with .php extensions using PHP, or alternatively to have IIS handle requests in one virtual directory with PHP and requests in another virtual directory using ASP.Net.

There are plenty of resources on the web on how to run PHP under IIS / Windows:

Related Topic