我执行了以下操作,将实时服务器中的开放式购物车网站运行到localhost:
在config.php上我将文件更改为以下内容:
<?php
error_reporting(E_ALL);
// HTTP
define('HTTP_SERVER', 'http://safetyelite.co.za/');
define('HTTP_IMAGE', 'http://safetyelite.co.za/image/');
define('HTTP_ADMIN', 'http://safetyelite.co.za/admin/');
// HTTPS
define('HTTPS_SERVER', 'http://safetyelite.co.za/');
define('HTTPS_IMAGE', 'http://safetyelite.co.za/image/');
// DIR
define('DIR_APPLICATION', 'C:/xampp/htdocs/safetyelite');
define('DIR_SYSTEM', 'C:/xampp/htdocs/safetyelite/system/');
define('DIR_DATABASE', 'C:/xampp/htdocs/safetyelite/system/database/');
define('DIR_LANGUAGE', 'C:/xampp/htdocs/safetyelite/admin/language/');
define('DIR_TEMPLATE', 'C:/xampp/htdocs/safetyelite/admin/view/template/');
define('DIR_CONFIG', 'C:/xampp/htdocs/safetyelite/system/config/');
define('DIR_IMAGE', 'C:/xampp/htdocs/safetyelite/image/');
define('DIR_CACHE', 'C:/xampp/htdocs/safetyelite/system/cache/');
define('DIR_DOWNLOAD', 'C:/xampp/htdocs/safetyelite/download/');
define('DIR_LOGS', 'C:/xampp/htdocs/safetyelite/system/logs/');
define('DIR_CATALOG', 'C:/xampp/htdocs/safetyelite/catalog/');
// DB
define('DB_DRIVER', 'mysql');
define('DB_HOSTNAME', 'localhost');
define('DB_USERNAME', 'root');
define('DB_PASSWORD', '');
define('DB_DATABASE', 'safetyelite');
define('DB_PREFIX', '');
?>
我也去了我的index.php并将安装目录更改为:
// Install
if (!defined('DIR_APPLICATION')) {
header('Location: /http://localhost/safetyelite/install/index.php');
exit;
}
// VirtualQMOD
require_once('/http://localhost/safetyelite/vqmod/vqmod.php');
当我加载页面时,我收到此错误:
如何在localhost上加载打开的购物车? 我可能想念的任何东西。
请帮忙
答案 0 :(得分:0)
require_once需要确切的php文件名作为参数 -
require_once(&#39; / http://localhost/safetyelite/vqmod/vqmod.php&#39);
因此您必须将此行更改为 -
require_once(&#39; ./ vqmod / vqmod.php&#39);
答案 1 :(得分:0)
你没有给require_once;
提供道具路径更改
require_once('/http://localhost/safetyelite/vqmod/vqmod.php');
到
require_once('vqmod/vqmod.php');