Ich schreib grad ein config file für mein neues Projekt. 
Ich wollte mir das manuelle Eintragen der Pfade sparen und auf die $_SERVER Vars zurückgreifen. Doch ein:
	
ruft ein Parse error: syntax error, unexpected T_VARIABLE hervor.
Woran liegt das?
					Ich wollte mir das manuelle Eintragen der Pfade sparen und auf die $_SERVER Vars zurückgreifen. Doch ein:
PHP-Code:
	
	
class sConfig {
//Path Configuration
    var $absolute_path = $_SERVER['DOCUMENT_ROOT'];
} 
Woran liegt das?
 
          
 Moderator
 Moderator
Kommentar