Description
Builds the external directory nameFor non Windows servers (e.g. Linux) we need to find the "home" directory and build $external_dir from there e.g. If [DOCUMENT_ROOT] => /home/t10scom/public_html and $dir parameter is '/zipdir/' then external_directory will become "/home/t10scom/zipdir/"
Usage
$string = oikp_build_external_dir( $dir );Parameters
- $dir
- ( mixed ) required –
Returns
string external directory with "home" directory prependedSource
File name: oik-plugins/oik-plugins.phpLines:
1 to 5 of 5
function oikp_build_external_dir( $dir ) { $external_dir = dirname( $_SERVER['DOCUMENT_ROOT'] ); $external_dir .= $dir; return( $external_dir ); }View on GitHub
Called by
1 to 1 of 1
Invoked by
Calls
Call hooks
API Letters:
