Tag

file-locking

0 views collected around this technical thread.

php中文网 Courses
php中文网 Courses
Oct 13, 2023 · Backend Development

Using PHP flock() for File Locking: Concepts, Modes, and Example Code

This article explains PHP's flock() function for file locking, covering the purpose of file locks, basic usage syntax, lock modes (shared, exclusive, unlock), a complete example script, and important considerations to safely handle concurrent file access in backend applications.

Concurrencybackendfile-handling
0 likes · 4 min read
Using PHP flock() for File Locking: Concepts, Modes, and Example Code
Practical DevOps Architecture
Practical DevOps Architecture
Dec 2, 2016 · Operations

Best Practices for Writing Safe Shell Scripts for MySQL Backup

This article explains how to make robust MySQL backup shell scripts by adding logging, usage instructions, file locking, and proper comments to avoid rogue behavior and ensure reliable operation.

file-lockingloggingmysql backup
0 likes · 5 min read
Best Practices for Writing Safe Shell Scripts for MySQL Backup