3.17.184.90 |    

Navigation

Google Advertisement

include_path
  1. // define base directory from SCRIPT_FILENAME...
  2. $basedir = dirname( $_SERVER['SCRIPT_FILENAME'] ) or
  3.     die ("<code>ERROR: Can't detect \$basedir from \$_SERVER['SCRIPT_FILENAME']!</code>");
  4.  
  5. // upgrade the include path...
  6. ini_set( "include_path", ".:".$basedir.":".$basedir."/include:".$basedir."/plugin" );
  7.  
  8. // include library from ./include/...
  9. include ( 'global.inc.php' );
Parsed in 0.009 seconds at 39.78 KB/s

Search
 
Full text search by name and content of a snippet.

User online
There are 4 users online.

Tags Cloud

Latest snippets
str2seconds
(Bash::Function)
is_integer
(Bash::Function)
file_rotate
(Bash::Function)
confirm
(Bash::Function)
is_workingtime
(Bash::Function)
last day of last month
(Bash::Snippets)
crypt_apr1_md5
(PHP::Function)
crypt_apr1_md5
(Perl::Function)
transparent
(CSS)
rfc2822Toiso8601
(PHP::Function)