-
XSLTProcessor中registerPHPFunctions后无法调
[PHP教程] 2022-01-18 15:18:14 95人阅读
XSLT 是一个非常方便的转换 XML 的工具,PHP 里面是通过 XSLTProcessor 来实现;XSLT 中内置了许多有用的函数,同时,只需要调用 XSLTProcessor 实例的 registerPHPFunctions 方法,我们就可以在 XSLT 中直接使用 PH...[详细]
-
php gvim中文乱码分析解决方法
[PHP教程] 2022-01-18 15:17:53 127人阅读
开始研究gvim的配置文件(_vimrc),现在给大家看一下我产生乱码之前的配置,配置文件里enconding,fileeconding,fileecondings的含义: encoding: gvim 内部使用的字符编码方式,包括 vim 的 buffer (缓冲区)、菜单文本、...[详细]
-
PHP require include顺序详解
[PHP教程] 2022-01-18 15:17:22 168人阅读
在大型的web项目中, include_path是一个模块化设计的根本中的根本(当然,现在也有很多基于autoload的设计, 这个不影响本文的探讨), 但是正是因为include_path, 经常会让我们遇到一些因为没有找到正确的文件而导致的看...[详细]
-
php 安全register globals设置为TRUE的危害
[PHP教程] 2022-01-18 15:16:48 77人阅读
关于register globals设置为TRUE的危害,应该很多人看过把register globals设置为on是非常危险的,但是怎么危险法呢?应该很多新手不知道的!所以我就简单说说register globals设置为on的危害吧! 先看看下面的代码:...[详细]
-
php测试性能代码
[PHP教程] 2022-01-18 15:16:08 140人阅读
function microtime_float () { list ($usec, $sec) = explode( , microtime()); return ((float) $usec + (float) $sec); } function echotime ($name) { static $t_start = 0; $t_end = microtime_float(); if ($n...[详细]
-
php编写大型网站问题集
[PHP教程] 2022-01-18 15:15:27 141人阅读
PHP以其易用性得到迅速的推广,但易用并不是说就能用好它,实际上许多程序员用它很容易的立一个个WEB应用系统,但又有多少人仔细的考虑过他们的代码,是否容易维护、是否足够健壮、否效率足够高、是否足够安全,当PH...[详细]
-
PHP作wap开发时遇到的问题
[PHP教程] 2022-01-18 15:14:32 97人阅读
1.文件格式 首先要碰到的问题肯定是文件格式,在作web开发时,大家都是用的html或xhtml,到了wap开发时,就得用wml了.什么是wml?大家可以去查更具体的资料,我这里只是略微的提到.在我看来wml类似于xml,有非常严格的格式,...[详细]
-
利用PHP自定义错误处理器处理出错信息
[PHP教程] 2022-01-18 15:14:02 180人阅读
假如您是PHP老手,当然知道当PHP脚本出错时发生了什么事情。此时PHP解析器将在屏幕上给出错误信息,如 Fatal error: Call to undefined function on line 19 --,因此程序在此处终止。这个信息会吓到客户,他可能立...[详细]
-
PHP后门的隐藏方法测试报告
[PHP教程] 2022-01-17 13:13:34 157人阅读
最近很多朋友都在问我是否能把我那一句话木马隐藏到HTML或图片里,其实把一句话木马插入到PHP文件中就已经很隐蔽了,如果说硬是要放到 HTML文件或图片里,就接着往下看这篇的篇测试报告吧。要知道如果光把PHP语句放...[详细]
-
php5的simplexml分析错误
[PHP教程] 2022-01-17 13:13:01 60人阅读
前阵子用simplexml来解析一个rss数据源,很轻松就获得了想要的结果.不想没几天就开始报错: Warning: simplexml_load_file() [function.simplexml-load-file]: input conversion failed due to input error, bytes 0xA...[详细]
- 这篇文章主要介绍了Laravel 5.0 发布 新版本特性详解,...[详细]
- 计算两个日期之间的时间差需要先把两个日期转换成纪元...[详细]
- 初步使用面向对象程序设计,要掌握的就是使用面向对象...[详细]
- 每个 PHP 数组内部都有一个指针,该指针指向数组的某...[详细]
- 因为 PHP 是一个 Web 编程语言,在编程过程中难免会遇...[详细]
- PHP 中提供了 return 语句来返回函数的运行结果,其语...[详细]
- final 关键字的作用如下: 使用 final 修饰的类,不能...[详细]
- 在使用 switch 语句时应该注意以下几点: 和 if 语句...[详细]
- 这篇文章主要给大家介绍了关于PHP替换Word中变量并导...[详细]
- 这篇文章主要介绍了PHP常量DIRECTORY_SEPARATOR原理及...[详细]