Easter79 Easter79
4年前
SQLSTATE[01002] Adaptive Server connection failed (severity 9)
php使用dblib连接SQLserver报错:SQLSTATE\01002\AdaptiveServerconnectionfailed(severity9)解决方法1:在 /usr/local/freetds/etc/freetds.conf(具体位置可能不同)中添加:mssql
Stella981 Stella981
4年前
Linux系统中yum安装Apache+MySQL+PHP环境
用yum安装Apache,Mysql,PHP.2.1安装Apacheyuminstallhttpdhttpddevel安装完成后,用/etc/init.d/httpdstart启动apache设为开机启动:chkconfighttpdon2.2安装mysql2.2.1yuminstallmysq
Stella981 Stella981
4年前
Lua unpack函数用法
unpack,接受一个table做个参数,然后按照下标返回数组的所有元素unpacklua版本<5.1localt{nil,3}retunrnunpack(t)//nil,3table.unpacklua版本5.1localt{nil,3}
Wesley13 Wesley13
4年前
ubuntu下搭载LNMP环境,解决 fpm监听失败
1.安装mysql1.sudoaptgetinstallmysqlservermysqlclient安装过程中要输入root用户的密码。2.安装nginx1.sudoaptgetinstallnginx2.安装php1. sudoaptgetinstallphp5fpmph
Stella981 Stella981
4年前
MediaWiki自动登陆和更新页面
Mediawiki系统开放了API,向wiki系统的api.php发送http请求,可实现很多功能。1.登陆:原理可查看mediawikiapi文档\LoginuserName'\\\'password'\\\'headersdict()headers\'ContentType'\'ap
Stella981 Stella981
4年前
SQLSTATE[01002] Adaptive Server connection failed (severity 9)
php使用dblib连接SQLserver报错:SQLSTATE\01002\AdaptiveServerconnectionfailed(severity9)解决方法1:在 /usr/local/freetds/etc/freetds.conf(具体位置可能不同)中添加:mssql
Stella981 Stella981
4年前
Discuz 中 ajaxget,ajaxpost 返回值没有显示到指定的区域中
1、需按下面的格式写(需导入require'./source/class/class\_core.php';)includetemplate('common/header\_ajax');echo'jack088';includetemplate('common/footer\_ajax');2、可能是jQuery与Discuz
Wesley13 Wesley13
4年前
ubuntu 下搭建redis和php的redis的拓展
系统环境:腾讯云服务器,ubuntu16.0.4.4,php7.0一.安装redis服务sudoaptgetinstallredisserver安装好的redis目录在/etc/redis\也可使用命令whereisredis查找\启动:sudoserviceredisserverst
Stella981 Stella981
4年前
269个JavaScript工具函数,助你提升工作效率(6)
!269个JavaScript工具函数,助你提升工作效率.png(https://static.oschina.net/uploads/img/202009/11172428_tWo3.jpg)151.数组中某元素出现的次数/@param{array}arr@param{}va
Stella981 Stella981
4年前
Quick Sort(三向切分的快速排序)(Java)
1//三向切分的快速排序2//这种切分方法对于数组中有大量重复元素的情况有比较大的性能提升34publicstaticvoidmain(Stringargs)5{6ScannerinputnewScanner(System.in);7