将php.ini 中的
1expose_php = On
改为
1expose_php = Off
关于expose_php这个选项:
123456; Decides whether PHP may expose the fact that it is installed on the server; (e.g. by adding its signature to the Web server header). It is no security; threat in any way, but it makes it possible to determine whether you use PHP; on your server or not.; http://php.net/expose-php
还是迁移本博客出现的问题,配置好之后访问总是403,翻了一眼错误日志,发现提示错误:
1AH01630: client denied by server configuration:
查了一下,原来是apache 2.2和2.4的配置文件发生了变化,简单摘录如下:
1234567891011121314151617181920212223Deny All 2.2 configuration: Order deny,allow Deny from all 2.4 configuration: Require all deniedAllow All 2.2 configuration: Order allow,deny Allow from all 2.4 configuration: Require all grantedAllow Host 2.2 configuration: Order Deny,Allow Deny from all ...
2015年第一篇,首先祝本博客读者们新年快乐,虽然元旦已经过去好几天了。
最近遇到一个问题(以前就遇到,但没仔细研究解决):用PB7.0连接Sybase ASE,直接用isql用sql语句操作数据库表一切正常,但从DB profile->SYC Adaptive Server Enterprise->[数据库名]->Tables,点击具体表时总是提示:“store procedure sp_pb70table not found”。
查了一下找到13年前的一篇文章,http://bbs.csdn.net/topics/10020881,从pb7安装目录下的Server目录,将两个sql文件内容通过isql在服务器上操作,结果问题解决。
这段时间一直挠头的一个问题也一并解决:用pb连接数据库,用isql检索数据并通过将数据窗口打开后,save changes以及update都是灰的,无法点击,数据窗口的数据也没办法编辑。
老外也遇到过类似问题:
Unable to Update Data in Database Painter
回答者引到主键上去,没解决问题。
为了解决...
在Ubuntu 14.04 MariaDB 10.0.15下,运行包含mysql_connect()函数的PHP脚本提示以下Warning:
“mysql_connect(): Headers and client library minor version mismatch. Headers:50540 Library:100015”
Google了下,在stackoverflow发现只要卸载掉php5-mysql,安装php5-mysqlnd即可。
所谓mysqlnd,是指MySQL native driver,php.net上这样介绍mysqlnd:“MySQL Native Driver is a replacement for the MySQL Client Library (libmysqlclient)”
mysqlnd是一个用C写的、替换libmysqlclient的一个PHP扩展。mysqlnd之所以会出现其原因包括licence、性能等诸多方面:
A.libmysql驱动是由mysql AB公司(现在是oracle公司)编写, 并按mysql license许可协...