Home arrow PHP arrow Using the .NET Assembly in PHP

Using the .NET Assembly in PHP

Using the power of COM interop, you can write code in VB.Net or C# and use it in PHP, VB6, or any other language that can access COM. In this article Jayesh shows us how.

Author Info:
By: Jayesh Jain
Rating: 4 stars4 stars4 stars4 stars4 stars / 46
October 15, 2002
  1. · Using the .NET Assembly in PHP
  2. · Creating an Assembly
  3. · Creating the PHP File
  4. · Conclusion

print this article

Using the .NET Assembly in PHP
(Page 1 of 4 )

The .NET Framework is a new computing platform that simplifies application development in the highly distributed environment of the Internet. The .NET Framework is designed to provide a consistent object-oriented programming environment, a code-execution environment that minimizes software deployment and versioning conflicts, which guarantees safe execution of code and to build all communication on industry standards to ensure that code based on the .NET Framework can integrate with any other code.

An assembly is the primary building block of a .NET Framework application. It is a collection of functionality that is built, versioned, and deployed as a single implementation unit containing one or more files. Each assembly contains an assembly manifest.

The Component Object Model (COM) allows an object to expose its functionality to other components and to host applications. Interoperability with COM -- or COM interop -- allows you to create a COM wrapper around the .NET components, which makes Windows look at them as COM objects and thus makes them available to all of the calling COM applications including the beloved PHP.

PHP has built-in functionality to use COM objects. Using the COM interop feature of .NET, we will create a wrapper around the .NET assembly and use it in PHP (in fact you could use the same steps to use the .NET assembly in VB6 or any other COM applications).

This article assumes that you have fair knowledge of the .NET framework, PHP and COM. You should have Visual Studio .NET, PHP and IIS installed and working properly.
blog comments powered by Disqus

- Removing Singletons in PHP
- Singletons in PHP
- Implement Facebook Javascript SDK with PHP
- Making Usage Statistics in PHP
- Installing PHP under Windows: Further Config...
- File Version Management in PHP
- Statistical View of Data in a Clustered Bar ...
- Creating a Multi-File Upload Script in PHP
- Executing Microsoft SQL Server Stored Proced...
- Code 10x More Efficiently Using Data Access ...
- A Few Tips for Speeding Up PHP Code
- The Modular Web Page
- Quick E-Commerce with PHP and PayPal
- Regression Testing With JMeter
- Building an Iterator with PHP

Watch our Tech Videos 
Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us 
Weekly Newsletter
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 

Developer Shed Affiliates


© 2003-2019 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials