![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
PHP
lr241713
这个作者很懒,什么都没留下…
展开
-
mac版docker安装PHP:5.4.45-fpm镜像配合宿主机nginx搭建本地开发环境
安装dockerbrew install --cask --appdir=/Applications docker搜索镜像https://hub.docker.com/_/php?tab=tags&page=1&ordering=last_updated&name=5.4.45下载镜像docker pull php:5.4.45-fpm创建并运行容器docker run --name myphp-fpm -p 9001:9000 -v /www:/www --原创 2021-01-29 10:13:27 · 687 阅读 · 0 评论 -
PHP5.4安装GD库
cd php-5.4.45cd ext/usr/local/php5.4/bin/phpize./configure./configure -h./configure --with-php-config=/usr/local/php5.4/bin/php-config./configure --hgd ./configure --with-php-config=/usr/local/php5.4/bin/php-config --with-xpm- dir=/usr/X11/include原创 2021-01-07 14:26:35 · 258 阅读 · 0 评论 -
Mac编译安装PHP5.6
一、源码下载源码下载 : wget http://mirrors.sohu.com/php/php-5.6.2.tar.gz解压:tar -zxvf php-5.6.2.tar.gz进入目录: cd php-5.6.2二、配置初始化./configure \--prefix=/usr/local/php5.6 \--with-mysql \--with-mysqli \--with-pdo-mysql \--with-mhash \--with-curl \--with-gd \原创 2021-01-07 09:23:45 · 490 阅读 · 2 评论 -
移除字符串中的表情符
<?php function removeEmojiChar($str){ $mbLen = mb_strlen($str); $strArr = []; for ($i = 0; $i < $mbLen; $i++) { $mbSubstr = mb_substr($str, $i, 1, 'utf-8'); if (strl原创 2020-09-02 16:49:06 · 148 阅读 · 0 评论 -
Git – Fast Forward 和 no fast foward
利用Fast-forward将dev合并到master :没有使用Fast-forward模式 ,可以看出,使用no-ff后,会多生成一个commit 记录,并强制保留develop分支的开发记录(而fast-forward的话则是直接合并,看不出之前Branch的任何记录)--no-ff 指的是强行关闭fast-forward方式。--no-ff (no fast foward),使...原创 2020-03-27 14:07:34 · 416 阅读 · 0 评论 -
centos安装netcat
1.下载安装包wget https://sourceforge.net/projects/netcat/files/netcat/0.7.1/netcat-0.7.1.tar.gz2.解压缩文件tar -zxvf netcat-0.7.1.tar.gz -C /usr/local3.切换至/usr/local/netcat-0.7.1 1>查看编译配置文件 ./con...原创 2020-03-23 11:57:01 · 673 阅读 · 0 评论 -
防止XSS攻击
预防XSS攻击从根本上说,解决办法是消除网站的XSS漏洞,这就需要网站开发者运用转义安全字符等手段,始终把安全放在心上。简单点,就是过滤从表单提交来的数据,使用php过滤函数就可以达到很好的目的。htmlspecialchars() 函数代码实例:<?php if (isset($_POST['name'])){ $str = trim($_POST['...原创 2020-02-26 18:20:08 · 129 阅读 · 0 评论