Integrate PHP web pages in a .NET website

PHP Tools [?] extends Visual Studio with set of advanced features to work more efficiently with PHP code.

Integrate PHP web pages in a .NET website

Postby zimo84 » February 25th, 2013, 1:45 pm

Hello,

Does someone know if it is possible to integrate PHP pages in a .NET website?
My purpose is to have a .NET website, with HTML and CSS, developed in C#, with some pages developed in PHP which interact whithin the website?

I have installed the PHP tools for Visual Studio.

Thank you in advance.

Bye

Simo
zimo84
 
Posts: 1
Joined: February 25th, 2013, 1:39 pm

Re: Integrate PHP web pages in a .NET website

Postby Jakub Misek » February 25th, 2013, 2:29 pm

Hi,

There are two ways of integrating .NET and PHP.

Simple one, you can just have .php files and .aspx files within one project. PHP Tools supports this kind of interoperability, and you are free to use ASP.NET web site project containing both asp files and php files. However you won't be able to take advantage of debugging features. For this option, just configure your web.config to handle .php files with your local php-cgi.exe.

There is a second option of tight PHP and .NET integration. If you require to make calls between these two languages (like use .NET libraries in PHP and vice versa), you may check Phalanger (http://phalanger.codeplex.com) - it replaces PHP with .NET compiler. So you will be actually using PHP language to create .NET programs, with all the benefits like C# has. Phalanger also comes with Visual Studio integration so you'll have all the PHP editor features too.

Thanks,
Jakub Misek │ DEVSENSE s.r.o. | @misekjakubjakub@devsense.com
User avatar
Jakub Misek
 
Posts: 2092
Joined: January 4th, 2012, 2:42 pm
Location: Prague


Return to PHP Tools

Who is online

Users browsing this forum: No registered users and 25 guests

cron

User Control Panel

Login

Who is online

In total there are 25 users online :: 0 registered, 0 hidden and 25 guests (based on users active over the past 5 minutes)
Most users ever online was 256 on March 28th, 2024, 9:42 am

Users browsing this forum: No registered users and 25 guests