D:\ComsenzEXP\wwwroot\index.php on line 26?

<?phpheader("Content-type: text/html; charset=utf-8");date_default_timezone_set('PRC');if (get_magic_quotes_gpc()) { function stripslashes_deep($value){ $value = is_array($value) ? array_map('stripslashes_deep', $value) : stripslashes($value); return $value; } $_REQUEST = array_map('stripslashes_deep', $_REQUEST); $_POST = array_map('stripslashes_deep', $_POST); $_GET = array_map('stripslashes_deep', $_GET); $_COOKIE = array_map('stripslashes_deep', $_COOKIE);}//require('./360_safe3.php');define('CVS_ROOT', str_replace("\\", '/', dirname(__FILE__)));define('APP_DEBUG',0);define('APP_NAME', '138');define('CONF_PATH','./Data/conf/');define('RUNTIME_PATH','./Data/logs/');define('TMPL_PATH','./tpl/');define('HTML_PATH','./Data/html/');define('APP_PATH','./suetech/');define('CORE','./suetech/_Core'); require(CORE.'/suetech/_Core/suetech.php');最后一行错误 怎么改!!!Warning: require(CORE/suetech/_Core/suetech.php) [function.require]: failed to open stream: No such file or directory in D:\ComsenzEXP\wwwroot\index.php on line 26Fatal error: require() [function.require]: Failed opening required 'CORE/suetech/_Core/suetech.php' (include_path='.;C:\php5\pear') in D:\ComsenzEXP\wwwroot\index.php on line 26
Warning: require(CORE/suetech/_Core/suetech.php) [function.require]: failed to open stream: No such file or directory in D:\ComsenzEXP\wwwroot\index.php on line 26
Fatal error: require() [function.require]: Failed opening required 'CORE/suetech/_Core/suetech.php' (include_path='.;C:\php5\pear') in D:\ComsenzEXP\wwwroot\index.php on line 26

大话西游666
浏览 269回答 2
2回答

临摹微笑

路径问题的吧&nbsp;&nbsp;引用的路径重复了define('CORE','./suetech/_Core');require(CORE.'/suetech.php');&nbsp;这样应该就好了

郎朗坤

1.password VARCHAT(20) NOT NULL这里,VARCHAAR打错,应该是password VARCHAR(20) NOT NULL,2.mysqli_query($conn, $sql) 这里有问题,直接 mysql_query($sql);即可下面为修改后的内容<?php$host = "mysql.ict.swin.edu.au";$user = "s7459394";$pswd = "091290";$dbnm = "s7459394_db";$conn =@mysqli_connect($host,$user,$pswd);if($conn === false){die('Could not connect: ' . mysql_error());}mysql_select_db($dbnm);$sql = "CREATE TABLE IF NOT EXISTS ssfriends(friend_id INT NOT NULL AUTO_INCREMENT PRIMARY KEY,friend_email VARCHAR(50) NOT NULL, password VARCHAR(20) NOT NULL, profile_name VARCHAR(30) NOT NULL, date_started DATE NOT NULL, num_of_friends INTEGER UNSIGNED )";mysql_query($sql); //执行SQLecho "<p>Successfully created the table.</p>";$sql = "CREATE TABLE IF NOT EXISTS myfriends( friend_id1 INT NOT NULL, friend_id2 INT NOT NULL )";mysql_query($sql); //执行SQLecho "<p>Successfully created the table.</p>";mysql_close();?>
打开App,查看更多内容
随时随地看视频慕课网APP