为了账号安全,请及时绑定邮箱和手机立即绑定

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

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

PHP
大话西游666 2022-05-18 15:11:15
<?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 26Warning: 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
查看完整描述

2 回答

?
临摹微笑

TA贡献1982条经验 获得超2个赞

路径问题的吧  引用的路径重复了

define('CORE','./suetech/_Core');

require(CORE.'/suetech.php'); 这样应该就好了


查看完整回答
反对 回复 2022-05-23
?
郎朗坤

TA贡献1921条经验 获得超9个赞

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); //执行SQL

echo "<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); //执行SQL
echo "<p>Successfully created the table.</p>";
mysql_close();
?>


查看完整回答
反对 回复 2022-05-23
  • 2 回答
  • 0 关注
  • 268 浏览

添加回答

举报

0/150
提交
取消
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号