<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1018672" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1018672</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/includerequire-redecare-function#comment-1110205</link>
    <description> &lt;p&gt;assuming these modules work in other combinations to do different things or in different circumstances, then? gotcha.&lt;/p&gt;
 </description>
     <pubDate>Sun, 09 Jun 2002 00:28:35 +0000</pubDate>
 <dc:creator>Suzanne</dc:creator>
 <guid isPermaLink="false">comment 1110205 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/includerequire-redecare-function#comment-1110194</link>
    <description> &lt;p&gt;When you modularize a program, each of your modules will include their dependencies.  Sometimes more than one module requires the same dependency... then you need a mechanism to catch this.&lt;/p&gt;
 </description>
     <pubDate>Sat, 08 Jun 2002 17:24:40 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1110194 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/includerequire-redecare-function#comment-1110176</link>
    <description> &lt;p&gt;Can someone explain (in simple terms) why you&#039;d need to include a file that&#039;s already included on every page? Please? I&#039;m quite confused now.&lt;/p&gt;
 </description>
     <pubDate>Fri, 07 Jun 2002 21:00:11 +0000</pubDate>
 <dc:creator>Suzanne</dc:creator>
 <guid isPermaLink="false">comment 1110176 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/includerequire-redecare-function#comment-1110170</link>
    <description> &lt;p&gt;in functions.php...&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;if(!&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;defined&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;FUNCTIONS_ALREADY_INCLUDED&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;)) {&lt;br /&gt;define (FUNCTIONS_ALREADY_INCLUDED&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;TRUE&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;// contents of file&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;} &lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;//END define&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
 </description>
     <pubDate>Fri, 07 Jun 2002 16:20:53 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1110170 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/includerequire-redecare-function#comment-1110147</link>
    <description> &lt;p&gt;I think it&#039;s time for example urls... (and .phps files).&lt;/p&gt;
&lt;p&gt;If you include function.php in header.php and header.php is always included in every page, you shouldn&#039;t have to do it twice.&lt;/p&gt;
 </description>
     <pubDate>Fri, 07 Jun 2002 07:02:40 +0000</pubDate>
 <dc:creator>Suzanne</dc:creator>
 <guid isPermaLink="false">comment 1110147 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/includerequire-redecare-function#comment-1110146</link>
    <description> &lt;p&gt;well, actually my problem is with the file i include in header.php.&lt;br /&gt;
u see,&lt;br /&gt;
i have 2 page, header.php and 1.php, both need to include function.php inorder to run correctly. &lt;/p&gt;
&lt;p&gt;my problem is, in header..i include function..every single page i also haveto include header. and i thought ih ave the function included in header, i dun need to include it in my 1.php, but i&#039;m wrong. my 1.php didn&#039;t run well. therefore, i have to include both function in both header and 1.php&lt;/p&gt;
 </description>
     <pubDate>Fri, 07 Jun 2002 06:03:56 +0000</pubDate>
 <dc:creator>joyce</dc:creator>
 <guid isPermaLink="false">comment 1110146 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/includerequire-redecare-function#comment-1110117</link>
    <description> &lt;p&gt;you can try something like this:&lt;/p&gt;
&lt;p&gt;in header.php define a constant like:&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;define&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;HEADER_ALREADY_INCLUDED&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;in 1.php, test to see if the header is already included:&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;if(!&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;defined&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;HEADER_ALREADY_INCLUDED&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;)) require &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;header.php&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;; &lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
 </description>
     <pubDate>Thu, 06 Jun 2002 14:42:45 +0000</pubDate>
 <dc:creator>ROB</dc:creator>
 <guid isPermaLink="false">comment 1110117 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
