在开发一个小插件, 遇到一下问题.
new-main-var.php      //保存一些变量
new-main-setting.php
new-main-plugin.php我的原意是这样. 
//new-main-plugin.php
<?php
    include_once('new-main-setting.php');
?>
到现在为止一切正常.但是只要我在new-main-setting.php中添加. 也就是包含new-main-var.php时.
//new-main-setting.php
<?php
    include_once('new-main-var.php');
?>就会发生The plugin generated 1 characters of unexpected output during activation. If you notice “headers already sent” messages, problems with syndication feeds or other issues, try deactivating or removing this plugin.错误.有没有人熟悉的? 我要怎样写才不会发生错误. 谢谢.

解决方案 »

  1.   

    'new-main-var.php中的代码弄出来看看,不然说不准
      

  2.   

    The plugin generated 1 characters of unexpected output during activation. If you notice “headers already sent” messages, problems with syndication feeds or other issues, try deactivating or removing this plugin.
    该插件在激活过程中产生意想不到的输出1个字符。如果您发现“头已经发出”消息,与联合供稿的问题或其他问题,请尝试停用或删除这个插件。错误处理写的不错!将 new-main-var.php 中最后的 ?> 删去