如何将xcart从localhost移动到服务器

时间:2011-04-01 09:41:02

标签: php

我正在尝试将xcart从localhost移动到服务器我已经在文件config.php中进行了更改,top.inc.php我已经删除了templates_c文件夹的内容,但我的网站没有运行但是有人可以给我的解决方案我将非常感谢。

感谢

1 个答案:

答案 0 :(得分:0)

尝试使用this..write配置文件中的这些行

if($_SERVER['HTTP_HOST'] === 'localhost')  
{
    define('SITE_PATH','http://localhost/your project name/'); 
    error_reporting( E_ALL );
    ini_set('display_errors','on'); 
}
else 
{
    define('SITE_PATH','http://www.yourwesbite.com/');      
    error_reporting(0);
    ini_set('display_errors','off');        
}
相关问题