Ich hab das 01script "01ACP + 01Artikelsystem" dementsprechend in /html/01scripts installiert, dazu auch alle Updates.
Erstell ich nun eine Datei, (/html/test.php) und baue da den Code laut Vorgabe
[PHP]
<?PHP
$subfolder = "01scripts/";
$modul = "01article";
$_GET['catid'] = "1,3,2";
$flag_utf8 = FALSE;
$flag_nocss = FALSE;
include($subfolder."01module/".$modul."/01article.php");
?>
[/PHP]
ein, funktioniert das alles noch wunderbar. Erstelle ich aber unter /html noch ein paar Unterverzeichnisse und packe da die test.php rein, bekomm ich die Fehlermeldungen
ZitatWarning: include(01scripts/01module/01article/01article.php) [function.include]: failed to open stream: No such file or directory in /var/www/webxyz/html/123456789/test.php on line 89
Warning: include(01scripts/01module/01article/01article.php) [function.include]: failed to open stream: No such file or directory in /var/www/webxyz/html/123456789/test.php on line 89
Warning: include() [function.include]: Failed opening '01scripts/01module/01article/01article.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/webxyz/html/123456789/test.php on line 89
soweit ist doch klar, er kann das Verzeichnis nicht finden, also muss der include-Befehl angepasst werden. Aber wie? Selbst wenn ich den absoluten Pfad bei Include eingebe
kommen nur Fehlermeldungen:
ZitatAlles anzeigenWarning: include_once(01scripts/01_config.php) [function.include-once]: failed to open stream: No such file or directory in /var/www/webxyz/html/01scripts/01module/01article/01article.php on line 38
Warning: include_once() [function.include]: Failed opening '01scripts/01_config.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/webxyz/html/01scripts/01module/01article/01article.php on line 38
Warning: include_once(01scripts/01acp/system/headinclude.php) [function.include-once]: failed to open stream: No such file or directory in /var/www/webxyz/html/01scripts/01module/01article/01article.php on line 39
Warning: include_once() [function.include]: Failed opening '01scripts/01acp/system/headinclude.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/webxyz/html/01scripts/01module/01article/01article.php on line 39
Warning: include_once(01scripts/01acp/system/functions.php) [function.include-once]: failed to open stream: No such file or directory in /var/www/webxyz/html/01scripts/01module/01article/01article.php on line 40
Warning: include_once() [function.include]: Failed opening '01scripts/01acp/system/functions.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/webxyz/html/01scripts/01module/01article/01article.php on line 40
Warning: include_once(01article/_headinclude.php) [function.include-once]: failed to open stream: No such file or directory in /var/www/webxyz/html/01scripts/01module/01article/01article.php on line 44
Warning: include_once() [function.include]: Failed opening '01article/_headinclude.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/webxyz/html/01scripts/01module/01article/01article.php on line 44
Warning: include_once(01article/_functions.php) [function.include-once]: failed to open stream: No such file or directory in /var/www/webxyz/html/01scripts/01module/01article/01article.php on line 45
Warning: include_once() [function.include]: Failed opening '01article/_functions.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear')
Mein Ziel: Mein Verein hat mehrere Bereiche, wie Fussball, Schwimmen, Turnen usw. Jeder Bereich erhält also eine Kategorie im Artikelsystem, also lege ich für jeden Vereinsbereich (welche jeweils ihre eigenen Ordner auf den Webspace haben) eine test.php mit den entsprechenden Abfragen $_GET['catid'] = "1,3,2"; an. Ist nur die Frage, wie der include-Befehl dementsprechend in den einzelnen test.php-Dateien ausehen muss....