PHP Classes

File: example_put.php

Recommend this page to a friend!
  Classes of Juan Chaves  >  Simple API REST Class PHP  >  example_put.php  >  Download  
File: example_put.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Simple API REST Class PHP
Process REST API server requests
Author: By
Last change: update
Date: 3 years ago
Size: 429 bytes
 

Contents

Class file image Download
<?php
session_start
();
//example_put.php?q=Iphone&u=name:Tablet,value:103
if($_SESSION['loggedin']) {
    include(
'./simple_api_rest_class.php');
    include(
'./login.php');
   
//Example
   
$query = new SimpleApiRestClass();
   
$query->session_ok = $_SESSION['loggedin'];
   
$query->query = $_REQUEST['q'];
   
$query->update = $_REQUEST['u'];
   
$query->allows_services = 'put';
   
$post_query = $query->ReturnLogin();
    include(
'./server.php');
}
?>

For more information send a message to info at phpclasses dot org.