-
拿PHP自定义错误处理器处理出错信息
[PHP教程] 2022-03-30 12:56:12 65人阅读
用PHP自定义错误处理器处理出错信息,如果您是PHP老手,当然知道当PHP脚本出错时发生了什么事情。此时PHP解析器将在屏幕上给出错误信息,如 Fatal error: Call to undefined function on line 19 --,因此程序在此处...[详细]
-
聊聊PHP中汉字替换与模式匹配的问题
[PHP教程] 2022-03-30 12:55:48 93人阅读
谈PHP中汉字替换与模式匹配的问题,PHP 4.0中新添加了30个与组数有关的函数,其中一些常见的函数可以判断一个数组中是否包含某个元素,对一个数组中的元素进行计数,添加或删除数组中的元素或者对数组中的元素进行排...[详细]
-
PHP程序员不可忽视的几点精华
[PHP教程] 2022-03-30 12:55:26 73人阅读
我发现很多的PHP程序员,尤其是学习还不是很久的,都不知道PHP的精华所在。Perl当年如何在商界出名?其强大的正则表达式。而PHP呢?他是一门从Unix下发展起来的语言,当然也就继承了Perl的很多特点,同时C的优点都有。...[详细]
-
怎样PHP调用文本文件的内容
[PHP教程] 2022-03-30 12:55:03 132人阅读
如何PHP调用文本文件的内容:首先通过file函数打开服务器上的一个文本文件,返回的$myFile 就将成为这个文件操作的句柄,然后再通过循环指令,取出文件中每一行的内容并打印出来。 编程思路 首先要使用的函数为fi1e,...[详细]
-
学习PHP必备的知识和工具
[PHP教程] 2022-03-30 12:54:41 156人阅读
学习PHP必备的知识及工具: 数据库操作:PEAR,这个里边的DB库大家都知道很好用,也很耐用。准推荐。PDO,这个在PHP。INI里配置一下,应该说是很不错,很推荐。 ADODB,老同志了,大家也可以用一用,效果也还是很明...[详细]
-
怎样屏蔽PHP中的通知和警告
[PHP教程] 2022-03-30 12:54:18 124人阅读
如何屏蔽PHP中的通知和警告?警告有时可以从一些代码中删除,当代码中弹出警告提示时,用户可进行适当选择,其中包括将它们写在错误日志中,或完全忽视。而Alexander Netkachev却有不同的解决方案通过内建在PHP中的...[详细]
-
用PHP编程语言开发动态WAP网站
[PHP教程] 2022-03-30 12:54:00 167人阅读
WAP(无线通讯协议)是在数字移动电话、个人手持设备(PDA等)及计算机之间进行通讯的开放性全球标准协议。随着无线通讯的不断发展,静态的WAP页面在很多方面已经不能满足用户个性化的要求,因此开发者可以在WAP服务器端...[详细]
-
如何书写PHP代码更安全
[PHP教程] 2022-03-30 12:53:26 162人阅读
怎样书写PHP代码更安全?PHP是一个很容易学习的语言, 许多人在没有任何编程背景下学习它作为一种去增加一些互动元素到他们的网站的方法. 不幸的是,这往往意味着PHP程序员,尤其是那些较新的Web开发程序员, 并没有觉察...[详细]
-
PHP输出控制功能在简繁体转换里的应用
[PHP教程] 2022-03-30 12:52:41 148人阅读
概要:本文对PHP的输出控制功能进行了简单介绍并对其在简繁体转化中的应用给出了具体思路和实例。 一 PHP 输出控制功能介绍 PHP作为当今流行的脚本语言之一,具有编写简便,执行速度快,扩充性好等优点。PHP的输出信...[详细]
-
PHP教程 PHP编码书写规范
[PHP教程] 2022-03-30 12:50:37 130人阅读
1 文件结构 | |images |include |parameter |config |function |index images存放图片文件,include中是系统是要引用的文件,一般在parameter中存放参数文件,config中存放配置文件,function中存放方法文件,如java...[详细]
- 这篇文章主要介绍了Laravel 5.0 发布 新版本特性详解,...[详细]
- 计算两个日期之间的时间差需要先把两个日期转换成纪元...[详细]
- 初步使用面向对象程序设计,要掌握的就是使用面向对象...[详细]
- 每个 PHP 数组内部都有一个指针,该指针指向数组的某...[详细]
- 因为 PHP 是一个 Web 编程语言,在编程过程中难免会遇...[详细]
- PHP 中提供了 return 语句来返回函数的运行结果,其语...[详细]
- final 关键字的作用如下: 使用 final 修饰的类,不能...[详细]
- 在使用 switch 语句时应该注意以下几点: 和 if 语句...[详细]
- 这篇文章主要给大家介绍了关于PHP替换Word中变量并导...[详细]
- 这篇文章主要介绍了PHP常量DIRECTORY_SEPARATOR原理及...[详细]