On 23/08/2012 19:33, "Matijn Woudt" <tijnema@xxxxxxxxx> wrote: >> >> OK thanks Matijn. >> >> I’ll google it now and install it. >> >> There is a site.php as well as a config.php file in the sub-directory of the >> old server. I’ve copied these over but not sure why it still doesn’t >> recognise it. I’ve amended the code to point to the new server as well. >> >> Suraj > > The old server has probably some freaky settings that make that > directory automatically included, for example by modifing the php > include dir in php.ini, or it is part of a package. You can open up > this site.php file and look at the first lines, it might give you a > hint if it's part of some package. > > - Matijn This is currently what the first few lines of code say: <?PHP //------------------------------------------------------------------------------ // Controller. // // This file acts as a controller for the site, handling the top // level actions, starting sessions, connecting to database, etc //------------------------------------------------------------------------------ $site['dir']['root'] = dirname(__FILE__); //------------------------------------------------------------------------------ // Configuration. // // The configuration file includes DB details, email addresses // and any other easily configurable options. //------------------------------------------------------------------------------ $site['dir']['document_root'] = $site['dir']['root'] . '/public_html/'; require_once $site['dir']['root'] . '/config.php'; //------------------------------------------------------------------------------ // Functions //------------------------------------------------------------------------------ // Base Functions require_once $site['dir']['functions'] . 'functions.php'; require_once $site['dir']['functions'] . 'common.php'; Not sure what any of this means. Suraj