Microsoft Hosts Project to Run PHP on .Net

Published: Aug 10, 2006
Updated: Feb 2, 2021
2 minute read
eWeek のコンテンツおよび製品のおすすめは、編集上の独立性を保っています。パートナーへのリンクをクリックすると、当社が報酬を得る場合があります。 詳細を見る

Extending its support for scripting and dynamic languages, Microsoft is hosting a project on its CodePlex site to deliver a PHP language compiler for the .Net Framework.

Known as Phalanger, the project reached Version 2.0 Beta 2 on July 30.

The primary goal of the project, released under Microsoft Shared Source Permissive License, is to enable full functionality of existing PHP scripts on .Net without any modification, Microsoft said.

Unlike the original PHP interpreter, Phalanger compiles scripts into MSIL (Microsoft Intermediate Language).

Phalanger offers Web application developers the ability to leverage both the ease-of-use and effectiveness of the PHP language and the power and richness of the .Net platform, the company said.

And the compiler developers can deploy and run existing PHP code on an ASP.Net Web server and develop cross-platform extensions to that code.

Meanwhile, the object model in Phalanger is compatible with PHP 5.0, and it lets developers combine PHP objects with .Net ones.

In fact, developers can use a class written in PHP from a .Net application or to import a .Net class—that might be written in C# or Visual Basic—into PHP scripts, the company said.

According to the CodePlex site, a major feature in Beta 2 is laying the groundwork for integrating Phalanger with Visual Studio 2005.

This integration is expected to be available “very soon,” the site said.

PHP, technically known as PHP: Hypertext Preprocessor, is a scripting language most often used for server-side Web scripting.

Developers typically use the PHP interpreter to run their code, but using compiled binaries is generally viewed as providing better performance than interpreted source code, Microsoft officials said.

In addition, the .Net Framework provides a secure environment and interoperability with other code running on the Microsoft CLR (Common Language Runtime), the company said.

A phalanger is a long-tailed possum-like marsupial native to Australia.

As Microsoft works to deliver a PHP compiler on .Net, the company also is baking in generic support for dynamic languages, said Jim Hugunin, creator of IronPython, an implementation of the Python language on .Net.

Advertisement

/zimages/2/28571.gifClick hereto read more about security issues with PHP.

And various researchers and other groups are working on producing a compiler and interoperability bridge for the Ruby language on the .Net platform.

/zimages/2/28571.gifCheck out eWEEK.coms for the latest news, reviews and analysis in programming environments and developer tools.

Darryl K. Taft

Darryl K. Taft

Content Writer

Darryl K. Taft covers the development tools and developer-related issues beat from his office in Baltimore. He has more than 10 years of experience in the business and is always looking for the next scoop. Taft is a member of the Association for Computing Machinery (ACM) and was named 'one of the most active middleware reporters in the world' by The Middleware Co. He also has his own card in the 'Who's Who in Enterprise Java' deck.

eWeek Logo

eWeek has the latest technology news and analysis, buying guides, and product reviews for IT professionals and technology buyers. The site's focus is on innovative solutions and covering in-depth technical content. eWeek stays on the cutting edge of technology news and IT trends through interviews and expert analysis. Gain insight from top innovators and thought leaders in the fields of IT, business, enterprise software, startups, and more.

TechnologyAdvice が所有・運営しています。 © 2026 TechnologyAdvice. 無断転載を禁じます

広告主に関する開示:このサイトに掲載されている製品の一部は、TechnologyAdvice が報酬を受け取っている企業のものです。この報酬は、製品がこのサイトのどこにどのように表示されるか(表示される順序など)に影響する場合があります。TechnologyAdvice は、市場で入手可能なすべての企業やすべての種類の製品を掲載しているわけではありません。