-
php实现文件预览功能
[PHP教程] 2021-01-17 06:04:10 114人阅读
上一篇博客是,本篇是上传后图片预览和更改: 代码如下: 1.yulan.php 无标题文档 form id="sc" action="ylchuli.php" method="post" enctype="multipart/form-data" target="shangchuan" div id="yl" iframe style=...[详细]
-
php + nginx项目中的权限详解
[PHP教程] 2021-01-17 06:03:41 192人阅读
本文给大家介绍的关于php + nginx项目权限的相关内容,分享出来供大家参考学习,下面来看看详细的介绍: nginx/php-fpm 进程权限 主进程用户为启动的用户 子进程 1、nginx的用户为nginx.conf中配置的用户 2、php-fpm...[详细]
-
Yii框架实现记录日志到自定义文件的方法
[PHP教程] 2021-01-17 06:03:06 126人阅读
本篇章节讲解Yii框架实现记录日志到自定义文件的方法。供大家参考研究具体如下: 默认情况下, Yii::log($msg,$level,$category) 会把日志记录到runtime/application.log文件中 日志格式如下: [时间] - [级别] - [类...[详细]
-
Yii 2.0如何使用页面缓存方法示例
[PHP教程] 2021-01-17 06:02:32 193人阅读
前言 本文主要给大家介绍的是关于Yii2.0如何使用页面缓存的相关内容,分享出来供大家参考学习,下面来一起看看详细的介绍。 起初使用页面缓存,发现使用于含有参数的方法存在弊端,只能缓存第一次的页面,导致后面所...[详细]
-
PHP创建单例后台进程的方法示例
[PHP教程] 2021-01-17 06:01:09 71人阅读
本篇章节讲解PHP创建单例后台进程的方法。分享给大家供大家参考,具体如下: 可以通过如下语句启动一个PHP后台进程: /dev/null 2> echo $!"); nohup表示这个进程独立于创建的用户,可以以守护方式运行。 如果需要这...[详细]
-
解决Yii2邮件发送结果返回成功,但接收不到邮件
[PHP教程] 2021-01-17 05:54:52 114人阅读
前言 本文主要介绍的是关于解决Yii2邮件发送返回成功但接收不到邮件问题的相关内容,分享出来供大家参考学习,下面来看看详细的介绍: 刚刚用了一下yii邮件发送功能,虽然结果返回成功,但接收不到邮件。 配置文件代...[详细]
-
php批量删除操作(数据访问)
[PHP教程] 2021-01-17 05:53:00 154人阅读
本文实例为大家分享了php批量删除操作的具体代码,供大家参考,具体内容如下 1.批量删除页面 piliangcaozuo.php query($sql); foreach($arr as $v) { echo...[详细]
-
PHP正则删除html代码中a标签并保留标签内容的方
[PHP教程] 2021-01-17 05:43:35 112人阅读
本篇章节讲解PHP正则删除html代码中a标签并保留标签内容的方法。供大家参考研究具体如下: 一、问题: 有HTML代码如: 欢迎访问编程之家www.jb51.cc 要求正则删除a标签,同时保留a标签内容,如下: 欢迎访问编程之家...[详细]
-
php出租房数据管理及搜索页面
[PHP教程] 2021-01-17 05:36:08 108人阅读
php数据访问例子:租房信息管理,具体内容如下 1.数据库建表 2. zufangzi.php div class="jb51code" pre class="brush:xhtml;" 租房子 form action="zufangzi.php" method="post" 区域: 全选 $sqy = "select distin...[详细]
-
Yii框架创建cronjob定时任务的方法分析
[PHP教程] 2021-01-17 05:32:13 69人阅读
本篇章节讲解Yii框架创建cronjob定时任务的方法。供大家参考研究具体如下: 1. 添加环境配置 protected/config/console.php dirname(__FILE__).DIRECTORY_SEPARATOR.'..','name...[详细]
- 这篇文章主要介绍了Laravel 5.0 发布 新版本特性详解,...[详细]
- 计算两个日期之间的时间差需要先把两个日期转换成纪元...[详细]
- 初步使用面向对象程序设计,要掌握的就是使用面向对象...[详细]
- 每个 PHP 数组内部都有一个指针,该指针指向数组的某...[详细]
- 因为 PHP 是一个 Web 编程语言,在编程过程中难免会遇...[详细]
- PHP 中提供了 return 语句来返回函数的运行结果,其语...[详细]
- final 关键字的作用如下: 使用 final 修饰的类,不能...[详细]
- 在使用 switch 语句时应该注意以下几点: 和 if 语句...[详细]
- 这篇文章主要给大家介绍了关于PHP替换Word中变量并导...[详细]
- 这篇文章主要介绍了PHP常量DIRECTORY_SEPARATOR原理及...[详细]