masalah Warning: require_once pada hosting 000webhost?

contoh masalah ?

Warning: require_once(/storage/ssd5/174/14445174/public_html/ECommerce/include/config.php): failed to open stream: No such file or directory in /storage/ssd5/174/14445174/public_html/include/initialize.php on line 14

Fatal error: require_once(): Failed opening required '/storage/ssd5/174/14445174/public_html/ECommerce/include/config.php' (include_path='.:/usr/share/pear:/usr/share/php') in /storage/ssd5/174/14445174/public_html/include/initialize.php on line 14

sc config.php

<?php

defined('server') ? null : define("server", "localhost");

defined('user') ? null : define ("user", "root") ;

defined('pass') ? null : define("pass","");

defined('database_name') ? null : define("database_name", "db_ecommerce") ;

$this_file = str_replace('\&#039;, '/', __File__) ;

$doc_root = $_SERVER['DOCUMENT_ROOT'];

$web_root =  str_replace (array($doc_root, "include/config.php") , '' , $this_file);

$server_root = str_replace ('config/config.php' ,'', $this_file);

define ('web_root' , $web_root);

define('server_root' , $server_root);

?>

sc initialize.php

<?php

//define the core paths

//Define them as absolute peths to make sure that require_once works as expected

//DIRECTORY_SEPARATOR is a PHP Pre-defined constants:

//(\ for windows, / for Unix)

defined('DS') ? null : define('DS', DIRECTORY_SEPARATOR);

defined('SITE_ROOT') ? null : define ('SITE_ROOT', $_SERVER['DOCUMENT_ROOT'].DS.'ECommerce');

defined('LIB_PATH') ? null : define ('LIB_PATH',SITE_ROOT.DS.'include');

//load the database configuration first.

require_once(LIB_PATH.DS."config.php");

require_once(LIB_PATH.DS."function.php");

require_once(LIB_PATH.DS."session.php");

require_once(LIB_PATH.DS."accounts.php");

require_once(LIB_PATH.DS."autonumbers.php");

require_once(LIB_PATH.DS."products.php");

require_once(LIB_PATH.DS."stockin.php");

require_once(LIB_PATH.DS."categories.php");

require_once(LIB_PATH.DS."sidebarFunction.php");

require_once(LIB_PATH.DS."promos.php");

require_once(LIB_PATH.DS."customers.php");

require_once(LIB_PATH.DS."orders.php");

require_once(LIB_PATH.DS."summary.php");

require_once(LIB_PATH.DS."settings.php");

minta bantuanya bang ?

require_once(LIB_PATH.DS."database.php");

?>

avatar imamkomeng_google
@imamkomeng_google

1 Kontribusi 0 Poin

Dipost 4 tahun yang lalu

Belum ada Jawaban. Jadi yang pertama Jawaban

Login untuk ikut Jawaban