Configuration issue

Hi Evryone,

I have a question regarding configuration.
I have a website that was built for me in php. I am managing most of the things on the site, but I know very little about configurations.
For some reason I wanted to move the existing site to a subfolder. I have created a folder named “sample”
and I moved all the file to the “…com/sample/” folder.
I have modified the config.php file and added the “sample/” to the Set url constant line’s definition.
Most of the copied site is working but some functions do not and most of the images do not display correctly.
I have a feeling that I have to modify the database, as well, but I do not know anything about databases.
If somebody could help me with this issue, i’d really appreciated.

Thanks,

Brian

// Set url constant
define(‘SITE_URL’, ‘http://www…com/sample/’);

// Set folder constant
#define(‘ROOT_DIR’, ‘/var/chroot/home’);
define(‘ROOT_DIR’, ‘/’);

//define(‘ROOT_DIR’,’/home/star/public_html/events/’);
define(‘MODULE_DIR’, ROOT_DIR.‘module/’);
define(‘INCLUDE_DIR’, ROOT_DIR.‘include/’);
define(‘CLASS_DIR’, ROOT_DIR.‘classes/’);
define(‘MYSQL_CLASS_DIR’, CLASS_DIR.‘mysql/’);
define(‘OUTPUT_DIR’, ROOT_DIR.‘output/’);
define(‘ERROR_LOG’, OUTPUT_DIR.‘errorlog/’);
define(‘STYLE_DIR’, ROOT_DIR.‘styles/’);
//Image paths

// Set admin folder constant
define(‘ADMIN_ROOT_DIR’, ROOT_DIR.’/admin/’);
define(‘ADMIN_MODULE_DIR’, ADMIN_ROOT_DIR.‘module/’);
define(‘ADMIN_INCLUDE_DIR’, ADMIN_ROOT_DIR.‘include/’);

Sponsor our Newsletter | Privacy Policy | Terms of Service