Hi!
Since I've changed the os to centos (from ubuntu) the include and require functions don't seem to work properly in my php scripts... so some of them are useless now. To explain better, it works only if I give the full path to the included file - so if it is in the same directory and I use only : include "config.php";, it will not work. It must be: include "/home/domain.com/public_html/config.php";
I cannot change the scripts, too much work. I'm looking for a way to do this on the server side. I have no idea what's causing this, maybe the suhosin I haven't previously installed is to restrictive.
So, the question is, can I make them work using a htaccess 'trick' or something like that?
Thank you!

Try putting "./" at the beginning which points to current folder so instead of just "config.php" put "./config.php" and see if that works.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.