Thanks! That put me on the right track. I ended up using the file path and putting it through preg_match. I pushed that result through dirname, and we had a winner.
Thanks,
ajberry
Here is the final code I used:
<?php
// GET NAME OF FILE
$script = $_SERVER['PHP_SELF'];
echo "<b>Script Name:</b> " . $script . "<br>";
// GET FULL PATH TO FILE
$dir = getcwd();
echo "<b>Full Dir Path:</b> " . $dir . "<br>";
// SPLIT STRING INTO ARRAY
preg_match("#.(\\|/)(.(\\|/).*$)#",$script,$matches);
// GET CURRENT DIRECTORY
echo "<b>Current Directory:</b> " . dirname($matches[2]) . "<br>";
// URL PARTS
print_r($matches);
?>