Downloads

Download tar.gz 10.89 KB
MD5: 24fc7aedcaa22b6747dcf27105501e41
SHA-1: 2922739250224ec5ef7c833635cb654d2167a0f8
SHA-256: bd13b31b3b5340131662b3fe8386ff1460d058239c67bfa105536dca09046e74
Download zip 13.24 KB
MD5: 47129348d6e57d99efbd38dfb2e06158
SHA-1: 2b67741e3b53c0a6b0e15fec4eaa3aed971f38e1
SHA-256: 25d5a33917eb818cb37ee3497ae55b3dc8a634b821a9131f780da8ffa8d4589b

Release notes

Manages files on the include_files path, downloading them to a local include repository, if necessary.

Once a file is downloaded, the local include repository is added to the include_files path on every page request.

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

$path The target path to install, relative to the include file root. If $path is empty or ends in a trailing slash, it is interpreted as a directory name, and both $source and $type are ignored.

$source (optional) The file data, or a uri where it may be found. If unset or empty, then $path is a directory name, and $type is ignored.

$type (optional) A string which determines how $source is to be interpreted. Must be one of the following:

  • 'dir' : $path is a directory name, and $source is ignored.

  • 'file' : (Default) realpath($source) is a local file.

  • 'url' : $source is a string containing the file data.

Return value

TRUE if the file was found or installed; otherwise FALSE.

Created by: pillarsdotnet
Created on: 9 Apr 2011 at 17:08 UTC
Last updated: 10 Apr 2011 at 00:14 UTC

Other releases