dirname

(PHP 4, PHP 5)

dirname ― パス中のディレクトリ名の部分を返す

よく使用する使い方

$path = dirname(FILE);