在使用[$conn = new \mysqli($servername, $username, $password,$dbname);]连接msql数据库的时候 出现错误:[Fatal error: Class ‘mysqli’ not found in xxx……],但是代码中可以追踪到mysqli的类. 解决办法: 1.windows服务器. 在php.ini里面去掉[extension=php_mysqli.dll]前面的";",然后重启服务器.…
今天在Linux底下编写导出EXCEL文件并显示输出时,抛出“ZipArchive library is not enabled” 的异常.而我在本地的windows下的代码则是运行正常的. 原因是:在Linux下没有php_zip.dll这个文件(有也不会起作用的),所以需要重新编译一下php的zip模块. 在Unix/Linux下的解决办法 : wget http://pecl.php.net/get/zip tar zxvf zip cd / locate phpize /usr/l…
1.问题 电脑上同时安装了VS2008,VS2010,使用VS2010编译VS2008建立的工程,或者,VS2010创建新的工程.编译时,出现以下链接错误: LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt 2.修改 安装Visual Studio 2010 Service Pack 1补丁. http://www.microsoft.com/en-us/downloa…