<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1018232" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1018232</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/html-php#comment-1107121</link>
    <description> &lt;p&gt;Yeah, I gathered that. Similar to when using &#039;use strict&#039; in Perl, you have to define global, local variables etc.&lt;/p&gt;
 </description>
     <pubDate>Wed, 17 Apr 2002 08:41:15 +0000</pubDate>
 <dc:creator>Wil</dc:creator>
 <guid isPermaLink="false">comment 1107121 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/html-php#comment-1107066</link>
    <description> &lt;p&gt;also... global isn&#039;t really a function, it&#039;s a declaration that defines the variables scope.&lt;/p&gt;
 </description>
     <pubDate>Tue, 16 Apr 2002 20:03:03 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1107066 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/html-php#comment-1107065</link>
    <description> &lt;p&gt;sounds like it&lt;/p&gt;
 </description>
     <pubDate>Tue, 16 Apr 2002 20:00:50 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1107065 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/html-php#comment-1107017</link>
    <description> &lt;p&gt;Are these similar to &#039;use&#039; and &#039;require&#039; in Perl? In Perl, require is pulled in when needed, where an use block is evaluated at compile time?&lt;/p&gt;
 </description>
     <pubDate>Tue, 16 Apr 2002 14:16:24 +0000</pubDate>
 <dc:creator>Wil</dc:creator>
 <guid isPermaLink="false">comment 1107017 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/html-php#comment-1107012</link>
    <description> &lt;p&gt;Because require() inserts the contents of a file before processing, it comes in handy when you need to include stuff like common variables needed for a script in that page. Thats the most common use I have for it.&lt;/p&gt;
&lt;p&gt;Otherwise, as theprofessional says, use include(). &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/wink.png&quot; title=&quot;Wink&quot; alt=&quot;Wink&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
 </description>
     <pubDate>Tue, 16 Apr 2002 14:00:28 +0000</pubDate>
 <dc:creator>Abhishek Reddy</dc:creator>
 <guid isPermaLink="false">comment 1107012 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/html-php#comment-1107001</link>
    <description> &lt;p&gt;Global is an easy one.&lt;/p&gt;
&lt;p&gt;Just use include() always unless you absolutely need to require() a file somewhere no matter what.&lt;/p&gt;
 </description>
     <pubDate>Tue, 16 Apr 2002 12:29:50 +0000</pubDate>
 <dc:creator>theprofessional</dc:creator>
 <guid isPermaLink="false">comment 1107001 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/html-php#comment-1106806</link>
    <description> &lt;p&gt;Is this the global you mean?&lt;br /&gt;
&lt;a href=&quot;http://www.php.net/manual/en/language.variables.scope.php&quot; class=&quot;bb-url&quot;&gt;http://www.php.net/manual/en/language.variables.scope.php&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;include vs require, the short version:&lt;br /&gt;
&lt;a href=&quot;http://www.php.net/manual/en/function.include.php&quot; class=&quot;bb-url&quot;&gt;include()&lt;/a&gt;&lt;br /&gt;
include inserts the source code for a file when the include() call is read. If the file cannot be included, an error will be printed an error will be printed and the script will continue.  If the include() statement is within IF statements, the file will only be included if the IF statement evaluates to true.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.php.net/manual/en/function.require.php&quot; class=&quot;bb-url&quot;&gt;require()&lt;/a&gt;&lt;br /&gt;
require() inserts the source code for the file prior to processing.  If the file cannot be inserted, the script will not continue.  If the require() call is within IF statements, the file will be required regardless of wether the IF statment evaluates to TRUE or not.&lt;/p&gt;
 </description>
     <pubDate>Sat, 13 Apr 2002 22:42:51 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1106806 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
