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

类别 :  默认(744)  |  浏览(73643)  |  评论(1)

都是一生啊TOP

piaoling  2013-02-04 11:06:17

......

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

jquery sheetTOP

piaoling  2011-08-02 17:53:39

......

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

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

piaoling  2024-09-13 17:23:36

1,设置源 sudo su 
curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add - 
curl https://packages.microsoft.com/config/ubuntu/22.04/prod.list > /etc/apt/sources.list.d/mssql-release.list 
exit 2.安装SQL Server 2019驱动程序和相关工具 sudo apt update sudo apt install unixodbc-dev msodbcsql17 mssql-tools 3.配置ODBC文件/etc/odbcinst.ini,添加以下内容 [MSSQL] Description = Microsoft ODBC Driver 17 for SQL Server Driver = /opt/microsoft/msodbcsql17/lib64/libmsodbcsql-17.8.so.1.1 UsageCount = 1 4.安装PHP的MSSQL扩展 查找php版本对应的扩展......

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

php 更换版本

piaoling  2024-09-13 17:17:04

首先,确认已安装的PHP版本: ls /etc/alternatives/php* 使用update-alternatives命令来配置默认版本。你需要以root用户身份运行以下命令: sudo update-alternatives --set php /usr/bin/php7.4 sudo update-alternatives --set php-config /usr/bin/php-config7.4 sudo update-alternatives --set phpize /usr/bin/phpize7.4......

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

ubuntu安装php7.4

piaoling  2024-07-15 17:02:56

在 Ubuntu 上,如果默认的 PHP 版本是 PHP 8 并且你想安装 PHP 7,你需要添加一个额外的软件源,因为 Ubuntu 的官方仓库可能不再包含旧版本的 PHP。一个常见的做法是使用 Ondřej Surý 维护的 PHP PPA (Personal Package Archive)。 以下是安装 PHP 7.4 的步骤,因为 PHP 7.4 是 PHP 7 系列中的最后一个主要版本,并且在 2023 年 11 月结束支持,但可能在某些场景下仍然需要。请注意,使用旧版本的 PHP 可能会有安全风险,且不建议在生产环境中使用不再支持的软件 首先,打开终端......

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

在 Ubuntu 22.04上安装 MariaDB 11

piaoling  2024-07-15 15:33:00

1 – 更新您的系统 我们总是从系统更新开始安装。 sudo apt update && sudo apt -y upgrade 升级完成后,您可以转到下一步。 2 – 添加 MariaDB APT 存储库 接下来,我们添加包含在 Ubuntu 系统上安装 MariaDB 11.x 所需的软件包的存储库。 curl -LsS https://downloads.mariadb.com/MariaDB/mariadb_repo_setup | sudo bash -s -- --mariadb-server-version=11.2 命令执行的预期输出。 # [info] Checking for script prerequisites. # [info] MariaDB Server version 11.2 is valid # [info] Repository file successfully written to /etc/apt/sources.......

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

git 找回删除的stash

piaoling  2024-01-29 10:23:01

1.找回 git log --graph --oneline --decorate $( git fsck --no-reflog | awk '/dangling commit/ {print $3}' ) 2.应用找回 git stash apply 提交head ......

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

https修改cookie

piaoling  2023-12-28 11:38:52

https修改cookie <IfModule mod_headers.c> #Header add Access-Control-Allow-Origin "*" Header edit Set-Cookie (.*) "$1; Secure;SameSite=None" env=HTTPS </IfModule> ......

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

Windows系统下,OpenSSL升级为最新版

piaoling  2023-11-21 18:19:30

 环境介绍:Windows2016,phpstudy集成环境(版本:8.1.1.3),web服务器用的是apache(版本:2.4.55),OpenSSL是1.1.1p          客户网站在做等保,OpenSSL高危漏洞,需要进行升级。网上搜了很多教程,基本上都是Linux的系统,要不就是需要编译,找了个简单的办法,并测试成功了,在此记录一下。         1.下载需要的OpenSSL版本(Win32/Win64 OpenSSL Installer for Windows - Shining Light Productions),链接中是1.1.1w和3.1.4两个版本......

类别 :  默认(744)  |  浏览(1241)  |  评论(0)
  • Page:1/145  1444 Blogs
    <<
    >>
    20088
    周日 周一 周二 周三 周四 周五 周六

    文章分类