I'm trying to run a php script only if iim currently in 1 of 2 directories, so this is what I came up wit
What am I missing?PHP Code:<?php
if (getcwd() == "recreation" || getcwd() == "service" ) {
$CSS=1; require("../calendar/calendar.php");
} else {
$CSS=1; require("calendar/calendar.php");
}
?>
Thx...



Reply With Quote


Bookmarks