Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > Web Development
You last visited: Today at 21:59

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

Advertisement



Berechtigungsfehler bei Verwendung von "../"

Discussion on Berechtigungsfehler bei Verwendung von "../" within the Web Development forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 10
Join Date: Aug 2010
Posts: 2,814
Received Thanks: 466
Berechtigungsfehler bei Verwendung von "../"

Hallo,

Wenn ich versuche eine Datei auf diese Weise einzubinden:
PHP Code:
include ("../folder/file.php"); 
Kommt folgender Fehler:
Quote:
Warning: include(): open_basedir restriction in effect. File(../folder/file.php) is not within the allowed path(s)
Wenn ich die selbe Datei jedoch so einbinde:
PHP Code:
include ($_SERVER['DOCUMENT_ROOT']."/folder/file.php"); 
Funktioniert alles problemlos.

Habt ihr eine Idee warum der Fehler nur beim ersten Weg auftritt?

MfG ExChill
ExChill is offline  
Old 10/25/2013, 17:25   #2
 
elite*gold: 0
Join Date: Feb 2010
Posts: 72
Received Thanks: 32
Wo liegt den die Datei, in der
PHP Code:
include ("../folder/file.php"); 
steht?
flogi333 is offline  
Old 10/25/2013, 17:27   #3
 
KoKsPfLaNzE's Avatar
 
elite*gold: 0
Join Date: Jan 2009
Posts: 731
Received Thanks: 233
ich vermute jetzt einfach mal das du auf einem webspace von einem anbieter entwickelst/testest.

bist dir den sicher das du auf das selbe Verzeichniss drauf zugreifst, wenn ich das so sehe siehts aus als wenn du aus dem doc root raus gehen willst.

setz dir doch einfach in deiner index eine variable mit dem path, wo dich gerade befindest un dann nutzt du diese variable um includes un co zu machen.
KoKsPfLaNzE is offline  
Reply




All times are GMT +1. The time now is 21:59.


Powered by vBulletin®
Copyright ©2000 - 2026, 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 ©2026 elitepvpers All Rights Reserved.