开发者

How to move xcart from localhost to server

开发者 https://www.devze.com 2023-02-21 01:19 出处:网络
I am trying to move xcart from localhost to sever I have made the the changes in files config.php ,top.inc.php I have deleted the content of templa开发者_Go百科tes_c folder,but my site does\'nt runs y

I am trying to move xcart from localhost to sever I have made the the changes in files config.php ,top.inc.php I have deleted the content of templa开发者_Go百科tes_c folder,but my site does'nt runs yet can somebody give me the solution I will be greatly thankfull.

thanks


try with this..write these lines in your config file

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');        
}
0

精彩评论

暂无评论...
验证码 换一张
取 消