Posts Tagged ‘php’

DEDECMS5.1UTF8升级出错,无法访问后台

星期一, 四月 7th, 2008

output started at /include/pub_charset.php:1)

出错信息提示

基本是围绕着这个.

官方论坛也有出现同样故障的难兄

Warning: session_start() [function.session-start]: Cannot send session cache limiter – headers already sent (output started at /www/users/doukoo.com/include/pub_charset.php:1) in /www/users/××××.com/include/inc_userlogin.php on line 3

Warning: Cannot modify header information – headers already sent by (output started at /www/users/××××.com/include/pub_charset.php:1) in /www/users/××××.com/dede/config.php on line 10

最终没有合理的答案

官方也没提供任何解答

最先遇到问题的地方在 后台首页

找了相关的PHP 出错信息

解决了这个问题。。

跟以前的WORDPRESS同样的问题

编码

PHP 不支持 带BOM的UTF-8

打开 pub_charset.php 保存为无BOM的版本就可以了

php判断邮箱地址是否正确

星期一, 三月 17th, 2008

判断邮箱地址

<?php
function checkEmail($inAddress)
{
return (ereg(“^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+(.[a-zA-Z0-9_-])+”,$inAddress));
}

?>

php代码获取访问者操作系统

星期一, 三月 17th, 2008

//调用方法$os=os_infor() ;

(更多…)

php代码获取访问者浏览器

星期一, 三月 17th, 2008

 //调用方法$browser=browseinfo() ;直接返回结果

(更多…)

PHP重定向的3种方法

星期一, 三月 17th, 2008

方法一:header("Location: index.php");
方法二:echo "<scrīpt>window.location ="$PHP_SELF";</scrīpt>";
方法三:echo "<META HTTP-EQUIV="Refresh" CONTENT="0URL=index.php">";

FCKeditorPHP版调用方法方法,如何使用

星期二, 二月 26th, 2008

PHP在线可视化编辑器FCKeditor的安装方法
下面是使用
(更多…)

PHP在线可视化编辑器FCKeditor的安装方法

星期二, 二月 26th, 2008

FCKeditor是sourceforge.net上面的一个开源项目,主要是实现在线网页编辑器的功能,官方网站为http: //www.fckeditor.net ,在服务器端支持ASP.Net、ASP、ClodFusion、PHP、Java等语言,并且支持IE 5 +、Mozilla 、Netscape等主流浏览器。

(更多…)

PHP获取用户操作系统

星期四, 二月 21st, 2008

PHP获取用户操作系统

(更多…)