<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1023730" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1023730</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/debug-help#comment-1145666</link>
    <description> &lt;p&gt;Should add __FILE__ as well.  I don&#039;t know of any projects that I have which do not include other files.&lt;/p&gt;
&lt;p&gt;Also note that the file is opened at the begining of the script, and left open untill the end.  This should only be used on a developement site, as it may present problems in a production environment (possible file locking).&lt;/p&gt;
 </description>
     <pubDate>Sat, 14 Feb 2004 05:18:45 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1145666 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/debug-help#comment-1145658</link>
    <description> &lt;p&gt;Just an update the above code. Once I tried calling &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;$debug&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;) &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;debugOut&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;__LINE__&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;,\&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;**COMMENT**\&quot;);&lt;br /&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt; from within a function, it wasn&#039;t working due to it didn&#039;t know if $debug was defined.&lt;/p&gt;
&lt;p&gt;To fix this, use the following instead: &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;$GLOBALS&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[\&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;debug\&quot;]) debugOut(__LINE__,\&quot;**COMMENT**\&quot;); &lt;br /&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt; &lt;/p&gt;
&lt;p&gt;-Greg&lt;/p&gt;
 </description>
     <pubDate>Fri, 13 Feb 2004 22:11:54 +0000</pubDate>
 <dc:creator>Greg K</dc:creator>
 <guid isPermaLink="false">comment 1145658 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
