piaoling  2013-10-25 17:56:43 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......

类别 :  默认(712)  |  浏览(58696)  |  评论(1)


piaoling  2013-02-04 11:06:17


类别 :  默认(712)  |  浏览(19668)  |  评论(0)

jquery sheetTOP

piaoling  2011-08-02 17:53:39


类别 :  jQuery(9)  |  浏览(9981)  |  评论(0)


piaoling  2023-06-05 11:57:38

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%'; ......

类别 :  默认(712)  |  浏览(5)  |  评论(0)


piaoling  2023-04-06 14:22:42

一:安装依赖 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 3.网盘下载 链接: 提取码: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 ......

类别 :  默认(712)  |  浏览(254)  |  评论(0)

CentOS 下 PHP7.2 安装 mssql sqlsrv扩展以链接 SQL SERVER 数据库

piaoling  2023-03-22 15:50:17

curl > /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: 1、安装依赖包 yum install gcc-c++ yum install unixODBC-devel 2、下载mssql扩展包 官方地址: 我选......

类别 :  默认(712)  |  浏览(291)  |  评论(0)

php5.6 php_sqlsrv

piaoling  2023-03-22 10:12:40

今天配置服务器需要用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的扩展,后来在百度贴吧中找到了问题关键: 原来微软官方提供的microsoft drivers 3.2 for php for sql server并不支持64位的php版本,一些非官方的3.......

类别 :  默认(712)  |  浏览(270)  |  评论(0)

jquery view js

piaoling  2023-02-01 14:44:35

jquery view js demo: 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 ......

类别 :  默认(712)  |  浏览(498)  |  评论(0)

CentOS7 安装 PHP7 完全详细教程

piaoling  2022-07-05 16:15:07

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 ......

类别 :  默认(712)  |  浏览(2441)  |  评论(0)

centos 7 安装lamp

piaoling  2022-07-05 15:48:57

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 ......

类别 :  默认(712)  |  浏览(1659)  |  评论(0)
  • Page:1/142  1412 Blogs
    周日 周一 周二 周三 周四 周五 周六