Downloads

Download tar.gz 9.08 KB
MD5: 6a920a7575a2fa2754c2ce449856cf6c
SHA-1: 2df04ed1e34926b92e1a63411dc13a0390eefee6
SHA-256: 35d635e9d1f5ae19ba463a3808fba5992b0e48a507ef29c2b7821c9ebf210928
Download zip 11.06 KB
MD5: 93b02d7eaaccaa27ff73c08d204a9dac
SHA-1: 6b95fb6fd3c967d783fe06e6be396658c7058ffa
SHA-256: 1dcc3554a3a27a26860f5c8bcdf5bb9846ccddac8778f020739ad9cbcbb2c72e

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:07 UTC
Last updated: 9 Apr 2011 at 17:11 UTC
Unsupported

Other releases