To go one level up on dirname(__FILE__)


DRAJI

For PHP < 5.3 use:

$upOne = realpath(dirname(__FILE__) . ‘/..’);

Or in PHP 5.3+ use:

$upOne = realpath(__DIR__ . ‘/..’);

View original post

Advertisements