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

类别 :  默认(721)  |  浏览(61996)  |  评论(1)

都是一生啊TOP

piaoling  2013-02-04 11:06:17

......

类别 :  默认(721)  |  浏览(20650)  |  评论(0)

jquery sheetTOP

piaoling  2011-08-02 17:53:39

......

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

ERROR 1300 (HY000) Invalid gbk character string:

piaoling  2023-08-30 11:42:25

mysql在导入或者创建表名为中文时候出现报错 ERROR 1300 (HY000): Invalid utf8 character string: 或者 ERROR 1300 (HY000): Invalid gbk character string: 这是因为使用cmd打开的mysql数据库,切换一下就可以了: 解决方法:有两种 (1)使用mysql的命令窗口鼠标右键以管理员身份运行 (2)使用cmd需要在进入mysql以后就要立马更改字符编码,即:set names gbk;与cmd保持一致即可 第二种方法的详细操作步骤: 在cmd命令字符集中进入mysql以后,输入set names gbk; ......

类别 :  默认(721)  |  浏览(85)  |  评论(0)

phpmyadmin允许远程访问

piaoling  2023-08-24 16:25:13

<Directory "/var/www/html/phpmyadmin">     Options Indexes FollowSymLinks     AllowOverride None     Require all granted </Directory>......

类别 :  默认(721)  |  浏览(108)  |  评论(0)

MariaDB 错误:ERROR 1118 (42000): Row size too large (> 8126) 解决方法

piaoling  2023-08-24 11:48:12

MariaDB 10.2.2 版本以后默认会开启 innodb_strict_mode ,此时一些本来是warning 的会变为错误。 解决方法:在 my.ini 文件加上: innodb_strict_mode=0......

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

linux图片压缩

piaoling  2023-08-10 17:48:37

命令行工具:jpegoptim和OptiPNG jpegoptim:它是一个优化/压缩JPEG文件而不降低其质量的工具。 OptiPNG:它是一个命令行工具,用于优化PNG图像到更小的尺寸,而不丢失任何信息 先安装EPEL仓库扩充软件库: yum install epel-release 1 .安装jpegoptim Ubuntu 安装 sudo apt-get install jpegoptim Centos yum install jpegoptim 2.安装OptiPNG yum install optipng sudo apt-get install optipng ========== 图片压缩=============== #安装epel源 yum -y install epel-release #......

类别 :  默认(721)  |  浏览(223)  |  评论(0)

Centos7环境下更新PHP7.3到PHP7.4

piaoling  2023-08-01 12:12:26

文章目录 安装 EPEL 源 安装 Remi 源 安装 yum-utils (yum-config-manager) 配置源:首先禁用当前的php源并启用需要安装的php7.4的源 执行Update更新PHP7.4 启动php7.4并设置开机自启动 近日在对个人网站例行维护时,发现WordPress 后台的站点健康提示推荐更新 PHP 7.4。 要在CentOS 7环境下将PHP 7.3更新到PHP 7.4,我们可以按照以下步骤进行操作: 安装 ......

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

centos7安装php8

piaoling  2023-07-24 15:50:54

步骤 卸载所有已安装的php yum remove -y php* 添加remi源(可能需要提前安装epel-release) yum install -y https://rpms.remirepo.net/enterprise/remi-release-7.rpm 此处若是无法下载 可用 rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm rpm -Uvh https://rpms.remirepo.net/enterprise/remi-release-7.rpm 单独启用php80的源(没有yum-config-manager命令的话需要安装yum-utils) yum-config-manager --disable 'remi-php*' yum-config-manager --enable remi-php80 安装php及其拓展 yum inst......

类别 :  默认(721)  |  浏览(413)  |  评论(0)

MariaDB 11.0 CentOS repository list

piaoling  2023-07-05 14:32:58

# MariaDB 11.0 CentOS repository list - created 2023-07-05 06:23 UTC # https://mariadb.org/download/ [mariadb] name = MariaDB # rpm.mariadb.org is a dynamic mirror if your preferred mirror goes offline. See https://mariadb.org/mirrorbits/ for details. # baseurl = https://rpm.mariadb.org/11.0/centos/$releasever/$basearch baseurl = https://mirror.djvg.sg/mariadb/yum/11.0/centos/$releasever/$basearch module_hotfixes = 1 # gpgkey = https://rpm.mariadb.org/RPM-GPG-KEY-MariaDB gpgkey = https://mirror.djvg.sg/mariadb/yum/RPM-GPG-KEY-MariaDB gpgcheck = 1 ......

类别 :  默认(721)  |  浏览(416)  |  评论(0)
  • Page:1/143  1421 Blogs
    <<
    >>
    20088
    周日 周一 周二 周三 周四 周五 周六

    文章分类