解决php7.1 7.2 json之后浮点型溢出问题
function fix_number_precision($data, $precision = 2) { if(is_array($data)){ foreach ($data as $key =...
function fix_number_precision($data, $precision = 2) { if(is_array($data)){ foreach ($data as $key =...
在Linux CentOS系统上安装完php和MySQL后,为了使用方便,需要将php和mysql命令加到系统命令中,如果在没有添加到环境变量之前,执行“php -v”命令查看当前php...
nohup php server.php & nohup是永久执行 &是指在后台运行 运行 nohup --help Run COMMAND, ignoring hangup signals. 可以看到是“运行命令,忽略挂起信号” ...
1. 通过header()方法来实现, 最简单的方法,而且对php的版本没什么限制 <?php header('HTTP/1.1 404 Not Found'); header("status:...
定义一个空方法 百度使用的是header重定向这样会使url发生改变,使用转发定义页面,url是不做改变的。 <?php namespace Home\Controller;...
工作需要php接受json数据使用的方式为 $con = file_get_contents("php://input"); 发现json_decode之后返回空值 fopen fwrite值发现日志文件里面是有字符串...
Redis是一个高性能的,开源key-value型数据库。是构建高性能,可扩展的Web应用的完美解决方案,可以内存存储亦可持久化存储。因为要使用跨进程,跨服务级别的...
查看权限 Linux文件访问权限分为可读,可写和可执行三种。 可用ls -l命令查看,例: ls -l 显示 -rwxr-xr-x 1 root root 6444 09-22 15:33 shmwrite -rw-r--r...
//https请求(支持GET和POST) protected function https_request($url, $data = null,$noprocess=false) { $curl = curl_init(); curl_setopt($curl, ...
记录备用 知识: 分布式版本控制系统。 工作区、暂存区(add)、版本库。 对修改而不是对文件(add的是一次修改)。 分支的操作是指针的操作。 主分支上创建的新...