Include
Installs and manages files and packages that need to reside on the PHP include_path.
Any file not found on the default include_path is added to the local repository, which is then added to the include_path on every page load. If an error occurs, the original include_path is restored and an error flag is set to prevent further damage.
This very simple module contains only one externally useful function:
include_check_path($path, $source = NULL, $type = 'file')-
Verifies or installs a file or directory into the include repository.
- Parameters
-
$pathThe target path to install, relative to the include file root. If$pathis empty or ends in a trailing slash, it is interpreted as a directory name, and both$sourceand$typeare ignored. -
$source(optional) The file data, or a uri where it may be found. If unset or empty, then$pathis a directory name, and$typeis ignored. -
$type(optional) A string which determines how$sourceis to be interpreted. Must be one of the following:-
'dir':$pathis a directory name, and$sourceis ignored. -
'file': (Default) realpath($source) is a local file. -
'url':$sourceis a string containing the file data.
-
- Return value
-
TRUEif the file was found or installed; otherwiseFALSE.
Project information
- Project categories: Developer tools, Media
309 sites report using this module
- Created by pillarsdotnet on , updated
Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.
