WCM Forum

WCM Forum (http://www.wcm.at/forum/index.php)
-   Programmierung (http://www.wcm.at/forum/forumdisplay.php?f=17)
-   -   PHP-Problem (http://www.wcm.at/forum/showthread.php?t=94771)

dub 21.04.2003 23:46

PHP-Problem
 
Hallo ihr!

Wichtige Frage: Was bedeutet das?

Code:

open_basedir restriction in effect. File is in wrong directory in ...
und was kann ich dagegen tun?

#Hannes#

entropy 22.04.2003 08:31

Moin,

open_basedir ist eine Variable der Security bw. Safe Mode Einstellungen.

Wenn Dein Script eine Datei öffnet wird der Pfad dieser Datei überprüft. Liegt die Datei nicht im (mit open_basedir) angegeben Pfad, kannst Du sie nicht öffnen. Schau mal nach welcher Wert da eingestellt ist, defaultmässig ist es "NULL", d.h. alles ist erlaubt.

mfg
entropy

dub 22.04.2003 09:16

Hi!

Hab den SAFE_MODE abgeschaltet, und die Fehlermeldung ist noch immer da. Was meinst du mit NULL" soll dort dann stehen

Code:

open_basedir NULL
?

#Hannes#

entropy 22.04.2003 09:46

Moin,

Tschuldigung, hab mich etwas unklar ausgedrückt. Die open_basedir Einstellung gilt unabhängig von der Tatsache ob Safe Mode ein oder aus ist.

Die Direktive besagt, in welchem Pfad Dateioperationen erlaubt sind. Ich hab das Ding zB in meinem Apache System in der httpd.conf Datei gesetzt.

Beispiel:
"open_basedir="/mydir/inc"

Wichtig dabei ist, dass der Wert von open_basedir als Abkürzung für Directories steht. Das Beispiel oben erlaubt also auch directories wie "mydir/inc2" oder "mydir/include" usw.

mehr info dazu im manual:
Safe-Mode PHP Manual

mfg
entropy

Philipp 22.04.2003 10:10

Alternativ kannst du open_Basedir auch auskommentieren, in dem du ein ; davor setzt.

Also z.b.

Code:

;open_basedir =


Alle Zeitangaben in WEZ +2. Es ist jetzt 08:26 Uhr.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© 2009 FSL Verlag