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