ASP.NET
  Home arrow ASP.NET arrow Page 2 - Enhancing PHP Programming with the ASP.NET...
ASP Free Forums 
.NET  
ASP  
ASP Code  
ASP.NET  
ASP.NET Code  
BrainDump  
C#  
Code Examples  
Database  
Database Code  
IIS  
Microsoft Access  
MS SQL Server  
Silverlight  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
ASP Web Hosting  
ASP.NET Web Hosting 
Windows Web Hosting
 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
ASP.NET

Enhancing PHP Programming with the ASP.NET AJAX Framework
By: Xianzhong Zhu
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 3
    2008-06-24

    Table of Contents:
  • Enhancing PHP Programming with the ASP.NET AJAX Framework
  • Introducing PHP for Microsoft AJAX Library
  • Download and set up PHP and the related web server
  • Use PHP class to define web service

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Enhancing PHP Programming with the ASP.NET AJAX Framework - Introducing PHP for Microsoft AJAX Library


    (Page 2 of 4 )

    In January 2007, Steve Marx of Microsoft released an open source project on Codeplex (http://www.codeplex.com/phpmsajax) that tried to introduce the Microsoft AJAX Library of the ASP.NET AJAX framework into the PHP scenario.

    First of all, let's dissect the basic implementation principle of the PHP for Microsoft AJAX Library project.

    Up to now, PHP for Microsoft AJAX Library only contains two PHP files: MSAjaxProxyGenerator.php (5K) and MSAjaxService.php (4K). In MSAjaxService.php, there's a PHP class that is defined-MSAjaxService-from which we can further derive custom PHP classes to simulate web service and related web method definitions using PHP skills. Within the other file, MSAjaxProxyGenerator.php, there's another PHP class that is defined-MSAjaxProxyGenerator-through whose generateClientProxy() method (and recurring to Microsoft AJAX Library) the JavaScript proxy of the above-mentioned simulated web service can be implemented without any difficulty.

    Before delving into the related sample applications, let's first take a quick look at how to set up the required test circumstances.

    Download and set up PHP for Microsoft AJAX Library

    Launch your browser and navigate to http://www.codeplex.com/phpmsajax. This is the supporting site for the open source project, PHP for Microsoft AJAX Library. It has the introduction of the project, the latest project version (3 Alpha for downloading), running environment guidance, as well as a basic sample to use the project.

    When you click the hyperlink "3 Alpha," you will be redirected to this page: http://www.codeplex.com/phpmsajax/Release/ProjectReleases.aspx?ReleaseId=1692. Figure 1 gives the most interesting information associated with downloading the project on the page.

    Figure 1-download the open source project, PHP for Microsoft AJAX Library


    As is shown in Figure 1, there are two choices for you to download: phpmsajax.zip or phpmsajax-NoSource.zip. Note that the latter merely provides two related PHP files for PHP for Microsoft AJAX Library: MSAjaxProxyGenerator.php and MSAjaxService.php. The former also ships with two sample applications (HelloWorld and ClassSerialization) along with the other two files in order to demonstrate the basic use of the project.

    To gain a quicker and better understanding of the project, you are highly advised to download the former. However, after you've looked through the two samples and taken a quick glimpse at the two related project files, you may find out that the whole thing is still in its early stages.

    More ASP.NET Articles
    More By Xianzhong Zhu


     

    ASP.NET ARTICLES

    - Develop Your First ASP.NET Website with Visu...
    - Run ASP.NET in Windows XP Home with Cassini ...
    - How to Test a Web Application
    - How to Add Code and Validation Controls to a...
    - Working in Source and Split Views to Build a...
    - How to Build a Web Form for a One-Page Web A...
    - How to Develop a One-Page Web Application
    - An ASP.NET Web Application in Action
    - Developing ASP.NET Web Applications
    - An Introduction to ASP.NET Web Programming
    - Introduction to the ADO.NET Entity Framework...
    - Completing an In-Text Advertising System und...
    - Programming an In-Text Advertising System un...
    - Building an In-Text Advertising System Under...
    - Developing a Mini ASP.NET AJAX Server Centri...





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 6 Hosted by Hostway
    Stay green...Green IT