samedi 31 mai 2014

I don't know how to use real path in php


Vote count:

0




I'm trying to use this code but it gives me an error :



// root path defined("ROOT_PATH")
|| define("ROOT_PATH", realpath(dirname(__ FILE__) . DS."..".DS));


this is the error:


Parse error: syntax error, unexpected 'FILE__' (T_STRING) in /opt/lampp/htdocs/op/inc/config.php on line 20



asked 13 secs ago






Aucun commentaire:

Enregistrer un commentaire