Home
Help
Login
Register
LATEST NEWS:
No More Pop-UP Ads on Free Hosting Member Pages!
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Helping Webmasters - Website Support and Webmaster Forum
Web Design & Developement
Programming
include file from parent folder problem. :(
Pages: [
1
]
« previous
next »
Send this topic
|
Print
Topic: include file from parent folder problem. :( (Read 2077 times)
include file from parent folder problem. :(
« on: January 25, 2006, 06:45:07 PM »
Vad
Newbie
Posts: 1
If i include a file from "inside" folder - all OK.
But when I try to do it with the upper level folder I have an error:
Warning: main(): open_basedir restriction in effect. File(../_wm.php) is not within the allowed path(s): (/home/freehost/scripts/:.) in /home/freehost/t35.com/d/a/dancephoto/test/folder1/index1.php on line 8
Warning: main(../_wm.php): failed to open stream: Operation not permitted in /home/freehost/t35.com/d/a/dancephoto/test/folder1/index1.php on line 8
Warning: main(): Failed opening '../_wm.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/freehost/t35.com/d/a/dancephoto/test/folder1/index1.php on line 8
I have a folders tree like this:
\test
\folder1
\subfold
_wm.php
index1.php
\folder2
_wm.php
In folder1 I have the php file (index1.php) with the code
...
<?php include "../_wm.php"; ?>
<hr>
<?php include "../folder2/_wm.php"; ?>
<hr>
<?php include "subfold/_wm.php"; ?>
</pre>
...
Only the last include() is working correctly.
But I want to include a file from the upper level folder. How can I do this?
Page is here http://dancephoto.t35.com/test/folder1/index1.php
Thanks in advance.
Report to moderator
Logged
Re: include file from parent folder problem. :(
« Reply #1 on: February 04, 2006, 08:01:42 PM »
Alex Melen
President / Founder
Administrator
Addict
Posts: 2,000
The file you are getting/executing has to be in the same folder as the file that is calling it.
Report to moderator
Logged
www.T35.com - Free Web Hosting
www.AlexMelen.com - About Me
Pages: [
1
]
Send this topic
|
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General
-----------------------------
=> General and Business Discussion
=> Introductions
=> Web Hosting Forum
=> Website Reviews
=> How To's & Tutorials
=> Web Hosting Blog
-----------------------------
T35 Hosting Support
-----------------------------
=> Announcements
=> Pre-Sales Inquiries
=> Free Hosting General Support
=> Free Hosting Login Support
=> Free Hosting Domain Support
=> Paid Hosting General Support
=> Paid Hosting cPanel & Fantastico Support
=> T35 Hosting Testimonials
=> T35 Hosting Suggestions
-----------------------------
Web Design & Developement
-----------------------------
=> Web Design / HTML
=> Programming
=> Graphic Design
=> Useful Resources
-----------------------------
Revenue & Traffic
-----------------------------
=> Ad Revenue
=> Search Engine Optimization
-----------------------------
Market Place
-----------------------------
=> Sites & Domains for Sale
=> Trade Services / Employment
=> Contests
=> Site Promotion
Powered by SMF
|
SMF © 2006-2008, Simple Machines LLC