include function
Posted by: patrick brouwer
Posted on: 2008-05-27 22:12:00
Hello,
Can somebody please tell me what to use for the <? include function
Now it is not working....
Posted by: patrick brouwer
Posted on: 2008-05-27 22:12:00
Hello,
Can somebody please tell me what to use for the <? include function
Now it is not working....
Posted by: silkrooster
Posted on: 2008-05-27 23:36:00
Try
include ('ringconfig.php');
My website
Posted by: misterhaan
Posted on: 2008-05-28 10:31:00
the parenthesis are unnecessary -- the syntax is fine.
where is the ringconfig.php file in relation to the file that's trying to include it? is it in the include_path?
track7 - my dream-hosted site
Posted by: patrick brouwer
Posted on: 2008-05-29 00:44:00
Hello,
I don't know what parenthesis is.
the ringconfig is in the same path as the rest.
I will include the ringconfig underneath.
Thank you
Alvast bedankt!
Posted by: patricktan
Posted on: 2008-05-29 03:07:00
Please remove your database username and password.
File name is case sensitive in Unix. Could that be the problem?
Posted by: patrick brouwer
Posted on: 2008-05-29 03:14:00
removed ;)
I spelled the name correct, so that is not the problem.
Maybe i have to use Curl for the include but i dont know how.
thnx
Posted by: patricktan
Posted on: 2008-05-29 06:23:00
I can still see the username and password. I hope they are fake ones.
I am able to use include function. I can't figure out the problem. It is just simple include and nothing is wrong. WEIRD.
Posted by: scjessey
Posted on: 2008-05-29 06:59:00
Your use of the the file() function won't work, because URL file access has been disabled across the DreamHost system. You will have to use a cURL-based alternative.
-- si-blog --