Back to index

php5  5.3.10
Functions | Variables
gzopen_include_path.inc File Reference

Go to the source code of this file.

Functions

 generate_next_rel_path ()
 generate_next_path ()
 create_include_path ()
 relative_include_path ()
 teardown_include_path ()
 teardown_relative_path ()

Variables

 $pwd = getcwd()
 $f = basename(__FILE__)
 $dir1 = ".dir1"
 $dir2 = ".dir2"
 $dir3 = ".dir3"
 $dir4 = ".dir4"
 $newdirs = array($dir1, $dir2, $dir3)
 $reldirs = array("dir1", "dir2", "dir3")

Function Documentation

Definition at line 42 of file gzopen_include_path.inc.

                               {

       global $newdirs;
       //create the include directory structure
       $pathSep = ":";
       $newIncludePath = "";
       if(substr(PHP_OS, 0, 3) == 'WIN' ) {
          $pathSep = ";";
       }
       foreach($newdirs as $newdir) {
          mkdir($newdir);
          $newIncludePath .= $newdir.$pathSep;
       }
       return $newIncludePath;
}

Definition at line 27 of file gzopen_include_path.inc.

                              {
       global $newdirs, $dir4;
       //create the include directory structure
       $pathSep = ":";
       $newIncludePath = "";
       if(substr(PHP_OS, 0, 3) == 'WIN' ) {
          $pathSep = ";";
       }
       foreach($newdirs as $newdir) {
          $newIncludePath .= $newdir.$pathSep;
       }
       return $dir4.$pathSep . $newIncludePath;
}

Definition at line 13 of file gzopen_include_path.inc.

                                  {
       global $reldirs;
       //create the include directory structure
       $pathSep = ":";
       $newIncludePath = "";
       if(substr(PHP_OS, 0, 3) == 'WIN' ) {
          $pathSep = ";";
       }
       foreach($reldirs as $newdir) {
          $newIncludePath .= $newdir.$pathSep;
       }
       return "dir4".$pathSep . $newIncludePath;
}

Definition at line 58 of file gzopen_include_path.inc.

                                 {

       global $reldirs;
       //create the include directory structure
       $pathSep = ":";
       $newIncludePath = "";
       if(substr(PHP_OS, 0, 3) == 'WIN' ) {
          $pathSep = ";";
       }
       foreach($reldirs as $newdir) {
          mkdir($newdir);
          $newIncludePath .= $newdir.$pathSep;
       }
       return $newIncludePath;
}

Definition at line 75 of file gzopen_include_path.inc.

                                 {

       global $newdirs;
       // remove the directory structure
       foreach($newdirs as $newdir) {
          rmdir($newdir);
       }
}

Definition at line 84 of file gzopen_include_path.inc.

                                  {

       global $reldirs;
       // remove the directory structure
       foreach($reldirs as $newdir) {
          rmdir($newdir);
       }
}

Variable Documentation

$dir1 = ".dir1"

Definition at line 4 of file gzopen_include_path.inc.

$dir2 = ".dir2"

Definition at line 5 of file gzopen_include_path.inc.

$dir3 = ".dir3"

Definition at line 6 of file gzopen_include_path.inc.

$dir4 = ".dir4"

Definition at line 8 of file gzopen_include_path.inc.

$f = basename(__FILE__)

Definition at line 3 of file gzopen_include_path.inc.

$newdirs = array($dir1, $dir2, $dir3)

Definition at line 9 of file gzopen_include_path.inc.

$pwd = getcwd()

Definition at line 2 of file gzopen_include_path.inc.

$reldirs = array("dir1", "dir2", "dir3")

Definition at line 11 of file gzopen_include_path.inc.