安装完毕后,要对文件进行配置,配置如下:
1、在php.ini文件中,写入:
; Windows: "\path1;\path2"
include_path = "\xampp\php\includes"
2、在打开网站好,出现下面的错误:
Warning: mysqli_connect(): (HY000/1045): Access denied for user 'root'@'localhost' (using password: YES) in D:\xampp\php\includes\myfun2.php on line 17
Error Access denied for user 'root'@'localhost' (using password: YES)上面的错误是因为在数据库中,没有配置root密码,所以没有权限读取数据库
3、在D:\xampp\phpMyAdmin下,配置config.inc.php文件
$cfg['Servers'][$i]['auth_type'] = 'config';把这句中的config改为cookie
$cfg['Servers'][$i]['password'] = '这里是你的密码';
$cfg['Servers'][$i]['AllowNoPassword'] = true;把这里的true换成false这样在进入数据库的时候,必须要有密码才行
4、
Fatal error: Call to undefined function oci_connect() in D:\xampp\php\includes\myfun2.php on line 19
extension=php_oci8_11g.dll ; Use with Oracle 11gR2 Instant Client把前面的#号去掉