核心:方法   我们将MIME信息头的生成,MIME段头的生成和最终的邮件消息的生成分成几个模块。方法的实现是直接从我们前面遇到的MIME基础而来的。 ?php function attach($data, $description = , $contenttype = OCTET, $encoding = BASE64, $disp = '''') { if (empty($data)) return 0; if (trim($contenttype) == '''')

Posted at 09-03-28 by 佚名 views(3)

MIME 类   在有了这些基础之后,让我们用PHP创建和实现一个MIME邮件类。在我们的PHP库函数中,已经有了编码 所必须的工具。   MIME类必须能够: 增加附件 对每一个独立的请求,对所附的数据进行编码 创建MIME段/头 生成一个包含MIME段/头的完整的邮件 将整个邮件作为字符串返回 用本地的邮件处理程序进行发送(或选择调

Posted at 09-03-28 by 佚名 views(3)

好,如何创建符合MIME的信息呢?   通过上面的一般性的描述,让我们现在看一下所谓的MIME信息到底是什么! 最简单的MIME信息   这个信息没有任何段,也就是,没有附件。然而,因为它是一个MIME消息,它必须有必要的头。 From: php@php.net To: ''Alex (the Great)'' alex@greece.net Subject: Bucephalus MIME-Version:

Posted at 09-03-28 by 佚名 views(5)

已经厌倦了给你的朋友和客户发送那些单调乏味的文本通知和信件了吗?曾经考虑过发送附件或在邮中嵌入HTML吧   答案就是MIME。接下来的几页解释了MIME的基础知识,创建符合MIME的信息,然后用一个可以工作的PHP 类结束,这个类实现了发送符合MIME邮件。注意对调用脚本,调用者等等的引用表示使用了将要开发的类的 脚本,客

Posted at 09-03-28 by 佚名 views(1)

某些网友由于线路掉线,死机等原因,不能通过正常的途径离开聊天室,造成在线人数不能正常显示!解决的方法一般为 1 建立在线人数文件,里面保存在线人的id/pass/time 其中time 为最后的更新时间 2 聊天程序正常运行时每隔一段时间更新自己的 id/pass/time 通知系统自己在线,一般可以为1-2分钟 3 系统每格一段时间扫描一次

Posted at 09-03-28 by 佚名 views(1)

?php /** * 仿OfficeXP风格的左边版面列表 * -------------------------------------------------------------------------------- * blood 于 2/19/2002 4:47:11 PM 加贴在 Visual Basic * * 徐祖宁(唠叨) 移植于 3/2/2002 * OOP 版 * */ class Frame { function run() { global $PHP_SELF; ec

Posted at 09-03-28 by 佚名 views(1)

Intended Audience Introduction register_globals How do the variables get to PHP? From the URL From a Form From a Cookie From the Environment or the Server Use the superglobals! Why are they called superglobals? Other Coding Techniques Ways to Hack Su

Posted at 09-03-28 by 佚名 views(14)

Intended Audience Introduction The Caching Imperative The Script Caching Solution The Caching Script Implementation: Avoiding Common Pitfalls Summary The Script About the Author Intended Audience This article is intended for the PHP programmer intere

Posted at 09-03-28 by 佚名 views(3)
Copyright © 2008 qcode.org All Rights Reserved PHP编程开发 由朝夕网络维护