-
PHP伪静态_PHP动态URL静态化介绍
[PHP教程] 2022-07-07 13:18:50 179人阅读
动态URL静态化的主要目的,其一是搜索引擎优化(SEO),其二是面向用户友好。动态URL静态化是把一个动态地址转化成一个静态地址。其实,这个静态地址的内容还是从动态地址来的,只是看起来,类似一个静态地址。例如,...[详细]
-
PHP实例一个比较完善的购物车类
[PHP教程] 2022-07-07 13:14:20 117人阅读
前不久做到一个项目需要用到购物车,考虑到可能经常用到,所以把它封装成一个类,以便以后调用。你可以简单的把这个类稍微修改一下就可以用在自己的程序里了,具体使用请见。 /************************************...[详细]
-
PHP技巧PHP文件系统基本操作类
[PHP教程] 2022-07-07 13:13:34 192人阅读
/* * * ===========Z================= * QQ:118824 * MSN:snakevil_@hotmail.com * HP:http://www.snakevil.com/ * ===========Z================= * */ /** * @]Class Name[= IO * @]Class URI[= System.IO * @]Pu...[详细]
-
用动态网页技术PHP生成验证码图片的源代码
[PHP教程] 2022-07-07 13:13:13 146人阅读
文件a.php ? //checkNum.php session_start(); function random(len) { srcstr=ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789; mt_srand(); strs=; for(i=0;ilen;i++){ strs.=srcstr[mt_rand(0,35)]; } return strtoupper(s...[详细]
-
PHP利用cookie做的投票程序
[PHP教程] 2022-07-07 13:12:50 126人阅读
在开始具体的程序设计之前,我们先学习一下几个下面需要用到的重要概念和函数: 首先是cookie,我们需要用他来防止同一台机器进行重复投票。 cookie原义在美语中是小甜饼的意思,当然我们现在不是要吃饼,在这cookie...[详细]
-
PHP应用PHP在linxu下的安装与配置
[PHP教程] 2022-07-07 13:12:09 63人阅读
环境需求与准备工作 在安装 PHP 做为 WWW 服务器的一部份时,我们可以考虑用 UNIX 操作系统;或者是 Windows NT/95 等 Win32 API 的平台。当然,大部份的人都会使用 UNIX 来当作 PHP 的执行平台 (在 Windows NT 的用...[详细]
-
PHP生成缩略图失真不清晰的解决方法
[PHP教程] 2022-07-07 13:11:44 99人阅读
PHP生成缩略图失真/不清晰的解决方法 1.用imagecreatetruecolor和imageCopyreSampled函数分别取代imagecreate和imagecopyresized 2.给imagejpeg的第三个参数带上100(例:imagejpeg($ni,$toFile,100)) 建议将100设置为...[详细]
-
PHP技巧PHP中密码加密函数
[PHP教程] 2022-07-07 13:11:18 175人阅读
function ChangeMsg(msgu,msgp) { if(msgu!= msgp!=) { delmsg = md5(msgu); rname = substr(delmsg,5,1).,.substr(delmsg,7,1).,.substr(delmsg,15,1).,.substr(delmsg,17,1); rnamearray = explode(,,rname); rpas...[详细]
-
如何实现给上传图片加水印
[PHP教程] 2022-07-07 13:10:51 124人阅读
用PHP给上传图片加水印的程序是通过判断文件类型建立图形,然后把其复制到原建立的图形上,填充并建立rectangle,以备写入imagestring()或是原已经定好的图像程序当中判断水印类型:一是字符串,另是增加一个图形对...[详细]
-
PHP和JS实现普通HTTP上安全地传输密码
[PHP教程] 2022-07-07 13:10:30 196人阅读
PHP和JS实现普通HTTP上安全地传输密码 1、理论 在普通HTTP上,一般表单中的密码都是以明文方式传到服务器进行处理的。这无疑给了坏人以可乘之机!这里我们就说说怎么传输密码才是安全的!与其传输密码本身,到不如传...[详细]
- 这篇文章主要介绍了Laravel 5.0 发布 新版本特性详解,...[详细]
- 计算两个日期之间的时间差需要先把两个日期转换成纪元...[详细]
- 初步使用面向对象程序设计,要掌握的就是使用面向对象...[详细]
- 每个 PHP 数组内部都有一个指针,该指针指向数组的某...[详细]
- 因为 PHP 是一个 Web 编程语言,在编程过程中难免会遇...[详细]
- PHP 中提供了 return 语句来返回函数的运行结果,其语...[详细]
- final 关键字的作用如下: 使用 final 修饰的类,不能...[详细]
- 在使用 switch 语句时应该注意以下几点: 和 if 语句...[详细]
- 这篇文章主要给大家介绍了关于PHP替换Word中变量并导...[详细]
- 这篇文章主要介绍了PHP常量DIRECTORY_SEPARATOR原理及...[详细]