php根据IP获取地理位置TOP

piaoling  2013-10-25 17:56:43

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

类别 :  默认(709)  |  浏览(57192)  |  评论(1)

都是一生啊TOP

piaoling  2013-02-04 11:06:17

......

类别 :  默认(709)  |  浏览(19188)  |  评论(0)

jquery sheetTOP

piaoling  2011-08-02 17:53:39

......

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

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

piaoling  2023-03-22 15:50:17

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

类别 :  默认(709)  |  浏览(19)  |  评论(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的扩展,后来在百度贴吧http://tieba.baidu.com/p/3214930266中找到了问题关键: 原来微软官方提供的microsoft drivers 3.2 for php for sql server并不支持64位的php版本,一些非官方的3.......

类别 :  默认(709)  |  浏览(18)  |  评论(0)

jquery view js

piaoling  2023-02-01 14:44:35

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

类别 :  默认(709)  |  浏览(241)  |  评论(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 ......

类别 :  默认(709)  |  浏览(1979)  |  评论(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 ......

类别 :  默认(709)  |  浏览(1347)  |  评论(0)

docker MYSQL [Error] Operating system error number 22 in a file operation

piaoling  2020-02-20 16:58:09

共享文件夹F:/docker=>虚拟机/docker 需加--innodb-use-native-aio=0 完整命令: docker run -itd --name mysql -p 3307:3306 -v /docker/mysql/conf/conf.d:/etc/mysql/conf.d -v /docker/mysql/data:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=root mysql --innodb-use-native-aio=0 ......

类别 :  默认(709)  |  浏览(5299)  |  评论(0)

解决docker容器存放目录磁盘空间满了问题

piaoling  2020-02-20 11:18:52

前言 docker所在服务器,运行了一段时间后,发现服务器磁盘目录快不够用了。通过du -h --max-depth=1 /逐级目录排查,发现/var/lib/docker目录文件过大。通过以下方法,解决该问题。 转移数据修改docker默认存储位置 有多种方式修改docker默认存储位置。 最好是在docker安装完后,第一时间修改docker默认存储位置为其他大目录或者磁盘中。规避迁移数据过程中造成的风险。 停止docker服务 systemctl stop docker 创建新的docker目录......

类别 :  默认(709)  |  浏览(4097)  |  评论(0)
  • Page:1/141  1409 Blogs
    <<
    >>
    20088
    周日 周一 周二 周三 周四 周五 周六

    文章分类