Hello,
My server is running Suse 10.0 with Virtualmin Unlimited, my problem seems to be paths for PHP include files.
For example a php script may have the following
include /config/settings.php
And sometimes it will be something like
include ./config/settings.php
This wont work unless I put in the complete path of
/home/domainname/public_html/config/settings.php
Does anyone know why this is, or how to fix this?
In all the servers that I’ve ever been hosted on, I’ve never had to put an absolute path to a file but could instead use things like ./ or …/ for the includes.
Hopefully someone can tell me what I need to do to fix this on Suse 10.0
I should mention the reason why I need to resolve this is because of hosted customers that by php scripts or have them custom made and they wont work and the customer has no idea how to go about fixing it. I’ve had some programmers tell the customers that it’s a problem with the server and theres nothing the programmers can do about it.
As you can imagine this becomes a problem with all the customers using prebuilt scripts found at places like hotscripts.com etc since they are usually setup now adays with paths that use ./ or …/ or …/…/ etc