20

本地调好的webservice,传到服务器上后。直接用浏览器访问wsdl地址,提示“cannot modify header information”。这句话的意思是在用header方法定义网页header之前,已经有字符输出了。

刚开始按照网络上的解决方法,去修改php.ini来允许先输出别的字符后增加header(会影响性能),但并未解决我的问题。后来看到错误提示里提到”字符输出始于config/main.php:1″。难道main.php出问题了?

打开main.php,删除文档注释前的空行,问题解决了!看来先认真分析错误代码是非常重要的。

Tags:

No Responses

Leave a Response

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">