PHP Classes

File: serverfile.php

Recommend this page to a friend!
  Classes of Er. Rochak Chauhan   Simple AJAX   serverfile.php   Download  
File: serverfile.php
Role: Auxiliary script
Content type: text/plain
Description: File to fetch data from server
Class: Simple AJAX
Execute server side actions without page reloading
Author: By
Last change:
Date: 19 years ago
Size: 444 bytes
 

Contents

Class file image Download
<?php
   
/**
     * You can query database in this file, get required text/string and print/echo it.
     * That text will be displayed by javascript on the main page(example.php)
     *
     */
   
if(isset($_GET) && count($_GET) > 0) {
        echo
"You can process your parameters and return result accordingly <br />";
        echo
"Hi ! My name is Rochak and i am testing AJAX.";
    }
    else {
        echo
"Hi ! My name is Rochak and i am testing AJAX.";
    }
?>