PHP Classes

Safe IO: Access files using locks to prevent corruption

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2024-01-09 (9 months ago) RSS 2.0 feedNot enough user ratingsTotal: 377 All time: 6,750 This week: 488Up
Version License PHP version Categories
safeio 2BSD License5.0PHP 5, Files and Folders
Description 

Author

This class can access files using locks to prevent corruption.

It can open files and read or write data in them.

The class can use shared and exclusive locks to prevent that parallel scripts corrupt the file contents.

Picture of Nicola Covolo
  Performance   Level  
Name: Nicola Covolo <contact>
Classes: 6 packages by
Country: Italy Italy
Age: ???
All time rank: 127049 in Italy Italy
Week rank: 206 Up14 in Italy Italy Up
Innovation award
Innovation award
Nominee: 2x

  Files folder image Files (18)  
File Role Description
Files folder imagev1 (2 files, 1 directory)
Files folder imagev2 (2 files, 1 directory)

  Files folder image Files (18)  /  v1  
File Role Description
Files folder imagetests (5 files)
  Accessible without login Plain text file README.md Doc. Documentation
  Plain text file SafeIO.php Class Class source

  Files folder image Files (18)  /  v1  /  tests  
File Role Description
  Accessible without login Plain text file data.txt Data Auxiliary data
  Accessible without login Plain text file test.php Example Example script
  Accessible without login Plain text file test2.php Example Example script
  Accessible without login Plain text file test_multithreading.php Test Unit test script
  Accessible without login Plain text file Thread.php Test Unit test script

  Files folder image Files (18)  /  v2  
File Role Description
Files folder imagetests (9 files)
  Plain text file ConcurrentFile.php Class Class source
  Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files (18)  /  v2  /  tests  
File Role Description
  Accessible without login Plain text file data.txt Data Documentation
  Accessible without login Plain text file log.txt Data Auxiliary data
  Accessible without login Plain text file log2.txt Data Auxiliary data
  Accessible without login Plain text file test.php Example Example script
  Accessible without login Plain text file test2.php Example Example script
  Accessible without login Plain text file test3.php Example Unit test script
  Accessible without login Plain text file test4.php Example Unit test script
  Accessible without login Plain text file test_multithreading.php Test Unit test script
  Plain text file Thread.php Class Unit test script

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:377
This week:0
All time:6,750
This week:488Up