<?php echo $_SERVER['DOCUMENT_ROOT']; ?>
Nenne es beispielsweise document_root.php. Führe dieses Script aus (Browser öffnen: Adresse http://www.IhreDomain.tld/document_root.php), dann wird der absolute Pfad hoffentlich angezeigt. <?php phpinfo(); ?>
oder
<?php
$text = "Der aktuelle Pfad lautet:";
$path = dirname(__FILE__);
echo "$text.$path";
?>
oder
<?php
$text = "Der aktuelle Pfad lautet:";
$path = dirname(__FILE__);
echo "$text.$path";
?>
bzw.
<?php
$text = "Der aktuelle Pfad lautet:";
$path = getcwd();
echo "$text.$path";
?>


