-
简单学习动态网页制作PHP里的Cookies
[PHP教程] 2022-03-07 16:07:42 90人阅读
Cookie通常用来验证或辨别一个用户。 Cookie是什么呢? Cookie通常用来验证或辨别一个用户。Cookie是通过服务器发送到用户计算机中的一个小文件。每次,当相同的计算机通过浏览器请求一个页面时,原先存储的cookie也...[详细]
-
PHP技巧 解析利用PHP制作新闻系统的步骤
[PHP教程] 2022-03-07 16:07:04 183人阅读
我们可以用新闻系统来存储新闻,我们可以对新闻进行添加、删除等操作,这样减少了大家的工作量,为什么不实验一下。 首先,建立一个表。 以下为引用的内容: create table news ( n_id int(255) not null auto_incre...[详细]
-
PHP实例 用PHP完成多文件上载系统程序
[PHP教程] 2022-03-07 16:06:14 114人阅读
以下为引用的内容: ?php //多文件上载系统完整版 include(../include/common.inc); $title = 多个文件的上载程序; include(../include/header.inc); //定义允许上载文件的数目 define(UPLOAD_NO, 10); echo(p align...[详细]
-
PHP实例程序 用PHP制造登录页面程序
[PHP教程] 2022-03-07 16:05:53 104人阅读
以下为引用的内容: ?php //这个脚本是用来给用户输入口令,并判断口令是否正确的。 //如果正确则转到欢迎页面。 if ($login){ include(../include/config.inc.php3); session_start(); $right_enter=0; $query=sele...[详细]
-
PHP实例 PHP取GB2312编码字符串首字母的办法
[PHP教程] 2022-03-07 15:58:57 58人阅读
以下为引用的内容: ?php /* * @author: zhuyubing@gmail.com */ $dict=array( a=0xB0C4, b=0xB2C0, c=0xB4ED, d=0xB6E9, e=0xB7A1, f=0xB8C0, g=0xB9FD, h=0xBBF6, j=0xBFA5, k=0xC0AB, l=0xC2E7, m=0xC4C2, n=0xC5...[详细]
-
PHP实例 用PHP完成表单验证码登陆校验
[PHP教程] 2022-03-07 15:58:31 82人阅读
原理:生成一个图片,并且保存图片中显示的字符到SESSION.在登陆时判断输入的校验码是否和SESSION中校验码相同。 这是生成校验码和图片的文件checkNumber.php 以下为引用的内容: ?php session_start(); if($act == i...[详细]
-
PHP示例 email address 生成图片程序
[PHP教程] 2022-03-07 15:57:59 175人阅读
把下面的文件保存为index.php 以下为引用的内容: ? /* MailX Managment System 0.8 Beta */ header(Content-type:image/png); $mailaddress=$_GET[mailname]; $mailaddresslen=strlen($mailaddress); $mailaddressi...[详细]
-
在动态网页技术PHP5中类 CLASS 的新特点
[PHP教程] 2022-03-07 15:57:26 131人阅读
php5新添加了好多的新函数和特征,但是在目前最新的chm的手册中都没有体现,要到在线的手册中查找,烦啊! 废话不多说了,来看看php5中全新的class对比php2的class有什么新的特征。 1/ 加了访问权限的控制:使用priv...[详细]
-
详细讲解PHP的Jmai组件及发送邮件实例
[PHP教程] 2022-03-07 15:57:03 67人阅读
以下为引用的内容: % On error resume next Dim JMail, contentId Set JMail = Server.CreateObject(JMail.Message) JMail.Charset = gb2312 邮件字符集,默认为US-ASCII JMail.ISOEncodeHeaders = False 是否进行I...[详细]
-
不需要GD库的情况下实现验证码
[PHP教程] 2022-03-07 15:56:46 58人阅读
以下为引用的内容: ?php // ------------------------------------------------- //| * 文件 validate_image.php //| * 功能 实现网站登陆验证码 //| * 版本 1.0.0 //| * 日期 2005-4-1 //| * 作者 西北狼 QQ 50078...[详细]
- 这篇文章主要介绍了Laravel 5.0 发布 新版本特性详解,...[详细]
- 计算两个日期之间的时间差需要先把两个日期转换成纪元...[详细]
- 初步使用面向对象程序设计,要掌握的就是使用面向对象...[详细]
- 每个 PHP 数组内部都有一个指针,该指针指向数组的某...[详细]
- 因为 PHP 是一个 Web 编程语言,在编程过程中难免会遇...[详细]
- PHP 中提供了 return 语句来返回函数的运行结果,其语...[详细]
- final 关键字的作用如下: 使用 final 修饰的类,不能...[详细]
- 在使用 switch 语句时应该注意以下几点: 和 if 语句...[详细]
- 这篇文章主要给大家介绍了关于PHP替换Word中变量并导...[详细]
- 这篇文章主要介绍了PHP常量DIRECTORY_SEPARATOR原理及...[详细]