-
剖析PHP上传自动生成缩略图及水印类
[PHP教程] 2022-06-28 09:15:26 74人阅读
思路很大一部分是原创的,但也有一些是COPY网络的,写得不够规范,还请各位大大不要见笑,同时给小弟些意见。 开始第一步: 创建文件夹,布局:annex:附件(该目录下存放上传的原图片) | smallimg:存放缩略图片| ...[详细]
-
PHP编程中PHP操作文件类
[PHP教程] 2022-06-28 09:13:58 74人阅读
发一个刚写完的文件操作类 刚才又加了两个功能,又加了注释,高手一定帮我看看哪有问题啊,谢谢 file.class.php 以下为引用的内容: ?php /** *本类为文件操作类,实现了文件的建立,写入,删除,修改,复制,移动,...[详细]
-
如何用PHP塑造动态聊天室系统
[PHP教程] 2022-06-28 09:13:20 131人阅读
这是一个简单的用PHP设计的聊天室程序,目的是通过这个程序让大家熟悉PHP如何处理表单数据的! 这个经过精心设计的web聊天室使用了从表单传递过来的变量,并且把它们处理为HTML ,然后将其写入文件。把表单和信息文...[详细]
-
分析在PHP中显示格式化的用户输入
[PHP教程] 2022-06-28 09:12:10 138人阅读
你可以在这个页面下载这个文档附带的文件,也可以在文件下载中的字符处理中下载这个文档描述如何安全显示的有格式的用户输入。我们将讨论没有经过过滤的输出的危险,给出一个安全的显示格式化输出的方法。 没有过滤...[详细]
-
解析PHP网站开发里常见的问题
[PHP教程] 2022-06-28 09:11:00 82人阅读
解析PHP网站开发中常见的问题 【1】页面之间无法传递变量 get,post,session在最新的php版本中自动全局变量是关闭的,所以要从上一页面取得提交过来得变量要使用_GET[foo],_POST[foo],_SESSION[foo]来得到 当然也可以...[详细]
-
论PDO的推广与PHP发展的关联
[PHP教程] 2022-06-28 09:10:30 106人阅读
PHP开发团队从v5.1后加入了pdo模块,他为PHP访问数据库定义了一个轻量级的、一致性的接口,它提供了一个数据访问抽象层,这样,无论你使用的是mysql、mssql或者其他的数据库,你都可以通过一样的函数执行sql操作。 ...[详细]
-
简析PHP4和PHP5的配置的异同
[PHP教程] 2022-06-28 09:09:22 95人阅读
配置php4或者php5的过程中,php4,5的配置的步骤大致一样的,但是配置内容有一些差别。在LINUX等环境下编译,一般来说,只要编译的选项正确,配置也就正确了;在windows配置则需要注意以下不同点: 1. php4ts.dll 和...[详细]
-
修复phpMyAdmin2.6以上版本数据的乱码问题
[PHP教程] 2022-06-28 09:08:31 136人阅读
在phpMyAdmin2.6以上版本因为支持多语言集,弄得我们使用phpMyAdmin管理数据库的时候,查询出来的中文都是乱码,但是在我们的PHP程序调用时却没有这些问题。 去phpMyAdmin2.6的根目录下,打开以下这个文件: 1、找到...[详细]
-
如何用php或js提取图片大小高宽尺寸
[PHP教程] 2022-06-28 09:07:47 141人阅读
以下为引用的内容: ? arr=getimagesize(images/album_01.gif); echo arr[3]; strarr=explode(/,arr[3]); //var img=document.all.img1;//获取图片 var MaxWidth=200;//设置图片宽度界限 var MaxHeight=100;//设置图...[详细]
-
php数组指针函数功能及其用法示例
[PHP教程] 2022-06-28 09:01:03 117人阅读
本文实例讲述了php数组指针函数功能及用法。分享给大家供大家参考,具体如下: 数组指针函数有reset(),prev(),current(),next(),end(),key(),each() 其中reset(),prev(),current(),next(),end(),都是只与数组的...[详细]
- 这篇文章主要介绍了Laravel 5.0 发布 新版本特性详解,...[详细]
- 计算两个日期之间的时间差需要先把两个日期转换成纪元...[详细]
- 初步使用面向对象程序设计,要掌握的就是使用面向对象...[详细]
- 每个 PHP 数组内部都有一个指针,该指针指向数组的某...[详细]
- 因为 PHP 是一个 Web 编程语言,在编程过程中难免会遇...[详细]
- PHP 中提供了 return 语句来返回函数的运行结果,其语...[详细]
- final 关键字的作用如下: 使用 final 修饰的类,不能...[详细]
- 在使用 switch 语句时应该注意以下几点: 和 if 语句...[详细]
- 这篇文章主要给大家介绍了关于PHP替换Word中变量并导...[详细]
- 这篇文章主要介绍了PHP常量DIRECTORY_SEPARATOR原理及...[详细]