I have a small PHP application that works fine on many hosting accounts and on my local server.
I'm trying to set it up for a client but the includes don't seem to work. If I am inside the application directory, all includes work fine but if I try include a file from inside this directory into a file that is located outside of this directory, it is not included. I get no errors. The php file is just not included.
I have the very same setup on other accounts and everything works fine. I am thinking that it may be some security permission settings or php.ini configuration issue.
Since I don't get any error, I don't know where to start looking. The include look like this:
<?php require_once('foldername/foldername/filename.php');?>
How can I start investigating where the problem is?
Thank you very much.
open_basedirlook like?error_reportinganddisplay_errors. That line indicates that you are expecting something to be in your include path that may not be there, but I would assume you know that. Still, see what the include path is where you are trying to include the filename.phpecho get_include_path();.