PHP Classes

Yii2 MultiFS package blog

Recommend this page to a friend!

Latest Yii2 MultiFS package blog posts

  All package blogs All package blogs   Yii2 MultiFS Yii2 MultiFS   Blog Yii2 MultiFS package blog   Post article Post article  

1. How to Setup Applications to Use Dynamic File Paths based Configuration Values using a Path Handler from a PHP File System Library

Updated on: 2023-02-11

Posted on:

PHP is a flexible language in many aspects. One of these aspects is that it allows applications to provide classes that emulate several operations developers can execute when accessing files and directories.

For instance, PHP provides file system iterator classes that allow applications to traverse the files and directories contained in a given directory.

This package implements file system classes that file system iterator classes can access to traverse directories so that the full path is defined dynamically from application configuration values loaded using the Yii2 framework configuration access classes.

It also provides file upload handling support that uses these file system access classes to store the uploaded file contents in directories with paths that depend on the current application configuration.

This way, this application provides flexibility to application developers, so they do not have to hardcode the full application paths of the directories where important application files are stored.


Blog More ...   Post a comment Post a comment   See comments See comments (0)   Trackbacks (0)


  All package blogs All package blogs   Yii2 MultiFS Yii2 MultiFS   Blog Yii2 MultiFS package blog   Post article Post article