Thanks for the reply but i've fixed the problem, the error that was getting reported was:
open_basedir restriction in effect. File(../connect.php) is not within the allowed path(s): (.;sys:/tmp)
I found the following entry in my php.ini file:
open_basedir = ".;sys:/tmp"
I then commented this line out and now it works. It seems that if the open_basedir is set, this limits file operations to the directories specified in the open_basedir setting. By commenting this line I'm assuming that it allows file operations in any directory rather than just limiting it to the specified directory.
So now my includes work again 🙂
Thanks for all your help.