willst du es nicht verstehen was ich schreibe, oder kannst du es nicht....
- \htdocs\: funktion.php config.php
- \htdocs\include\: log.php
wenn du in log.php die Datei "funktion.php" inkludierst:
include ('../funktion.php');
Und du in "funktion.php" die Datei "config.php" inkludieren willst, dann muß in
"funktion.php" folgendes stehen:
include ('../config.php');
Da für den Include-Befehl in "funktion.php" das aktuelle Verzeichnis "\htdocs\include\" ist, und NICHT "\htdocs\"!
Unabhängig davon was du da testest...
Erinnerst du dich an meinen verherigen Code?
mach aus:
echo (file_exists('./config.php')) ? 'JA' : 'NEIN';
ein:
echo (file_exists('../config.php')) ? 'JA' : 'NEIN';
Was passiert?