-
phpcms模块开发之swfupload的用法介绍
[PHP教程] 2022-07-09 12:04:00 154人阅读
正式接触phpcms模块开发后.开发了几个功能模块.其中遇到了需要批量上传图片的问题.于是开始挖掘phpcms里面的swfupload的用法. 在phpcms里面自带的内容类型里面能够直接指定图片组.不过这样的图片组功能并不是我想用...[详细]
-
基于php权限分配的实现代码分享
[PHP教程] 2022-07-09 12:02:24 187人阅读
小编今天写下关于后台管理员权限的分配自己的思路想法 复制代码 代码如下:www.CuoXIn.com ?php /**reader * 小编的思想比较简单实现的功能 * 首先每个栏目的id号是固定不变的 然后 总管理员 * 创建个管理员之后 给该...[详细]
-
php 中目录遍历删除 函数的使用介绍
[PHP教程] 2022-07-09 12:01:25 161人阅读
小编今天没事写了目录想关的函数 包括 遍历该文件夹下的文件,目录子目录 读取当前文件下目录和文件 删除当前文件夹下的目录子目录以及文件 以上三个函数目前还不支持中文文件 中文目录 复制代码 代码如下:www.CuoXIn...[详细]
-
php无限极分类实现的两种修复方法
[PHP教程] 2022-07-09 11:57:54 61人阅读
今天写了下无限极分类 下面就把代码贴上来了 写的不怎么样。 method of classify one 复制代码 代码如下:www.CuoXIn.com ?php /* reader: 这是自己写的无限极分类实现方法 里面的编辑方法只是对分类名进行了编辑 第1...[详细]
-
基于php伪静态的实现详解
[PHP教程] 2022-07-09 11:55:43 189人阅读
基于php伪静态的实现详细介绍 1.根据配置.htaccess来实现。 先说下.htaccess文件怎么创建吧,在网站根目录下建立个记事本然后双击打开点击另存为 文件名写成 .htaccess ,保存类型选择所有文件,编码选择utf-8的编码...[详细]
-
PHP中最轻易忘记的一些知识点总结
[PHP教程] 2022-07-09 11:48:32 62人阅读
PHP中最容易忘记的一些知识点总结 1、include 和require 区别(同时include_once 和 require_once) 相同:都是可以引入别的页面 不同:include 如果出现了错误,会继续执行,require 出现错误,则会终止程序。 结论...[详细]
-
php内存不够用的处理方法
[PHP教程] 2022-07-09 11:45:53 107人阅读
再运行php程序时,会出现 Allowed memory size of 8388608 bytes exhausted (tried to allocate 1298358 bytes) 出现该错误的原因:在确保不是程序产生的原因(例如死循环),是由于php页面消耗的最大内存默认是为 8M ...[详细]
-
PHP数据类型之整数类型浮点数的详细介绍
[PHP教程] 2022-07-09 11:45:09 120人阅读
语法:整型值可以使用十进制,十六进制或八进制表示,前面可以加上可选的符号(- 或者 +)。 八进制表示数字前必须加上 0(零),十六进制表示数字前必须加上 0x。 $int1=100; //十进制 $int2=-123; //负数 $int3=01...[详细]
-
PHP基础之运算符的使用方法推荐
[PHP教程] 2022-07-09 11:28:41 191人阅读
PHP基础之运算符的使用方法 1、比较算符:参考文档 2、算术运算符:+、-、*、/、%。 3、递增/递减运算符:如$a++,$a--,++$a,--$a. 如: ?php $a=10; $b=5; $c=$a++; //先赋值,后自增。$c=$a,$a=$a+1 $d=$b--; //先...[详细]
-
PHP基础学习之步骤控制的实现分析
[PHP教程] 2022-07-09 11:27:18 117人阅读
PHP 有三大流程控制:顺序控制,分支控制,循环控制。 1、顺序控制:就是程序按顺序从上往下一步一步的执行。 2、分支控制:程序有选择的执行。又分单分支,多分支,多重分支。 a、多重分支:基本语法: if(条件表达...[详细]
- 这篇文章主要介绍了Laravel 5.0 发布 新版本特性详解,...[详细]
- 计算两个日期之间的时间差需要先把两个日期转换成纪元...[详细]
- 初步使用面向对象程序设计,要掌握的就是使用面向对象...[详细]
- 每个 PHP 数组内部都有一个指针,该指针指向数组的某...[详细]
- 因为 PHP 是一个 Web 编程语言,在编程过程中难免会遇...[详细]
- PHP 中提供了 return 语句来返回函数的运行结果,其语...[详细]
- final 关键字的作用如下: 使用 final 修饰的类,不能...[详细]
- 在使用 switch 语句时应该注意以下几点: 和 if 语句...[详细]
- 这篇文章主要给大家介绍了关于PHP替换Word中变量并导...[详细]
- 这篇文章主要介绍了PHP常量DIRECTORY_SEPARATOR原理及...[详细]