phanly Posted December 4, 2003 Report Share Posted December 4, 2003 I have php4 running with apache and mysql on mdk 9.1 Simple php pages work (eg telling the date from the server in a web page) Simple php pages interacting with a simple mysql database work eg a simple login form. However, once I use include(myfile.php) in a script I get errors relating to myfile not being found in an include_path which refers to pear eg /usr/share/pear or something like that. I have looked at php.ini (based on the two supplied php.ini versions) but cant find how to set the include path so it loads files in my web directory where I try to include() them: /var/www/html/membersite/ (http://localhost/membersite/) Is there a way to set the include_path globally and should I, and can you add multiple include paths to search? Do I need to specify a particular include_path in the script before I use the include()? Any help would be appreciated. cheers Paul Quote Link to comment Share on other sites More sharing options...
fuzzylizard Posted December 4, 2003 Report Share Posted December 4, 2003 I have never had to set an include path manually in php.ini. I think as long as you use a relative path to the included file, it should find the file without any problems. <?php include("../foo.php"); ?> Can you post the code in question? Quote Link to comment Share on other sites More sharing options...
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.
Note: Your post will require moderator approval before it will be visible.