-
Laravel模板引擎Blade中section的一些标签的区
[PHP教程] 2022-07-27 12:54:28 60人阅读
这篇文章主要介绍了Laravel模板引擎Blade中section的一些标签的区别介绍,本文讲解了@yield 与 @section、@show 与 @stop、@append 和 @override的区别,需要的朋友可以参考下 Laravel 框架中的 Blade 模板引擎,很好...[详细]
-
PHP框架Laravel的小技巧两则
[PHP教程] 2022-07-27 12:53:45 104人阅读
这篇文章主要介绍了PHP框架Laravel的小技巧两则,本文讲解了Route::controller中路由批量命名、根据系统变量判断当前运行环境两个小技巧,需要的朋友可以参考下 用 Laravel 作为 PHP 开发框架很久了,但是有些官方文档...[详细]
-
Laravel中使用自己编写类库的3种方法
[PHP教程] 2022-07-27 12:52:56 117人阅读
这篇文章主要介绍了Laravel中使用自己编写类库的3种方法,本文讲解了增加可直接实例化的类、增加可直接调用的函数、增加稍微复杂的类库三种方式,需要的朋友可以参考下 虽然Composer使得我们可以重用很多现有的类库(...[详细]
-
PHP转盘抽奖接口实例
[PHP教程] 2022-07-27 12:52:17 101人阅读
这篇文章主要介绍了PHP转盘抽奖接口的实现方法,实例分析了随机抽奖接口的实现原理与对应数据库操作的技巧,需要的朋友可以参考下。 本文实例讲述了PHP转盘抽奖接口的实现方法。分享给大家供大家参考。具体如下: 这里...[详细]
-
PHP中实现获取IP和地理位置类分享
[PHP教程] 2022-07-27 12:51:49 163人阅读
这篇文章主要介绍了PHP中实现获取IP和地理位置类分享,本文地理定位使用的是SINA的通用接口,需要的朋友可以参考下 发现之前有一个脚本没有写完,简单扩充了一下。 获取IP使用的是经典的逻辑,地理定位使用的是SINA的...[详细]
-
PHP实现获取FLV文件的时间
[PHP教程] 2022-07-27 12:51:20 56人阅读
这篇文章主要介绍了PHP实现获取FLV文件的时间,本文直接给出实现代码和使用方法,需要的朋友可以参考下 PHP如何获取FLV文件时间呢,答案是fopen文件后查看FLV文件是HEX数据,并转换为number。 代码如下: ?php functionBi...[详细]
-
Laravel中使用阿里云OSS Composer包分享
[PHP教程] 2022-07-27 12:50:40 115人阅读
这篇文章主要介绍了Laravel中使用阿里云OSS Composer包分享,本文讲解其使用方法,文件下载请前往文件中的github地址,需要的朋友可以参考下 阿里云提供了基于命名空间的 V2 版 SDK,但是文档不是很完整,使用门槛比较...[详细]
-
PHP实现的带超时功能get_headers函数
[PHP教程] 2022-07-27 12:50:03 197人阅读
这篇文章主要介绍了PHP实现的带超时功能的get_headers函数,本文直接给出实现代码,需要的朋友可以参考下 代码比较多,但是比较简单,一眼就看穿的,so,文字尽量少写了。 因为众所周知的网络原因,gavatar也开始越来...[详细]
-
Laravel框架中实现使用阿里云ACE缓存服务
[PHP教程] 2022-07-27 12:48:57 89人阅读
这篇文章主要介绍了Laravel框架中实现使用阿里云ACE缓存服务,本文扩展了一个ACE缓存驱动,以便使用阿里云ACE缓存服务,需要的朋友可以参考下 之前我写了一篇在 Laravel 4 框架中使用阿里云 OCS 缓存的文章,介绍了如何...[详细]
-
支持png透明图片的php生成缩略图类分享
[PHP教程] 2022-07-27 12:46:25 87人阅读
这篇文章主要介绍了支持png透明图片的php生成缩略图类分享,本文代码基于GD2图形库,实现支持png透明图片生成缩略图,需要的朋友可以参考下 注:此功能依赖GD2图形库 最近要用php生成缩略图,在网上找了一下,发现了这...[详细]
- 这篇文章主要介绍了Laravel 5.0 发布 新版本特性详解,...[详细]
- 计算两个日期之间的时间差需要先把两个日期转换成纪元...[详细]
- 初步使用面向对象程序设计,要掌握的就是使用面向对象...[详细]
- 每个 PHP 数组内部都有一个指针,该指针指向数组的某...[详细]
- 因为 PHP 是一个 Web 编程语言,在编程过程中难免会遇...[详细]
- PHP 中提供了 return 语句来返回函数的运行结果,其语...[详细]
- final 关键字的作用如下: 使用 final 修饰的类,不能...[详细]
- 在使用 switch 语句时应该注意以下几点: 和 if 语句...[详细]
- 这篇文章主要给大家介绍了关于PHP替换Word中变量并导...[详细]
- 这篇文章主要介绍了PHP常量DIRECTORY_SEPARATOR原理及...[详细]