-
yii2.0整合阿里云oss的示例代码
[PHP教程] 2021-03-05 11:54:11 176人阅读
主要思路,首先用composer下载阿里云oss的php sdk,然后自定义一个组件,就能够在全局调用阿里云oss了。 具体步骤如下: 1 到阿里云官网找到php sdk,网址为https://help.aliyun.com/document_detail/32099.html?spm...[详细]
-
PHP中使用jQuery+Ajax实现分页查询多功能操作(
[PHP教程] 2021-03-05 11:54:11 53人阅读
1.首先做主页面Ajax_pag.php 代码如下: Ajax做分页 关键字: /divtable class="table table-bordered header"gt; thead trgt; th地区代号/th th地区名称/th th父级代号/th /trgt; /thead tbody id="list"gt; /tbody...[详细]
-
PHP 进度条函数的简单实例
[PHP教程] 2021-03-05 11:49:17 164人阅读
PHP 进度条函数的简单实例 其实进度条的做法很简单的。网上的一大堆,自己写了一个,哈哈,感觉看起来很有感觉。 实例代码: 效果截图: 100%的时候。 如有疑问请留言或者到本站社区交流讨论,感谢阅读,希望能帮助...[详细]
-
PHP文件管理之实现网盘及压缩包的功能操作
[PHP教程] 2021-03-05 11:49:11 135人阅读
实现代码如下所示: 1.主页面file_zip.php 文件管理 返回上一级...[详细]
-
yii2.0整合阿里云oss删除单个文件的方法
[PHP教程] 2021-03-05 11:49:11 182人阅读
主要思路,在controller里边通过获得要删除的文件fileid,把fileid传递给model的deletefile方法进行处理,并返回处理结果。在deletefile方法里边,先根据id找到对应的文件信息,然后删除数据里边的记录和阿里云oss里...[详细]
-
弹出模态框modal的实现方法及实例
[PHP教程] 2021-03-05 11:49:11 62人阅读
弹出模态框modal的实现方法及实例 一个简单的点击列表修改按钮,弹出bootstrap模态框,修改状态传到后台php 成功 未联系 失败 如有疑问请留言或者到本站社区交流讨论,感谢阅读,希望能帮助到大家,谢谢大家对本站的...[详细]
-
PHP使用Nginx实现反向代理
[PHP教程] 2021-03-05 11:49:11 125人阅读
一、代理服务器 1、什么是代理服务器 代理服务器,客户机在发送请求时,不会直接发送给目的主机,而是先发送给代理服务器,代理服务接受客户机请求之后,再向主机发出,并接收目的主机返回的数据,存放在代理服务器...[详细]
-
PHP判断json格式是否正确的实现代码
[PHP教程] 2021-03-05 11:38:11 76人阅读
废话不多说了,直接给大家贴代码了,具体代码如下所示: "; print_r($value); echo " "; } return $value;}//校验静态资源是否存在;function my_filter($value) { $needle = ['.jpg','.jpeg','.png','.avi','.mp4',...[详细]
-
Yii2.0使用阿里云OSS的SDK上传图片、下载、删除
[PHP教程] 2021-03-05 11:38:11 192人阅读
之前从没接触过Yii,借助的各方资源来做的这个整合阿里云OSS的SDK上传图片实例,如果有不正之处请指出!前面参照了weinirumo 的介绍,大家可以自行去查看。 好了,下面开始进入主题: 准备工作:需要使用composer执...[详细]
-
PHP调用API接口实现天气查询功能的示例
[PHP教程] 2021-03-05 11:37:21 82人阅读
天气预报查询接口API,在这里我使用的是国家气象局天气预报接口 使用较多的还有:新浪天气预报接口、百度天气预报接口、google天气接口、Yahoo天气接口等等。 1、查询方式 根据地名查询各城市天气情况 2.请求URL地址...[详细]
- 这篇文章主要介绍了Laravel 5.0 发布 新版本特性详解,...[详细]
- 计算两个日期之间的时间差需要先把两个日期转换成纪元...[详细]
- 初步使用面向对象程序设计,要掌握的就是使用面向对象...[详细]
- 每个 PHP 数组内部都有一个指针,该指针指向数组的某...[详细]
- 因为 PHP 是一个 Web 编程语言,在编程过程中难免会遇...[详细]
- PHP 中提供了 return 语句来返回函数的运行结果,其语...[详细]
- final 关键字的作用如下: 使用 final 修饰的类,不能...[详细]
- 在使用 switch 语句时应该注意以下几点: 和 if 语句...[详细]
- 这篇文章主要给大家介绍了关于PHP替换Word中变量并导...[详细]
- 这篇文章主要介绍了PHP常量DIRECTORY_SEPARATOR原理及...[详细]