PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : file_exists() Fehler bei Startseite



Drrichardfahrer
02.10.2007, 09:45
Ich hab mal das Gratis-Hostingpaket bestellt und nun erfolgreich alle Dateien hochgeladen, die SQL-Datei ausgeführt und mal einen Testversuch gemacht...
Doch gleich bei der Startseite steht über dem eigentlichen Inhalt:


Warning: file_exists() [function.file-exists (http://drrichardfahrer.vms1.de/function.file-exists)]: open_basedir restriction in effect. File(../lib/mimePart.php) is not within the allowed path(s): (/var/www/web12/html/:/var/www/web12/phptmp/:/var/www/web12/files/:/var/www/web12/atd/) in /var/www/web12/html/lib/mail/klasse.php on line 23

Warning: file_exists() [function.file-exists (http://drrichardfahrer.vms1.de/function.file-exists)]: open_basedir restriction in effect. File(../../mimePart.php) is not within the allowed path(s): (/var/www/web12/html/:/var/www/web12/phptmp/:/var/www/web12/files/:/var/www/web12/atd/) in /var/www/web12/html/lib/mail/klasse.php on line 24




Hat sich schon erledigt - hab zwar die Suchen-Funktion benutzt, zuerst aber nix gefunden - jetzt aber schon :(

SebbyPHM
02.10.2007, 14:12
Kannst du bitte die Lösung posten, für welche die das gleiche Problem haben?

Drrichardfahrer
02.10.2007, 14:21
In der Datei klasse.php das ganz oben in das ändern:


if (file_exists ('lib/mimePart.php')) require_once ('/mimePart.php');
elseif (file_exists ('../lib/mimePart.php')) require_once ('../lib/mimePart.php');
elseif (file_exists ('../../mimePart.php')) require_once ('../../lib/mimePart.php');

SebbyPHM
02.10.2007, 14:28
if (file_exists ('lib/mimePart.php')) require_once ('lib/mimePart.php');
elseif (file_exists ('../lib/mimePart.php')) require_once ('../lib/mimePart.php');
elseif (file_exists ('../../mimePart.php')) require_once ('../../lib/mimePart.php');

so müsste der code richtig lauten. in dem von dir sind ein paar flüchtigkeitsfehler enthalten. kannste das mal austesten, obs dann noch immer klappt?

noch besser wäre es, wenn das klappt:

require_once (dirname(realpath(__FILE__)).'/mimePart.php');

Drrichardfahrer
02.10.2007, 14:32
if (file_exists ('lib/mimePart.php')) require_once ('/mimePart.php');
elseif (file_exists ('../lib/mimePart.php')) require_once ('../lib/mimePart.php');
elseif (file_exists ('../../mimePart.php')) require_once ('../../lib/mimePart.php');

Das funktioniert bei mir.


if (file_exists ('lib/mimePart.php')) require_once ('lib/mimePart.php');
elseif (file_exists ('../lib/mimePart.php')) require_once ('../lib/mimePart.php');
elseif (file_exists ('../../mimePart.php')) require_once ('../../lib/mimePart.php');

Das funktioniert bei mir nicht.


require_once (dirname(realpath(__FILE__)).'/mimePart.php');

Das funktioniert bei mir auch und da das ja das Beste ist, hab ich das jetzt lassen.

carlos99
02.10.2007, 15:55
require_once (dirname(realpath(__FILE__)).'/mimePart.php');

Das geht bei mir auch. Danke. :o