3 $f = basename(current(get_included_files()), ".php");
4 $dir1 = $pwd."/".$f.".dir1";
5 $dir2 = $pwd."/".$f.".dir2";
6 $dir3 = $pwd."/".$f.".dir3";
8 $dir4 = $pwd."/".$f.".dir4";
9 $newdirs = array($dir1, $dir2, $dir3);
11 $reldirs = array("dir1", "dir2", "dir3");
13 function generate_next_rel_path() {
15 //create the include directory structure
18 if(substr(PHP_OS, 0, 3) == 'WIN' ) {
21 foreach($reldirs as $newdir) {
22 $newIncludePath .= $newdir.$pathSep;
24 return "dir4".$pathSep . $newIncludePath;
27 function generate_next_path() {
28 global $newdirs, $dir4;
29 //create the include directory structure
32 if(substr(PHP_OS, 0, 3) == 'WIN' ) {
35 foreach($newdirs as $newdir) {
36 $newIncludePath .= $newdir.$pathSep;
38 return $dir4.$pathSep . $newIncludePath;
42 function create_include_path() {
45 //create the include directory structure
48 if(substr(PHP_OS, 0, 3) == 'WIN' ) {
51 foreach($newdirs as $newdir) {
53 $newIncludePath .= $newdir.$pathSep;
55 return $newIncludePath;
58 function relative_include_path() {
61 //create the include directory structure
64 if(substr(PHP_OS, 0, 3) == 'WIN' ) {
67 foreach($reldirs as $newdir) {
69 $newIncludePath .= $newdir.$pathSep;
71 return $newIncludePath;
75 function teardown_include_path() {
78 // remove the directory structure
79 foreach($newdirs as $newdir) {
84 function teardown_relative_path() {
87 // remove the directory structure
88 foreach($reldirs as $newdir) {