Du meinst es wird nur der obige Code, den ich gepostet habe, angezeigt ?
Sicher das die pfad.php mit <? anfängt und ?> aufhört ?
Help: Einrichten eines "htaccess" bei "coolfr
Forumsregeln
phpBB 2.0 hat das Ende seiner Lebenszeit überschritten
phpBB 2.0 wird nicht mehr aktiv unterstützt. Insbesondere werden - auch bei Sicherheitslücken - keine Patches mehr bereitgestellt. Der Einsatz von phpBB 2.0 erfolgt daher auf eigene Gefahr. Wir empfehlen einen Umstieg auf phpBB 3.1, welches aktiv weiterentwickelt wird und für welches regelmäßig Updates zur Verfügung gestellt werden.
phpBB 2.0 hat das Ende seiner Lebenszeit überschritten
phpBB 2.0 wird nicht mehr aktiv unterstützt. Insbesondere werden - auch bei Sicherheitslücken - keine Patches mehr bereitgestellt. Der Einsatz von phpBB 2.0 erfolgt daher auf eigene Gefahr. Wir empfehlen einen Umstieg auf phpBB 3.1, welches aktiv weiterentwickelt wird und für welches regelmäßig Updates zur Verfügung gestellt werden.
Meine Pfad.php sieht so aus:
Und wenn ich diese jetzt aufrufe, sehe ich einfach nur das Scipt !! Das ist alles......
Keine Ahnung wo das Problem liegt !
Gruss
Andreas
Code: Alles auswählen
<?
echo "Der absolute Pfad lautet: ";
$path = ereg_replace ("\\\\","/",__FILE__);
$path = dirname ($path);
$path = trim($path);
echo "<b>$path</b>";
?>
Keine Ahnung wo das Problem liegt !

Gruss
Andreas
Ich habe etwas zu dem Thema gefunden:
How can I password-protect one of my directories?
To create a protected area within your website please do the following:
1. Create the directory with the name starting with the word "protected" (examples: protected1, protectedcontent etc)
2. Inside this directory should be a file named "_passwords". It should be uploaded in ASCII MODE and should contain
username:password
username:password
Don't forget to put ENTER at the end of each line. Also please note that passwords should be "AS IS", NON-ENCRIPTED. Also, please give it the permission 644 (rw-r-r).
After you do this, your password protection will work. Hotlinking is automatically blocked on our servers by a special software. Surfers should not be able to hotlink your images.
Allerdings habe ich mich jetzt dazu entschieden, einen bezahlten Webspace anzumieten. Welchen könnt Ihr mir da empfehlen ?? was kostet so etwas. Wichtig ist, dass der Server .htaccess anerkennt !!
Zur Info: Der Traffic wird sich etwa in der Grössenordnung wie bei diesem Board bewegen.
THX
Andreas
How can I password-protect one of my directories?
To create a protected area within your website please do the following:
1. Create the directory with the name starting with the word "protected" (examples: protected1, protectedcontent etc)
2. Inside this directory should be a file named "_passwords". It should be uploaded in ASCII MODE and should contain
username:password
username:password
Don't forget to put ENTER at the end of each line. Also please note that passwords should be "AS IS", NON-ENCRIPTED. Also, please give it the permission 644 (rw-r-r).
After you do this, your password protection will work. Hotlinking is automatically blocked on our servers by a special software. Surfers should not be able to hotlink your images.
Allerdings habe ich mich jetzt dazu entschieden, einen bezahlten Webspace anzumieten. Welchen könnt Ihr mir da empfehlen ?? was kostet so etwas. Wichtig ist, dass der Server .htaccess anerkennt !!
Zur Info: Der Traffic wird sich etwa in der Grössenordnung wie bei diesem Board bewegen.
THX
Andreas