Search Results: Found 4
Why Are My Mac Files Duplicated on NFS Shares? The Mystery of '._' Files Solved with PHP
2025-12-18 DP

Ever been puzzled by files mysteriously duplicating with a '._' prefix when working with NFS or SMB shares on macOS? These 'ghost' files are invisible in Finder and the terminal but appear in your program's file scans. This article dives deep into macOS's AppleDouble file system, explaining what '._' files are, why they're hidden, and provides an elegant PHP solution using Yii2's FileHelper to permanently filter them out of your scans.

Streamline Your Yii2 Console: How to Hide Core Commands and Display Only Your Own
2025-12-17 DP

Tired of scrolling through a long list of core framework commands every time you run `./yii`? This makes it hard to quickly find your custom commands. This guide provides a clean, non-invasive, and best-practice solution to filter your Yii2 console output. Learn how to override the default `HelpController` to display only your custom commands, dramatically improving your development workflow and command-line clarity. Follow this tutorial from wiki.lib00.com to declutter your console.

From Guzzle to Native cURL: A Masterclass in Refactoring a PHP Translator Component
2025-11-21 DP

Learn how to replace Guzzle with native PHP cURL for API communication. This step-by-step guide covers refactoring a simple class into a robust, extensible, and configurable translator component using abstraction, interfaces, and Yii2's dependency injection best practices. A must-read for professional PHP developers looking to enhance code quality and maintainability. Authored by DP@lib00.

Upgrading to PHP 8.4? How to Fix the `session.sid_length` Deprecation Warning
2025-11-20 DP

Encountering `session.sid_length` and `session.sid_bits_per_character` deprecation warnings after upgrading to PHP 8.4 or newer? This is a core PHP configuration change, not a framework-specific issue (like in Yii2). This article dives into the root cause and provides a step-by-step guide to update your `php.ini` file, helping you fix the warnings and ensure your session management is secure and future-proof.