Hallo,
ich habe folgendes Problem:
im Ordner /filemanager/x liegt eine Datei (yz.php), welche einige Files includen soll.
...
$phpEx = "php";
$x_root_path = './';
include($x_root_path . 'common.'.$phpEx);
include($x_root_path . 'includes/functions.'.$phpEx);
include($x_root_path . 'includes/vars.'.$phpEx);
include($x_root_path . 'includes/db.'.$phpEx);
include($x_root_path . 'includes/strings.'.$phpEx);
include($x_root_path . 'includes/control.'.$phpEx);
...
das funktioniert soweit.
Die Datei “control.php” hat nun auch wieder die Aufgabe Funktionsdateien zu includen.
<?php
include($x_root_path . 'includes/functions/SendPassword.'.$phpEx);
...
?>
Wenn ich jetzt also die Datei yz.php aufrufe bekomme ich folgende Fehlermeldung:
[color=#800080]Warning: include(./includes/functions/SendPassword.php) [function.include]: failed to open stream: No such file or directory in /users/username/www/filemanager/x/includes/control.php on line 2
Warning: include() [function.include]: Failed opening ‘./includes/functions/SendPassword.php’ for inclusion (include_path=’.:/etc/php/lib’) in /users/username/www/filemanager/x/includes/control.php on line 2[/color]
Ich habe bereits versucht, die “SendPassword.php” in der yz.php mit zu includen, allerdings bekomme ich dann die gleiche Fehlermeldung.
Wenn ich die vollständige Adresse angebe: include(‘http://username.bplaced.net/filemanager/x/includes/functions/SendPassword.’.$phpEx); kommt als Fehler nur:
[color=#800080]Warning: include() [function.include]: URL file-access is disabled in the server configuration in /users/username/www/filemanager/x/includes/control.php on line 2
Warning: include(http://username.bplaced.net/filemanager/x/includes/functions/SendPassword.php) [function.include]: failed to open stream: no suitable wrapper could be found in /users/username/www/filemanager/x/includes/control.php on line 2[/color]
Ich hoffe Ihr könnt mir helfen.
MfG
rana