Back to index

php5  5.3.10
reading_include_path.inc
Go to the documentation of this file.
00001 <?php
00002 $thisTestDir = "zlibVariation.dir";
00003 mkdir($thisTestDir);
00004 chdir($thisTestDir);
00005 
00006 //create the include directory structure
00007 $workingDir = "workdir";
00008 $filename = "afile.txt.gz";
00009 $scriptDir = dirname(__FILE__);
00010 $baseDir = getcwd();
00011 $secondFile = $baseDir."/dir2/".$filename;
00012 $firstFile = "../dir1/".$filename;
00013 $scriptFile = $scriptDir.'/'.$filename;
00014 
00015 $newdirs = array("dir1", "dir2", "dir3");
00016 $pathSep = ":";
00017 $newIncludePath = "";
00018 if(substr(PHP_OS, 0, 3) == 'WIN' ) {
00019    $pathSep = ";";
00020 }
00021 foreach($newdirs as $newdir) {
00022    mkdir($newdir);
00023    $newIncludePath .= '../'.$newdir.$pathSep;
00024 }
00025 mkdir($workingDir);
00026 chdir($workingDir);
00027 ?>