• 欢迎访问春风博客

标签:PHP

PHP7利用openssl实现AES加密解密

<?php/*** PHP AES加密解密.* @author 春风 QQ 860646000*/$key = 'woaichunfengboke'; //key$iv = '0123456789101112'; //iv$txt = '春风博客 网址:http://Chunblog.com/ 欢迎您!'; //字符串……

PHP 字符串达到指定长度换行

//达到76个字符换行处理$string='erX8ceL7pUopUHZcz7hBXX+340hcJl/IP3DN1qvAxbpWObB5zOFIqLP/GYIYDzc4l/DotGWqIf90NRbaL9RGcWrXXCXkpv/mg2ZxKo6QiZ/+X+4Vff5Zpwe/klYERTOUHTAkHDzt26EULeuvOmimva+a/t……

PHP 脚本中的各种运算符

PHP 算数运算符运算符名称例子结果+加法$x + $y$x 与 $y 求和–减法$x – $y$x 与 $y 的差数*乘法$x * $y$x 与 $y 的乘积/除法$x / $y$x 与 $y 的商数%模数$x % $y$x 除 $y 的余数PHP 赋……

Centos7.4 编译安装PHP 7.24 并配置开机启动

Centos7.4 Linux编译安装PHP7 并配置开机启动,网络资料显示PHP7性能是PHP5的3倍之多(wordpress 而言),而且代码向下兼容,春风也把PHP5.6更换成了PHP7.2,性能提升明显,而且更节省感觉更节省内存。……

Centos7 nginx php 启动关闭命令

php-fpm 启动、停止、重启启动systemctl start php-fpm停止systemctl stop php-fpm重启systemctl restart php-fpmNginx命令#启动nginx服务systemctl start nginx.service#停止nginx服务systemc……

PHP 模拟post进行url请求 并输出返回内容

/**     * 模拟post进行url请求     * @param string $url     * @param string $param     */    function request_post($url = '', $param = '') {        if (empty($url) || e……

获取URL跳转后的真实URL

获取文件或跳转后的真实URL地址第一种方法function getrealurl($url){$header = get_headers($url,1);if (strpos($header[0],'301') || strpos($header[0],'302')) { if(is_array($header['Location'……