Home
Help
Login
Register
LATEST NEWS:
What Features Do You Want To See On Paid Hosting?
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
Php embedding..
Pages: [
1
]
« previous
next »
Send this topic
|
Print
Topic: Php embedding.. (Read 1662 times)
Php embedding..
« on: March 14, 2005, 02:58:03 AM »
Dunai
Newbie
Posts: 2
When i put my php news script into my normal index.php in the same directory as the news script eg. <?php include news.php";?> the news shows on the index page. But when i link to the news script from another sub directory eg. <?php include "news/news.php";?> it comes up with
Warning: main(): open_basedir restriction in effect. File(/spgm/news/latest.php) is not within the allowed path(s): (/home/freehost) in /home/freehost/t35.com/b/m/bmx-planet/index.php on line 50
Warning: main(/spgm/news/latest.php): failed to open stream: Operation not permitted in /home/freehost/t35.com/b/m/bmx-planet/index.php on line 50
Warning: main(): Failed opening '/spgm/news/latest.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/freehost/t35.com/b/m/bmx-planet/index.php on line 50
why is there a difference between the other directory and the same directory as the file thats being included. I hope this makes sense because its confusing me. Please help me
Thanks heaps..
-Ian
Report to moderator
Logged
Re: Php embedding..
« Reply #1 on: March 14, 2005, 08:34:19 AM »
Working for Rielst...
Ryanbi
Junior Member
Newbie
Posts: 34
Are you sure you have news/news.php ? I think you should use
<?php include "spgm/news/latest.php";?>
Report to moderator
Logged
Re: Php embedding..
« Reply #2 on: March 15, 2005, 02:56:48 AM »
Dunai
Newbie
Posts: 2
I have tried /spgm/news/latest.php ......... news/news was only an example, it still does that same.
Report to moderator
Logged
Re: Php embedding..
« Reply #3 on: March 15, 2005, 06:44:40 PM »
adragons
Guest
try not including the preceeding forward slash '/' the error is base_dir so it thinks you are trying to include something not within your dir. (/home/freehost/t35.com/b/m/bmx-planet)
Report to moderator
Logged
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