最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
使用php的编码功能-实例调用(3)
时间:2008-01-12 编辑:简简单单 来源:一聚教程网
include_once("mime.inc");
$mm = new MIME();
$to = "customer@263.net";
$subject = $mm->encode("商城","gb2312"); // 编码
$msg = "注册会员成功
";
$msg .= "会员名:wayne
";
$msg .= "密码:wayne";
$headers = "From: webmaster@263.net Content-Type: text/html; charset=gb2312 ";
mail("$to", "$subject", "$msg", "$headers");
?>
进行编码以后,中文问题解决。
$mm = new MIME();
$to = "customer@263.net";
$subject = $mm->encode("商城","gb2312"); // 编码
$msg = "注册会员成功
";
$msg .= "会员名:wayne
";
$msg .= "密码:wayne";
$headers = "From: webmaster@263.net Content-Type: text/html; charset=gb2312 ";
mail("$to", "$subject", "$msg", "$headers");
?>
进行编码以后,中文问题解决。
相关文章
- PHP导出数据超时的优化建议解读 10-31
- PHP之mysql位运算解析 10-31
- Laravel实现登录跳转功能解析 10-31
- php双向队列解读 10-31
- Laravel异常上下文解决教程 10-24
- php数组查询元素位置方法介绍 10-24