Bonjour
Comment fait on en php pour trouvé la racine du site ou s'execute un script.
Par exemple je suis ds cette page : http://bidule.free.fr/galerie/index.php?page=machin
comment puis je trouver "http://bidule.free.fr/galerie/"?
merci
Version imprimable
Bonjour
Comment fait on en php pour trouvé la racine du site ou s'execute un script.
Par exemple je suis ds cette page : http://bidule.free.fr/galerie/index.php?page=machin
comment puis je trouver "http://bidule.free.fr/galerie/"?
merci
Je crois que ceci devrait t'aider:
Code:$_SERVER['DOCUMENT_ROOT']
merci sa marche ^^