erisande Posted December 22, 2005 Posted December 22, 2005 (edited) Hello! I have a file called "functions.php" in the public_html directory and I want to include the file named "secure.php" located in the top most directory of my account. In functions.php I have tried to enter: >include "/secure.php"; But it doesn't seem to work. Also tried: >include "/home/mysite/secure.php"; to no avail. Please help out a brainless geek, please? Thanks! PS: Maybe I don't need to do this. My goal is to make the script to connect to the database secure so no one else can see it. If you have other ideas on this, please let me know! Edited December 22, 2005 by erisande Quote
TCH-RobertM Posted December 22, 2005 Posted December 22, 2005 You might want to try include("/home/mysite/secure.php"); Hope this helps Quote
owatagal Posted December 22, 2005 Posted December 22, 2005 Does the code work correctly if you put the secure.php file in your public_html folder -- that is, are you certain this is a problem with the include path and not the code? (Not that I've spent hours staring at an include path only to discover the code itself was to blame, or anything... Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.