运行代码时出现以下错误,

时间:2019-11-28 19:01:36

标签: php

  

警告:require(../ scripts / config.inc.php):无法打开流:否   第16行的C:\ wamp64 \ www \ railway \ index.php中的此类文件或目录   致命错误:require():必须打开失败   '../scripts/config.inc.php'(include_path ='.; C:\ php \ pear')在   第16行的C:\ wamp64 \ www \ railway \ index.php

这是代码index.php:

$server_dir = "../";

require $server_dir.'scripts/config.inc.php';
require $server_dir.'scripts/wampserver.lib.php';

$aliasDir = $server_dir.'alias/';


$server_software = $_SERVER['SERVER_SOFTWARE'];
$error_content = '';


$phpVersion = $wampConf['phpVersion'];
$apacheVersion = $wampConf['apacheVersion'];
$doca_version = 'doca'.substr($apacheVersion,0,3);
$mysqlVersion = $wampConf['mysqlVersion'];


$suppress_localhost = ($wampConf['urlAddLocalhost'] == 'off' ? true : false);


$VirtualHostMenu = $wampConf['VirtualHostSubMenu'];

0 个答案:

没有答案