You appear to be a bot. Output may be restricted
Description
Builds the external directory name
For 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 prepended
Source
File name: oik-plugins/oik-plugins.php
Lines:
1 to 5 of 5
function oikp_build_external_dir( $dir ) { $external_dir = dirname( $_SERVER['DOCUMENT_ROOT'] ); $external_dir .= $dir; return( $external_dir ); }