<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1026846" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1026846</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/problem-including-files-php#comment-1160926</link>
    <description> &lt;p&gt;cheers guys, looks like it was just some lax configuration on the old server the allowed it to work like that.&lt;/p&gt;
&lt;p&gt;Abhishek,&lt;br /&gt;
yeh, we&#039;ve had a redesign of the system along OOP lines on the books for a while now but we&#039;re a volunteer project so things like that tend to get shoved to the back. Looks like we&#039;re gonna have to implement it now though &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
&lt;p&gt;cheers for your help guys.&lt;/p&gt;
 </description>
     <pubDate>Sun, 31 Oct 2004 09:21:20 +0000</pubDate>
 <dc:creator>Khanny</dc:creator>
 <guid isPermaLink="false">comment 1160926 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/problem-including-files-php#comment-1160925</link>
    <description> &lt;p&gt;Whatever it is you&#039;re doing, it might be a good idea, if you&#039;re trying to modularise it, to write it with &lt;a href=&quot;http://www.php.net/manual/en/language.oop5.basic.php&quot; class=&quot;bb-url&quot;&gt;OOP principles&lt;/a&gt;. In testInc, write your processes as a class, and in the main file, just initialise the class and pass whatever values you need.&lt;/p&gt;
 </description>
     <pubDate>Sun, 31 Oct 2004 08:41:26 +0000</pubDate>
 <dc:creator>Abhishek Reddy</dc:creator>
 <guid isPermaLink="false">comment 1160925 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/problem-including-files-php#comment-1160922</link>
    <description> &lt;p&gt;What is up is it is not finding a filename &quot;&lt;strong&gt;testInc.php?some=thing&lt;/strong&gt;&quot; Filesystems do not take query strings like URL&#039;s do.&lt;/p&gt;
&lt;p&gt;To do what it appears you are trying to do, you could do the following:&lt;/p&gt;
&lt;p&gt;-- Main File --&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;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;echo \&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;Going to use a variable named Some that equals Thing&amp;lt;br&amp;gt;\n\&quot;;&lt;br /&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$Some&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; = \&quot;Thing\&quot;;&lt;br /&gt;&amp;nbsp; include(&#039;testInc.php&#039;);&lt;br /&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;br /&gt;
-- testInc.php --&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;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;echo \&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;The value of Some is \&quot; . &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$Some&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; . \&quot;&amp;lt;br&amp;gt;\n\&quot;;&lt;br /&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;When you do an include, it takes the code of the include executes it as if it is part of the same file, so as it processes your script, it sees:&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;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;echo \&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;Going to use a variable named Some that equals Thing&amp;lt;br&amp;gt;\n\&quot;;&lt;br /&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$Some&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; = \&quot;Thing\&quot;;&lt;br /&gt;&amp;nbsp; echo \&quot;The value of Some is \&quot; . &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$Some&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; . \&quot;&amp;lt;br&amp;gt;\n\&quot;;&lt;br /&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;For more information, see &lt;a href=&quot;http://www.php.net/include&quot; class=&quot;bb-url&quot;&gt;http://www.php.net/include&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;-Greg&lt;/p&gt;
 </description>
     <pubDate>Sun, 31 Oct 2004 08:31:33 +0000</pubDate>
 <dc:creator>Greg K</dc:creator>
 <guid isPermaLink="false">comment 1160922 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
