php根据IP获取地理位置TOP
http://www.phpandstuff.com/articles/geoip-country-lookup-with-php How to get the surfers country using PHP? Most coders need to tackle this problem sooner or later. There are several options out there. There is even a package called GeoIP Location. However, since this does not come with most default installations, it may not be your best choice. A company called Maxmind specializes in professional GeoIP solutions. However, when you dig through their website, you can find that they also provide some free databases and free code. I will show you how to use this free stuff in a portable......
mariadb设置最大连接数
1. mariadb配置文件中 /etc/my.cnf 添加max_connections=3000 2. vim /usr/lib/systemd/system/mariadb.service [Service]新添加两行如下参数: LimitNOFILE=10000 LimitNPROC=10000 3.重新加载系统服务,并重启mariadb服务 systemctl --system daemon-reload systemctl restart mariadb.service 查看配置是否生效: show global variables like '%max_conn%'; ......
CentOS安装Nginx
一:安装依赖 yum -y install gcc gcc-c++ make libtool zlib zlib-devel openssl openssl-devel pcre pcre-devel 二:下载Nginx版本 1.官网直接下载.tar.gz安装包,地址:nginx: download 2.使用wget命令下载 wget -c https://nginx.org/download/nginx-1.18.0.tar.gz 3.网盘下载 链接:https://pan.baidu.com/s/1C3wfnqAgE2QZgyRPd3zU-w 提取码:6x06 三:解压 tar -zxvf nginx-1.18.0.tar.gz cd nginx-1.18.0 四:配置 1.不需要SSL ./configure --prefix=/usr/local/nginx 2.需要SSL ./configure --prefix=/usr/local/nginx --with-http_stub_status_module ......
CentOS 下 PHP7.2 安装 mssql sqlsrv扩展以链接 SQL SERVER 数据库
curl https://packages.microsoft.com/config/rhel/7/prod.repo > /etc/yum.repos.d/mssql-release.repo yum install -y msodbcsql mssql-tools unixODBC-devel 修复报错:This extension requires the Microsoft ODBC Driver for SQL Server to communicate with SQL Server. Access the following URL to download the ODBC Driver for SQL Server for x64: https://go.microsoft.com/fwlink/?LinkId=163712 1、安装依赖包 yum install gcc-c++ yum install unixODBC-devel 2、下载mssql扩展包 官方地址:http://pecl.php.net/package/pdo_sqlsrv 我选......
php5.6 php_sqlsrv
今天配置服务器需要用php和Sqlserver2008数据库,网上找了一些资料,基本上都是说需要下载微软的驱动放在ext文件夹后,再在php.ini中增加如下配置: [PHP_PDO_SQLSRV] extension=php_pdo_sqlsrv_56_ts.dll [PHP_SQLSRV] extension=php_sqlsrv_56_ts.dll 最后重启服务器即可,但我重启了apache之后在phpinfo中还是没有看到sqlsrv的扩展,后来在百度贴吧http://tieba.baidu.com/p/3214930266中找到了问题关键: 原来微软官方提供的microsoft drivers 3.2 for php for sql server并不支持64位的php版本,一些非官方的3.......
jquery view js
jquery view js https://github.com/fengyuanchen/jquery-viewer https://toscode.gitee.com/mirrors/Viewer-jQuery demo:https://fengyuanchen.github.io/viewer/ Options You may set viewer options withnew Viewer(image, options). If you want to change the global default options, You may useViewer.setDefaults(options). backdrop Type:BooleanorString Default:true Enable the modal backdrop, specifystaticfor the backdrop that will not close the modal on click. button Type:Boolean Default:true Show the ......
CentOS7 安装 PHP7 完全详细教程
CentOS7的默认PHP版本是PHP5,但是如果我们要安装PHP7,不需要将现有的PHP5删除,只要将PHP升级到PHP7即可。 使用 yum provides php 命令可以获取CentOS7的PHP包安装情况。显示的是在现有的安装源中能够安装的最新版本为:php-5.4.16-46.el7.x86_64 在安装PHP7之前,建议先升级更新一下CentOS7的安装包: yum -y update :升级所有软件包的同时也升级软件和系统内核; yum -y upgrade :只是升级所有软件包,但是不升级软件和系统内核。 我们这里使用第二条:yum -y upgrade ......
centos 7 安装lamp
systemctl stop firewalld setenforce 0 yum -y install httpd systemctl start httpd.service systemctl enable httpd.service yum install php* -y --skip-broken systemctl restart httpd yum install mariadb-server mariadb -y systemctl start mariadb mysql_secure_installation systemctl enable mariadb #设置开机启动 yum -y install php-mysql --skip-broken yum -y install php-gd php-ldap php-odbc php-pear php-xml php-xmlrpc php-mbstring php-snmp php-soap curl curl-devel systemctl restart httpd.service 启用https yum install mod_ssl ......
- Page:1/142 1412 Blogs
周日 | 周一 | 周二 | 周三 | 周四 | 周五 | 周六 |
文章分类
- 默认(712)
- 日志(47)
- 感悟(15)
- testIT(4)
- PHP_XML(5)
- PHP(78)
- 明星(1)
- 笑话(31)
- 毕业论文(2)
- 生活(60)
- HTML(11)
- CSS(6)
- 考研(3)
- JS(21)
- 简历(6)
- svn(3)
- 音乐(1)
- 学习(7)
- jQuery(9)
- 英语口语(9)
- 书籍(2)
- magento(258)
- apache(12)
- 创意(4)
- 设计(4)
- 休闲(1)
- IT咨询(11)
- 工作(23)
- ubuntu(21)
- bysoft(1)
- zend(1)
- web(2)
- software(1)
- sql(5)
- 娱乐(5)
- photoshop(3)
- zend framework(2)
- nginx(3)
- 小说(1)
- 名言(1)
- 牛人(1)
- Mysql(6)
- vim(2)
- wordpress(8)
- drupal(1)