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  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
ASP Web Hosting  
ASP.NET Web Hosting 
Mobile Linux 
App Generation ROI 
Windows Web Hosting
 
IBM® developerWorks 
Sun Developer Network 
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 / 2
    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

    - Developing a Mini ASP.NET AJAX Server Centri...
    - Disadvantages of the ASP.NET MVC Framework
    - Advantages of the ASP.NET MVC Approach
    - ASP.NET Web Forms Weaknesses
    - ASP.NET Web Forms Meets ASP.NET MVC
    - Source Code for Saving and Retrieving Data w...
    - Using GridView to Save and Retrieve Data wit...
    - Handling Dynamic Images in ASP.NET 3.5 AJAX ...
    - Retrieving Data with AJAX and the GridView C...
    - Playing with Images in ASP.NET 3.5 AJAX Appl...
    - Saving and Retrieving Data with AJAX
    - Enhancing PHP Via the ASP.NET AJAX Framework...
    - Enhancing PHP Programming with the ASP.NET A...
    - Classes and ASP.NET AJAX
    - Using ASP.NET AJAX

     
    Best Practices for Windows Vista Migration Presentation
    Dell and Microsoft recently held a series of face-to-face seminars entitled, &qu....

     
    Creating a Culture for Code Reuse
    If you oversee development teams you know that like it or not proprietary and ex....

     
    Keys to Web Application Acceleration: Advances in Delivery Systems
    Accelerate Web apps by up to 5x. Ensure significantly faster access to the Web a....

     
    Optimizing Application Monitoring
    Tired of finding out from your customers that you're offline? This white paper e....

     
    Solaris to Solaris Migration -- Migrating applications from Sun SPARC to Dell PowerEdge R900
    This comprehensive Migration Guide reviews the approach that Principled Technolo....

     




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