<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1017012" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1017012</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/cannot-redeclare-function#comment-1099172</link>
    <description> &lt;p&gt;I&#039;m guessing that header.php is also requiring global.php, and so, redeclaring stripslashesarray().  Is this right?&lt;/p&gt;
&lt;p&gt;Is global.php from vBulletin?  I&#039;m not too keen on editing their source as I&#039;m not very familiar with it.  If header.php is including global.php, make sure it&#039;s using require_once().&lt;/p&gt;
&lt;p&gt;The cannot add header error is because something has been printed to standard out (client&#039;s browser).&lt;/p&gt;
 </description>
     <pubDate>Wed, 23 Jan 2002 05:07:00 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1099172 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/cannot-redeclare-function#comment-1099157</link>
    <description> &lt;p&gt;if i put my code like this:&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;chdir&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$DOCUMENT_ROOT &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;. \&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;/forum\&quot;);&lt;br /&gt;require_once(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$DOCUMENT_ROOT&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; . \&quot;/forum/global.php\&quot;);&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$bbuserinfo&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;userid&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;==0) &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$thispage&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;=urlencode(\&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$PHP_SELF&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;\&quot;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; header(\&quot;Location:&amp;lt;a href=\&quot;http://www.certifyexpress.com/forum/usercp.php?urloverride=1&amp;amp;prevpage=\&quot; class=\&quot;bb-url\&quot;&amp;gt;http://www.certifyexpress.com/forum/usercp.php?urloverride=1&amp;amp;prevpage=&amp;lt;/a&amp;gt;\&quot;.&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$thispage&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;);&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;include_once(\&quot;../template/phpheader/header.php\&quot;);&lt;br /&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;it will check whether i&#039;m login or not, bring me to the login page and then bring me back to the page where i first in and i got this error:&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;Fatal error: Cannot redeclare stripslashesarray() in /usr/local/plesk/apache/vhosts/certifyexpress.com/httpdocs/forum/global.php on line 11&lt;/code&gt;&lt;/div&gt;&#039;&lt;/p&gt;
&lt;p&gt;and if i put my code like this:&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;include_once(\&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;../template/phpheader/header.php\&quot;);&lt;br /&gt;chdir(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$DOCUMENT_ROOT&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; . \&quot;/forum\&quot;);&lt;br /&gt;require_once(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$DOCUMENT_ROOT&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; . \&quot;/forum/global.php\&quot;);&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$bbuserinfo&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;userid&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;==0) &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$thispage&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;=urlencode(\&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$PHP_SELF&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;\&quot;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; header(\&quot;Location:&amp;lt;a href=\&quot;http://www.certifyexpress.com/forum/usercp.php?urloverride=1&amp;amp;prevpage=\&quot; class=\&quot;bb-url\&quot;&amp;gt;http://www.certifyexpress.com/forum/usercp.php?urloverride=1&amp;amp;prevpage=&amp;lt;/a&amp;gt;\&quot;.&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$thispage&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;);&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;it will not check whether i&#039;m login ornot, straight away prompt me an error.....says cannot add header.....&lt;/p&gt;
&lt;p&gt;wat can i do??&lt;/p&gt;
 </description>
     <pubDate>Wed, 23 Jan 2002 01:46:02 +0000</pubDate>
 <dc:creator>joyce</dc:creator>
 <guid isPermaLink="false">comment 1099157 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/cannot-redeclare-function#comment-1099062</link>
    <description> &lt;p&gt;try require_once() instead of require()&lt;/p&gt;
 </description>
     <pubDate>Tue, 22 Jan 2002 03:29:40 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1099062 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
