![]() |
[PHP] Einbinden einer *.php Datei
Hallo,
ich versuche mich gerade in der Webprogrammierung mit PHP. Dabei ist in meinem aktuellen Projekt folgendes Problem aufgetreten: Ordnerstruktur auf dem Server:
Code:
Problem:
\project\inc\
\project\inc\config.php \project\admin\ \project\admin\index.php Wie kann ich die Datei "config.php", in welcher meine Konstanten gespeichert sind, in die Datei "index.php" einbinden ? Danke im voraus :thumb: MfG engel90 |
Re: [PHP] Einbinden einer *.php Datei
Hallo,
Code:
Edit: Paar Vertipper. ^^ Unter einem Linux-Server sollte es "/" heißen, anstelle von "\". Ob es erforderlich ist, weiß ich nicht, aber es schadet sicher nicht.
include '..\inc\config.php';
|
Re: [PHP] Einbinden einer *.php Datei
oder include_once(), require(), require_once()
|
Re: [PHP] Einbinden einer *.php Datei
wenn die index.php im Verzeichnis project ist, dann nur
Delphi-Quellcode:
include 'inc/config.php';
|
Re: [PHP] Einbinden einer *.php Datei
Zitat:
|
Alle Zeitangaben in WEZ +1. Es ist jetzt 21:22 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz