-
详细学习PHP中对文件和目录的操作办法
[PHP教程] 2022-03-07 16:17:15 97人阅读
一:引论 在任何计算机设备中,文件是都是必须的对象,而在web编程中,文件的操作一直是web程序员的头疼的地方,文件的操作在cms系统中这是必须的,非常有用的,我们经常遇到生成文件目录,文件(夹)编辑等操作,现在...[详细]
-
显露照片exif信息PHP代码
[PHP教程] 2022-03-07 16:16:08 188人阅读
中文方式显示照片EXIF信息,显示图片中所略图 这东西除了一些php论坛简单显示三两信息,别人的lb5000论坛上看到过显示,asp的也有不过很久没接触看着晕。 不想重复劳动,搜过google,除了asp没找到其他开源的显示exi...[详细]
-
PHP编程中break及continue两个流程控制命令
[PHP教程] 2022-03-07 16:15:46 158人阅读
讲解一下PHP脚本编程中 break 及 continue 两个流程控制指令。 break 用来跳出目前执行的循环,如下例 以下为引用的内容: ?php $i = 0; while ($i 10) { if ($arr[$i] == stop) { break; } $i ; } ? --------------...[详细]
-
PHP空白页面常见原因及解决办法
[PHP教程] 2022-03-07 16:15:23 199人阅读
编写PHP,难免会出现错误。其实出现错误也不难解决,最难解决的是出现空白页面。大家想想看,若编写PHP出现错误,可以根据错误的提示来改正,倘若PHP什么也不给你显示,那岂不是让编写者困挠不以?下面,我就把我在...[详细]
-
有效防御PHP木马攻击的方法
[PHP教程] 2022-03-07 16:14:59 105人阅读
1、防止跳出web目录 首先修改httpd.conf,如果你只允许你的php脚本程序在web目录里操作,还可以修改httpd.conf文件限制php的操作路径。比如你的web目录是/usr/local/apache/htdocs,那么在httpd.conf里加上这么几行...[详细]
-
用PHP画一个能更换文字的按纽
[PHP教程] 2022-03-07 16:14:41 151人阅读
你总是花很多时间去做一些按纽吧,去设计一个好的按纽背景全部用它吧! 文字可以随意更换! 以下为引用的内容: ? Header( Content-type: image/gif); if(!isset($s)) $s=11; //times.tif可以是你喜欢的任何字体 $siz...[详细]
-
vim中高亮显示php代码
[PHP教程] 2022-03-07 16:14:07 191人阅读
vim是一款跨平台编辑器,可以在linux下使用,也可以在windows下使用官方网站www.vim.org 高亮显示php代码 进入vim后,在普通模式下输入如下命令,开启php代码高亮显示 :syntax enable :source $VIMRUNTIME/syntax/ph...[详细]
-
通用PHP动态变成静态HTML网页的代码
[PHP教程] 2022-03-07 16:13:36 165人阅读
最近研究PHP的一些开发技术,发现PHP有很多ASP所没有的优秀功能,可以完成一些以前无法完成的功能,例如动态生成HTML静态页面,以减少服务器CPU的负载,提高用户访问的速度。 我们知道,PHP读取MYSQL动态显示,在访...[详细]
-
PHP程序里使用session错误调试问题
[PHP教程] 2022-03-07 16:12:45 151人阅读
开发需要接触PHP,感觉上手也挺快,在调试PHP中的SESSION时总是出错。 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at XXX:2) in .php on line 3 类似错...[详细]
-
用PHP5的SimpleXML分析XML文档
[PHP教程] 2022-03-07 16:12:01 111人阅读
以下为引用的内容: messages.xml ======================================================== ?xml version=1.0 ? !--Sample XML document -- SystemMessage MessageTitleSystem Down for Maintenance/MessageTitle...[详细]
- 这篇文章主要介绍了Laravel 5.0 发布 新版本特性详解,...[详细]
- 计算两个日期之间的时间差需要先把两个日期转换成纪元...[详细]
- 初步使用面向对象程序设计,要掌握的就是使用面向对象...[详细]
- 每个 PHP 数组内部都有一个指针,该指针指向数组的某...[详细]
- 因为 PHP 是一个 Web 编程语言,在编程过程中难免会遇...[详细]
- PHP 中提供了 return 语句来返回函数的运行结果,其语...[详细]
- final 关键字的作用如下: 使用 final 修饰的类,不能...[详细]
- 在使用 switch 语句时应该注意以下几点: 和 if 语句...[详细]
- 这篇文章主要给大家介绍了关于PHP替换Word中变量并导...[详细]
- 这篇文章主要介绍了PHP常量DIRECTORY_SEPARATOR原理及...[详细]