<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1044088" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1044088</link>
    <description></description>
    <language>en</language>
          <item>
    <title>just a note of reference,</title>
    <link>https://www.webmaster-forums.net/webmasters-corner/upgrading-my-php4-script-php5#comment-1242430</link>
    <description> &lt;p&gt;just a note of reference, Greg was referring to this statement:&lt;/p&gt;
&lt;p&gt;error_reporting(E_ALL);&lt;/p&gt;
&lt;p&gt;One thing to note, you may get a bunch of notices that a variable was used before it was defined. While I prefer to never have this happen, PHP unlike some other languages will auto create a variable and set it to NULL the first time it is called if not already. &lt;/p&gt;
&lt;p&gt;However, do NOT just ignore them, check to make sure they are not variables which used to be automatically created off of things such as POST/GET/SESSION values. Some sites on PHP4 still use this either on older versions of PHP4, or later ones with the settings changed. &lt;/p&gt;
&lt;p&gt;If you come across a variable that is being used that you can&#039;t seem to find where it was defined (and from the code it appears it should be already), look for a form value, or session value by the same name.&lt;/p&gt;
&lt;p&gt;While making this change, IMO it is best to go through all the code and implement security and error checking. &lt;/p&gt;
&lt;p&gt;-Greg&lt;/p&gt;
 </description>
     <pubDate>Sat, 06 Jun 2009 15:20:55 +0000</pubDate>
 <dc:creator>Greg K</dc:creator>
 <guid isPermaLink="false">comment 1242430 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>Welcome to TWF 
Without</title>
    <link>https://www.webmaster-forums.net/webmasters-corner/upgrading-my-php4-script-php5#comment-1242420</link>
    <description> &lt;p&gt;Welcome to TWF &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;Without seeing ALL the code it&#039;s hard to say. There are some functions (etc) that will have worked in PHP4 but no longer work in PHP5 (and of course vice versa but that doesn&#039;t apply to you).&lt;/p&gt;
&lt;p&gt;&quot;In general&quot; there is likely to be none to very little you will need to change.&lt;br /&gt;
The best way forward for you is to FTP the entire site to a non-public server that is running PHP5, make sure screen error reporting is ON and set to show absolutely everything, including notices and warnings.&lt;/p&gt;
&lt;p&gt;Then go through the entire site and check everything works. If a function (etc) is specific to versions prior to PHP5, then it &quot;should&quot; put a message on the screen, with something such as:&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;Unknown function {function name} {file and line where function is used}&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;If you can&#039;t change the on screen error reporting, you will have to run through the site and then check the error log.&lt;/p&gt;
&lt;p&gt;Either log or on screen would tell you the function or whatever is causing the error and which file it is used in and even the line number in that file.&lt;/p&gt;
 </description>
     <pubDate>Sat, 06 Jun 2009 11:31:00 +0000</pubDate>
 <dc:creator>greg</dc:creator>
 <guid isPermaLink="false">comment 1242420 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
