For PHP < 5.3 use:
$upOne = realpath(dirname(__FILE__) . ‘/..’);
Or in PHP 5.3+ use:
$upOne = realpath(__DIR__ . ‘/..’);
For PHP < 5.3 use:
$upOne = realpath(dirname(__FILE__) . ‘/..’);
Or in PHP 5.3+ use:
$upOne = realpath(__DIR__ . ‘/..’);
Reblogged this on ITechonology.