reading_include_path.inc 636 B

123456789101112131415161718192021222324252627
  1. <?php
  2. $thisTestDir = $testName . '.dir';
  3. mkdir($thisTestDir);
  4. chdir($thisTestDir);
  5. //create the include directory structure
  6. $workingDir = "workdir";
  7. $filename = $testName . ".txt.gz";
  8. $scriptDir = dirname(__FILE__);
  9. $baseDir = getcwd();
  10. $secondFile = $baseDir."/dir2/".$filename;
  11. $firstFile = "../dir1/".$filename;
  12. $scriptFile = $scriptDir.'/'.$filename;
  13. $newdirs = array("dir1", "dir2", "dir3");
  14. $pathSep = ":";
  15. $newIncludePath = "";
  16. if(substr(PHP_OS, 0, 3) == 'WIN' ) {
  17. $pathSep = ";";
  18. }
  19. foreach($newdirs as $newdir) {
  20. mkdir($newdir);
  21. $newIncludePath .= '../'.$newdir.$pathSep;
  22. }
  23. mkdir($workingDir);
  24. chdir($workingDir);
  25. ?>