jacobjmorris
-
Posts
5 -
Joined
-
Last visited
Never
Posts posted by jacobjmorris
-
-
My php include is not working:
<?php include('/components/include/banner.php'); ?>
This is the error message I get:
Warning: main(): open_basedir restriction in effect. File(/components/includes/banner.php) is not within the allowed path(s): (/home/gayeecom/:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/gayeecom/public_html/about/index.php on line 26
However, if I were to move banner.php within the same folder as the file I'm trying to include it, then it works fine. So, I'm guessing this has something to do with how I'm constructing the file path?
Jacob
-
I'm reading the SitePoint book on building database driven websites...it's pretty good, but I'm still having a hard time putting it all together.
I noticed Zend offers a beginner's PHP course online. Has anyone taken it? I'm a visual, hands-on learner, so I'm looking for something that will give me lots of examples, step by step.
Thanks
Jacob -
I'm building an online event guide that I need to localize by region (continent, state, city).
Does anyone have any good suggestions on the best way to do this? Also, is there a list all the major cities in the world anywhere?
Thanks
Jacob -
i'm a visual learner, and i want to learn php...i know html and css, but i dont know an application....someone once mentioned that i should learn how to create a login application first, and that would get some of the basics out of the way.
anyone have any suggestions on tutorials?
php include not working
in PHP Coding Help
Posted
Thanks for the tip! I did get it to work using:
<?php include('http://www.website.com/components/includes/banner.php'); ?>
However, I should be able to make this path relative, so when I try:
/components/includes/banner.php
or
../components/includes.banner.php
it doesn't work, any ideas?
just figured out how to do it, have to start at the base directory on the server, i got it working
thanks guys for your input! it was really helpful