-
PHP面向对象之工作单元(实例讲解)
[PHP教程] 2021-01-24 08:45:30 172人阅读
工作单元 这个模式涉及到了领域模型、数据映射器和标识映射,这里就统一进行整理和回顾了。 $venue = new \woo\domain\Venue(null,"The Green Tree...[详细]
-
解决出现SoapFault (looks like we got no XML
[PHP教程] 2021-01-24 08:44:42 191人阅读
今天在调试项目的时候出现下面的错误信息: looks like we got no XML document (D:\phpStudy\WWW\self.shop.xunmall.com\components\Proxy.php:477) 0 D:\phpStudy\WWW\self.shop.xunmall.com\components\Proxy.php...[详细]
-
php-fpm开启状态统计的方法详解
[PHP教程] 2021-01-24 08:43:35 181人阅读
本文主要给大家介绍了关于php-fpm开启状态统计的相关内容,分享出来供大家参考学习,下面来一起看看详细的介绍: 启用php-fpm状态功能 nginx配置 默认主机里面加上location 访问测试 php-fpm status详解 pool - fpm...[详细]
-
PHP API接口必备之输出json格式数据示例代码
[PHP教程] 2021-01-24 08:43:00 143人阅读
前言 我们在日常的开发工作中免不了要写接口,json格式文本的输出是制作接口必须掌握的,现在通行的接口基本是采用json格式的数据。下面话不多说,来看看本文的详细内容: 简单的php json文件输出: $data =array( ...[详细]
-
利用PHP获取访客IP、地区位置、浏览器及来源页
[PHP教程] 2021-01-24 08:37:23 152人阅读
前言 本文中主要介绍了关于利用PHP获取访客IP、地区位置、浏览器及来源页面等信息的相关内容,分享出来供大家参考学习,下面来一起看看详细的介绍: 不多说了,每个方法都注释了,可以直接用: 示例代码 //根据ip获...[详细]
-
简单谈谈PHP面向对象之标识对象
[PHP教程] 2021-01-23 22:43:43 136人阅读
标识对象模式 这个模式主要功能就是创建sql语句中的wehre条件字符串的,下面直接看代码和注释: //字段对象 class Field { protected $name = null; //字段名称 protected $operator = null; //操作符 protected $co...[详细]
-
什么是PHP文件?如何打开PHP文件?
[PHP教程] 2021-01-23 22:38:09 147人阅读
在平时我们可能会碰到过php文件,可是很多用户不知道php文件是什么文件?也不知道怎么打开php文件?为了满足一些用户的好奇心,小编现在就给大家讲解php文件以及如何打开php文件的方法。 1、PHP文件是什么? PHP(Hypert...[详细]
-
关于PHP转换超过2038年日期出错的问题解决
[PHP教程] 2021-01-23 22:37:10 77人阅读
前言 最近在写一个项目接口。测试中发现服务器上测试正常的功能,在本地一直有问题。一步步的排查,最终锁定问题是由于函数 strtotime 返回了一个 false 值,导致数据插入数据库失败。 相同代码运行结果不一样,原因...[详细]
-
YII2自动登录Cookie总是失效的解决方法
[PHP教程] 2021-01-23 22:30:43 181人阅读
前言 最近做Yii2自动登录功能,发现即使开启了Yii2的自动登录配置功能,浏览器关闭后,再次打开浏览器还是处于非登录状态。 网上查询资料基本没有相同情况。 查询登录源码: identityCookie); $cookie->value = json...[详细]
-
php的常量和变量实例详解
[PHP教程] 2021-01-23 22:30:08 176人阅读
php的常量和变量实例详解 【PHP在命令行下接收参数】 如果在命令行调试php,传入的参数通过$argv获取,注意其中包含了文件名这一个元素,数组中元素的个数通过$argc获...[详细]
- 这篇文章主要介绍了Laravel 5.0 发布 新版本特性详解,...[详细]
- 计算两个日期之间的时间差需要先把两个日期转换成纪元...[详细]
- 初步使用面向对象程序设计,要掌握的就是使用面向对象...[详细]
- 每个 PHP 数组内部都有一个指针,该指针指向数组的某...[详细]
- 因为 PHP 是一个 Web 编程语言,在编程过程中难免会遇...[详细]
- PHP 中提供了 return 语句来返回函数的运行结果,其语...[详细]
- final 关键字的作用如下: 使用 final 修饰的类,不能...[详细]
- 在使用 switch 语句时应该注意以下几点: 和 if 语句...[详细]
- 这篇文章主要给大家介绍了关于PHP替换Word中变量并导...[详细]
- 这篇文章主要介绍了PHP常量DIRECTORY_SEPARATOR原理及...[详细]