php从文件中读取出的用户名不能用于连接数据库 $this->conn = mysql_connect($this->db_host, $this->db_user, $this->db_pwd) ;if ( !($this->conn) ){die('Could not connect:'.mydsql_error('连接出错')) ;}拼写错误 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 观察到'noco '@'14.210.115.31'和'noco'@'14.210.115.31'的区别显然是多了空格、回车、换行之类的字符你是怎么读取 ini 文件的? 读取文件方式:$this->db_host = fgets($openfile) ;$this->db_user = fgets($openfile) ;$this->db_pwd = fgets($openfile) ; 那是要去掉尾部的空白字符的(空格、回车、换行)$this->db_host = trim(fgets($openfile)) ;$this->db_user = trim(fgets($openfile)) ;$this->db_pwd = trim(fgets($openfile)) ; 显然 'noco '@'14.210.115.31' 用户名后面多了个空格。 求 php管理实现详细操作日志的制作思想!! Linux系统下,PHP扩展库中调用另外一个库,但是运行时apache找不到调用的那个库 求一完整的demo,用php创建access数据库,同时新建表增加数据。 php用smtp发邮件问题! php+smarty+mysql乱码 安装PHP的问题 其他页面中获得一个循环中当前进度的好办法 求教:在php脚本中无法获取上传的变量,是怎么回事? 给funnu分啦 谁 知道 http 头部 规范 这样的浏览路径是什么呢? preg_replace,preg_match问题,请帮忙看看
'noco '@'14.210.115.31'
和
'noco'@'14.210.115.31'
的区别
显然是多了空格、回车、换行之类的字符你是怎么读取 ini 文件的?
$this->db_host = fgets($openfile) ;
$this->db_user = fgets($openfile) ;
$this->db_pwd = fgets($openfile) ;
$this->db_user = trim(fgets($openfile)) ;
$this->db_pwd = trim(fgets($openfile)) ;