Why cant i set $_SERVER['DOCUMENT_ROOT']
as attribute?
see example code
class foo
{
private $path = $_SERVER['DOCUMENT_ROOT']; // generates error
private $blah;
public function __construct()
{
//code
}
public function setBla($bla)
{
$this->blah = $bla;
}
}