Login   Register  
PHP Classes
elePHPant
Icontem

AJAX Locking: Lock server side resources from AJAX requests

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files View files (14)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2007-07-27 (7 years ago) RSS 2.0 feedStarStarStar 56%Total: 2,446 All time: 1,472 This week: 1,343Up
Version License PHP version Categories  
ajax_locking 0.4.1The PHP License4.2.0Language, AJAX
Description Author  

This package can be used lock server side resources to prevent race conditions that may occur when two users want to access the same resource simultaneously.

It uses AJAX to lock and unlock resources from Javascript code running on the browser, thus without reloading the current page.

The package comes with several drivers that can use different containers to manage the resource lock information. Currently it supports two drivers for SQL databases and shared memory as containers.

Innovation Award  
PHP Programming Innovation award nominee
November 2006
Number 3


Prize: One book of choice by SAMS
AJAX applications may trigger multiple requests to the Web server that can occur at the same time.

If different requests attempt to access and change the same server side resources at the same time, this may lead to race conditions that may cause undesired effects.

This class provides a solution that can be used to prevent this problem. It can lock server side resources that are being manipulated upon browser side events that trigger AJAX requests.

Manuel Lemos
Picture of Fabio Ambrosanio
Name: Fabio Ambrosanio <contact>
Classes: 4 packages by
Country: Italy Italy
Age: 46
All time rank: 48117 in Italy Italy
Week rank: 1763 Down79 in Italy Italy Down
Innovation award
Innovation award
Nominee: 3x

  Files folder image Files  
File Role Description
Files folder imageDriver (4 files)
Files folder imagejs (1 file)
Files folder imagetests (7 files)
Accessible without login Plain text file README.txt Doc. README
Plain text file AJAX_Locking.php Class PEAR HTML_AJAX class

  Files folder image Files  /  Driver  
File Role Description
  Plain text file Driver.php Class Base class for AJAX_Locking drivers
  Plain text file File.php Class Driver based on plain filesystem
  Plain text file MDB2.php Class Driver based on PEAR's MBD2 package
  Plain text file SharedMemory.php Class Driver based on PEAR's System_SharedMemory package

  Files folder image Files  /  js  
File Role Description
  Accessible without login Plain text file Locking.js Data Javascript library to handle AJAX calls

  Files folder image Files  /  tests  
File Role Description
  Accessible without login Image file locked.png Icon locked image
  Accessible without login Image file owned.png Icon owned image
  Accessible without login Plain text file server.php Aux. Example AJAX server
  Accessible without login HTML file test.html Data Test/Example
  Accessible without login Image file timeoutpng Icon timeout image
  Accessible without login Image file unlocked.png Icon unlocked image
  Accessible without login Plain text file _test.php Example Test/example

 Version Control Unique User Downloads Download Rankings  
 0%Total:2,446All time:1,472
 This week:0This week:1,343Up
 User Ratings  
 
 All time
Utility:75%StarStarStarStar
Consistency:75%StarStarStarStar
Documentation:50%StarStarStar
Examples:62%StarStarStarStar
Tests:-
Videos:-
Overall:56%StarStarStar
Rank:1161