-
WINDOWS下php5.2.4+mysql6.0+apache2.2.4+ZendO
[PHP教程] 2020-05-12 07:39:14 92人阅读
副标题#e# 第一: 装http服务器apache apache.1.jpg (43.95 KB) 2007-9-26 17:36 apache.2.jpg (55.15 KB) 2007-9-26 17:36 apache.3.jpg (64.33 KB) 2007-9-26 17:36 apache.4.jpg (41.78 KB) 2007-9-26 17:36 apac...[详细]
-
来自经典的打造简单的PHPMYSQL留言板第1/4页
[PHP教程] 2020-05-12 05:53:12 129人阅读
表一:admin 字段:id(int11)name(varchvr)password(varchvr) 表二:lo 字段:id(int11)username(varchvr)sex(varchvr)qq(varchvr)email(varchvr)info(text)ip(varchvr)submit_time(datetime) 1、conn.php(连接数据库文...[详细]
-
效率较高的php下读取文本文件的代码 原创
[PHP教程] 2020-05-11 14:30:11 136人阅读
fread:以字节位计算长度,按照指定的长度和次数读取数据,遇到结尾或完成指定长度读取后停止. fgets:整行读取,遇到回车换行或结尾停止.在文本方式时使用. 读字符串函数fgets函数的功能是从指定的文件中读一个字符串到...[详细]
-
通过PHP实现获取访问用户IP
[PHP教程] 2020-05-10 10:47:53 194人阅读
在php中自带了一个非常的简单的获取IP地址的全局变量,很多初学都获取IP都使用它了,但是对于这些我们一般用法是满足了,但是对于要求高精度这个函数还是不行的。 这个是最简单的方法,对于开了透明代理之类的是没有...[详细]
-
PHP设计模式(七)组合模式Composite实例详解【
[PHP教程] 2020-05-10 09:11:54 173人阅读
副标题#e# 在数据结构里面,树结构是很重要,我们可以把树的结构应用到设计模式里面。 例子1:就是多级树形菜单。 例子2:文件和文件夹目录 2.问题 我们可以使用简单的对象组合成复杂的对象,而这个复杂对象有可以组...[详细]
-
PHP设计模式(八)装饰器模式Decorator实例详解
[PHP教程] 2020-05-10 08:45:47 173人阅读
副标题#e# 若你从事过面向对象开发,实现给一个类或对象增加行为,使用继承机制,这是所有面向对象语言的一个基本特性。如果已经存在的一个类缺少某些方法,或者须要给方法添加更多的功能(魅力),你也许会仅仅继承...[详细]
-
PHP设计模式(九)外观模式Facade实例详解【结
[PHP教程] 2020-05-10 08:44:29 101人阅读
副标题#e# 外观模式,我们通过外观的包装,使应用程序只能看到外观对象,而不会看到具体的细节对象,这样无疑会降低应用程序的复杂度,并且提高了程序的可维护性。 例子1:一个电源总开关可以控制四盏灯、一个风扇、...[详细]
-
php输出形式实例整理
[PHP教程] 2020-05-10 08:44:08 85人阅读
在php中有5种输出形式,分别是echo、print_r、print、var_dump和die。 echo 只能输出字符串等单一数据 不能输出数据类型 不能输出数组等多种数据。 print() 只能输出字符串等单一数据 不能输出数据类型 不能输出数组...[详细]
-
php将字符串转换为数组实例讲解
[PHP教程] 2020-05-10 08:43:42 53人阅读
php将字符串转换为数组 在php中通过使用“explode函数”,将字符串转换为数组,该函数的用法为“explode(delimiter,string)”,其参数delimiter表示为边界上的分隔字符,参数string表示为输入的字符串。 explode说明...[详细]
-
php变量与字符串的增删改查操作示例
[PHP教程] 2020-05-10 08:43:13 161人阅读
php//告诉浏览器以什么编码方式解析什么类型的文档,防止中文乱码header("Content-type: text/html; charset=utf-8");// 整型的例子// 声明整型$var=123;// 输出一个或者多个字符串echo $var;//但因变量的详细信息,...[详细]
- 这篇文章主要介绍了Laravel 5.0 发布 新版本特性详解,...[详细]
- 计算两个日期之间的时间差需要先把两个日期转换成纪元...[详细]
- 初步使用面向对象程序设计,要掌握的就是使用面向对象...[详细]
- 每个 PHP 数组内部都有一个指针,该指针指向数组的某...[详细]
- 因为 PHP 是一个 Web 编程语言,在编程过程中难免会遇...[详细]
- PHP 中提供了 return 语句来返回函数的运行结果,其语...[详细]
- final 关键字的作用如下: 使用 final 修饰的类,不能...[详细]
- 在使用 switch 语句时应该注意以下几点: 和 if 语句...[详细]
- 这篇文章主要给大家介绍了关于PHP替换Word中变量并导...[详细]
- 这篇文章主要介绍了PHP常量DIRECTORY_SEPARATOR原理及...[详细]