Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > Web Development
You last visited: Today at 11:22

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[PHP]Frage includen

Discussion on [PHP]Frage includen within the Web Development forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 35
Join Date: Oct 2007
Posts: 180
Received Thanks: 313
[PHP]Frage includen

Hallo E*PvP

Habe eine kleine frage zum includen von dateien.


ich habe diese datei im Startverzeichniss danach kommt ein Ordner, noch ein ordner, und dan die php inder das
PHP Code:
include ("../config.php"); 
steht.

nur leider geht es nicht... kommt immer ein fehler.

Einfach, ich muss 2 verzeichnisse zurück, und da die config.php laden

hoffe hat grad einer auf die schnelle eine anleitung.

mfg
.Scare©® is offline  
Thanks
3 Users
Old 11/06/2011, 19:29   #2
 
sava's Avatar
 
elite*gold: 1
Join Date: Dec 2006
Posts: 360
Received Thanks: 135
"../" = 1 Ordner zurück
"../../" = 2 Ordner zurück

PHP Code:
include ("../../config.php"); 
sava is offline  
Thanks
1 User
Old 11/06/2011, 19:34   #3
 
elite*gold: 35
Join Date: Oct 2007
Posts: 180
Received Thanks: 313
Quote:
Originally Posted by sava View Post
"../" = 1 Ordner zurück
"../../" = 2 Ordner zurück

PHP Code:
include ("../../config.php"); 
Perfekt, hat geklapt!

dachte eben das 1punkt = 1 verzeichniss ist.. =)
danke

#Closerequest
.Scare©® is offline  
Thanks
3 Users
Reply


Similar Threads Similar Threads
[PHP/HTML] Datei Includen
08/13/2010 - Web Development - 4 Replies
Hi, Ich möchte ein Menu auf jede seite meines PHP/HTML projekts machen allerdings sind das mehr als 20 dateien... d.H. ich muss jede seite einzeln editieren wenn ich z.B. einen fehler finde. Gibt es eine möglichkeit wie bei stylesheets das menu in eine datei zu packen z.B. menu.php und diese datei dann wie bei CSS so zu includen? <link rel="stylesheet" type="text/css" href="css.css"> also das hier nur in bei einem menu? mein menu sieht so aus <script type="text/javascript"> <!-- function...
Toolsammlung zum Includen
07/20/2009 - GW Exploits, Hacks, Bots, Tools & Macros - 22 Replies
Hmm also hier einfach mal meine Toolsammlung.. damit kann man bestimmt was anfangen..:p Viel spaß damit ;D *.au3 im Anhang~ #cs -------------------------------------------------- -------------------------- AutoIt Version: 3.2.12.0 Author: Itami (aLa$ca) Script Function: Func Sammlung zum Includen => #include <Funcsammlung.au3> Ich werde das ganze evtl./ ganz bestimmt noch erweitern.. bis dahin viel Spaß damit! Template AutoIt script.



All times are GMT +1. The time now is 11:23.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.