ASP.NET
  Home arrow ASP.NET arrow Page 3 - 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 - Download and set up PHP and the related web server


    (Page 3 of 4 )

    As is explained on the home page of PHP for Microsoft AJAX Library, we have to install PHP 5.2 or higher and make sure we have the php-json module installed. In fact, the home page has also provided the download address for the php-json module (http://www.aurore.net/projects/php-json/). Moreover, on the home page, Steve announced that he had tested the project under both IIS7 (Vista) and Apache (Ubuntu 6.06 + PHP 5.2) environments.

    Fortunately, in recent years, PHP and Apache web server have both been developing rapidly and have now released their formal and steady versions-PHP 5.25 and Apache 2.28. Therefore, what you need to do is just download the two and make corresponding installations according to your own operation systems. Everything should go smoothly.

    Since my test environment is Windows XP professional + Visual Studio 2005 + ASP.NET AJAX + IIS 5.1 (shipped within Windows XP), the first thing that comes to mind is to test PHP for Microsoft AJAX Library project on IIS 5.1. Regrettably, I downloaded and tried PHP 5.20, PHP 5.23, and PHP 5.25 and tested the two shipped samples (even including some other limited samples found on the Internet) on IIS 5.1 again and again; I failed every time with similar fault prompts, as shown in Figure 2.


    Figure 2-the sample projects failed when tested on IIS 5.1

    For now, I've concluded that IIS 5.1 leads to the 'strange' error-the version is so low that it results in the error message shown in Figure 2. However, I am sorry not to have given the test result with a higher version of IIS because I was low on time. Therefore, readers who have installed higher versions of IIS can continue with the test.

    Finally, I had to resort to the open source Apache 2.2.6-actually, everything goes smoothly!

    If you install PHP 5.20, you also have to download the related php-json module, because the project will use the JSON technique to transfer data between the client side and the PHP server side. On the other hand, PHP 5.23 and PHP 5.25 have all provided built-in support for JSON (i.e. not with independent forms of extension modules any more). Therefore, it's better to utilize the higher versions of PHP.

    Next, let's turn to another task-download Microsoft AJAX Library.

    Download Microsoft AJAX Library

    This step is pretty easy. What you need to do is open your browser and navigate to http://www.asp.net/ajax/downloads/. Figure 3 gives the related download snapshot.


    Figure 3-download Microsoft AJAX Library

    In reality, when you download the package, you will find that the script files are practically the same as those shipped with ASP.NET 2.0 AJAX Extensions.

    Now, with all of our prerequisites taken care of, let's delve into a concrete sample that leverages PHP to the Microsoft AJAX Library in order to add Ajax features to the current PHP project. This sample application will retrieve animal information asynchronously from the PHP server side via a simulated web service.

    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 6 hosted by Hostway
    Stay green...Green IT