<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.3" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: The worst PHP code in the world</title>
	<link>http://www.prodevtips.com/2008/02/25/the-worst-php-code-in-the-world/</link>
	<description>Dev related notes, tutorials and anecdotes</description>
	<pubDate>Sat, 11 Oct 2008 21:36:36 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.3</generator>
		<item>
		<title>By: Otto</title>
		<link>http://www.prodevtips.com/2008/02/25/the-worst-php-code-in-the-world/#comment-5137</link>
		<dc:creator>Otto</dc:creator>
		<pubDate>Thu, 02 Oct 2008 03:33:12 +0000</pubDate>
		<guid>http://www.prodevtips.com/2008/02/25/the-worst-php-code-in-the-world/#comment-5137</guid>
		<description>I&#39;m sitting in the office looking at a few idiots who really code like this!!&lt;br&gt;&lt;br&gt;And they tell everyone they know PHP!! Its sad but true. I&#39;m going to start a site where we can blacklist these what I like to call "Cowboy Programmers" (YEEEHAAA!!!! Lets build a system in PHP!!! YEEEHAAA!!!) because they soil the job market and ruin companies with great ideas forever.&lt;br&gt;&lt;br&gt;Also have worked on lots of projects with comments like:&lt;br&gt;//Must put search results here&lt;br&gt; - with no further code to search any database - What a joke!!&lt;br&gt;&lt;br&gt;This is the type of stuff I used to see in "sites" built by "programmers" using ASP and Access!! ROFL!!&lt;br&gt;&lt;br&gt;I started coding when I was 11. I taught myself from books (GW Basic). I can not relate to you guys who say your code used to look like that, sorry. So I&#39;ll just say I have never done anything so idiotic. Its just easier to write an HTML site than to try and work with that drivel!!&lt;br&gt;&lt;br&gt;The best part is how surprised the poor site owner seems to be. LMFAO!! "Really?" - Yes. You got screwed, man! Sorry to be the bearer of bad news!</description>
		<content:encoded><![CDATA[<p>I&#39;m sitting in the office looking at a few idiots who really code like this!!</p>
<p>And they tell everyone they know PHP!! Its sad but true. I&#39;m going to start a site where we can blacklist these what I like to call &#8220;Cowboy Programmers&#8221; (YEEEHAAA!!!! Lets build a system in PHP!!! YEEEHAAA!!!) because they soil the job market and ruin companies with great ideas forever.</p>
<p>Also have worked on lots of projects with comments like:<br />//Must put search results here<br /> - with no further code to search any database - What a joke!!</p>
<p>This is the type of stuff I used to see in &#8220;sites&#8221; built by &#8220;programmers&#8221; using ASP and Access!! ROFL!!</p>
<p>I started coding when I was 11. I taught myself from books (GW Basic). I can not relate to you guys who say your code used to look like that, sorry. So I&#39;ll just say I have never done anything so idiotic. Its just easier to write an HTML site than to try and work with that drivel!!</p>
<p>The best part is how surprised the poor site owner seems to be. LMFAO!! &#8220;Really?&#8221; - Yes. You got screwed, man! Sorry to be the bearer of bad news!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dale</title>
		<link>http://www.prodevtips.com/2008/02/25/the-worst-php-code-in-the-world/#comment-4406</link>
		<dc:creator>Dale</dc:creator>
		<pubDate>Fri, 26 Sep 2008 07:00:31 +0000</pubDate>
		<guid>http://www.prodevtips.com/2008/02/25/the-worst-php-code-in-the-world/#comment-4406</guid>
		<description>Oh my... and I thought my code was bad!&lt;br&gt;&lt;br&gt;Though mine is messy and bad, it still works fine, but not as messy as that above. That just takes the p...</description>
		<content:encoded><![CDATA[<p>Oh my&#8230; and I thought my code was bad!</p>
<p>Though mine is messy and bad, it still works fine, but not as messy as that above. That just takes the p&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Henrik</title>
		<link>http://www.prodevtips.com/2008/02/25/the-worst-php-code-in-the-world/#comment-3608</link>
		<dc:creator>Henrik</dc:creator>
		<pubDate>Thu, 18 Sep 2008 02:24:40 +0000</pubDate>
		<guid>http://www.prodevtips.com/2008/02/25/the-worst-php-code-in-the-world/#comment-3608</guid>
		<description>I wish it was just bullshit but it&#39;s not. The cleanup job is ongoing as we speak. The DB was 1.5GB at the time of writing, I don&#39;t even want to know what it is now...</description>
		<content:encoded><![CDATA[<p>I wish it was just bullshit but it&#39;s not. The cleanup job is ongoing as we speak. The DB was 1.5GB at the time of writing, I don&#39;t even want to know what it is now&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ray</title>
		<link>http://www.prodevtips.com/2008/02/25/the-worst-php-code-in-the-world/#comment-3572</link>
		<dc:creator>Ray</dc:creator>
		<pubDate>Wed, 17 Sep 2008 13:39:20 +0000</pubDate>
		<guid>http://www.prodevtips.com/2008/02/25/the-worst-php-code-in-the-world/#comment-3572</guid>
		<description>lol, good one. You dont see many of these related to coding its usually hardware helpdesks and some numpty that cant switch on a PC.&lt;br&gt;&lt;br&gt;Working with someone elses code is a nightmare, especially if they really havent got a clue. I assume this was a true story? If so what size where the DB date and click logs, lol.&lt;br&gt;&lt;br&gt;I especially like the end and those immortal words....&lt;br&gt;&lt;br&gt;    "I need a Chang, a big one" - usually helps.</description>
		<content:encoded><![CDATA[<p>lol, good one. You dont see many of these related to coding its usually hardware helpdesks and some numpty that cant switch on a PC.</p>
<p>Working with someone elses code is a nightmare, especially if they really havent got a clue. I assume this was a true story? If so what size where the DB date and click logs, lol.</p>
<p>I especially like the end and those immortal words&#8230;.</p>
<p>    &#8220;I need a Chang, a big one&#8221; - usually helps.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: R</title>
		<link>http://www.prodevtips.com/2008/02/25/the-worst-php-code-in-the-world/#comment-1103</link>
		<dc:creator>R</dc:creator>
		<pubDate>Fri, 18 Jul 2008 09:54:19 +0000</pubDate>
		<guid>http://www.prodevtips.com/2008/02/25/the-worst-php-code-in-the-world/#comment-1103</guid>
		<description>@peecs&lt;br&gt;&lt;br&gt;Thats so pretty...my favorite is:&lt;br&gt;&lt;br&gt;// Please do not touch my code.&lt;br&gt;&lt;br&gt;to which my answer would be:&lt;br&gt;&lt;br&gt;thank you&lt;br&gt;&lt;br&gt;;) But looking back, i got loads of old code thats not too pretty, probably those guys improved too.&lt;br&gt;&lt;br&gt;Love</description>
		<content:encoded><![CDATA[<p>@peecs</p>
<p>Thats so pretty&#8230;my favorite is:</p>
<p>// Please do not touch my code.</p>
<p>to which my answer would be:</p>
<p>thank you</p>
<p> <img src='http://www.prodevtips.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> But looking back, i got loads of old code thats not too pretty, probably those guys improved too.</p>
<p>Love</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: R</title>
		<link>http://www.prodevtips.com/2008/02/25/the-worst-php-code-in-the-world/#comment-985</link>
		<dc:creator>R</dc:creator>
		<pubDate>Fri, 18 Jul 2008 08:54:19 +0000</pubDate>
		<guid>http://www.prodevtips.com/2008/02/25/the-worst-php-code-in-the-world/#comment-985</guid>
		<description>@peecs

Thats so pretty...my favorite is:

// Please do not touch my code.

to which my answer would be:

thank you

;) But looking back, i got loads of old code thats not too pretty, probably those guys improved too.

Love</description>
		<content:encoded><![CDATA[<p>@peecs</p>
<p>Thats so pretty&#8230;my favorite is:</p>
<p>// Please do not touch my code.</p>
<p>to which my answer would be:</p>
<p>thank you</p>
<p> <img src='http://www.prodevtips.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> But looking back, i got loads of old code thats not too pretty, probably those guys improved too.</p>
<p>Love</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Heron</title>
		<link>http://www.prodevtips.com/2008/02/25/the-worst-php-code-in-the-world/#comment-968</link>
		<dc:creator>Heron</dc:creator>
		<pubDate>Thu, 10 Jul 2008 12:14:06 +0000</pubDate>
		<guid>http://www.prodevtips.com/2008/02/25/the-worst-php-code-in-the-world/#comment-968</guid>
		<description>Say NO for digital inclusion!

Probably made by someone's nephew

lol</description>
		<content:encoded><![CDATA[<p>Say NO for digital inclusion!</p>
<p>Probably made by someone&#8217;s nephew</p>
<p>lol</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peec</title>
		<link>http://www.prodevtips.com/2008/02/25/the-worst-php-code-in-the-world/#comment-1102</link>
		<dc:creator>Peec</dc:creator>
		<pubDate>Thu, 29 May 2008 10:49:02 +0000</pubDate>
		<guid>http://www.prodevtips.com/2008/02/25/the-worst-php-code-in-the-world/#comment-1102</guid>
		<description>Lol that was funny. &lt;br&gt;I found this snippet , pretty funny, i still try figure why to use this code when he could use pure html...&lt;br&gt;&lt;br&gt;&#60;?php&lt;br&gt;    // DYNAMIC Product list for my products.!&lt;br&gt;    // Based on the General Publci Liesencec!!!!!!!!!!!!!!!!&lt;br&gt;    // Please do not touch my code. &lt;br&gt;                                                      echo "";&lt;br&gt;&lt;br&gt;                   echo "";&lt;br&gt;&lt;br&gt;// DYNAMIC ARRAY OF MY TABLE HEADERS&lt;br&gt;    $array[0][key] = 0;&lt;br&gt;  $array[0][Value] = Price;&lt;br&gt;    $array[1][key] = 1;&lt;br&gt;      $array[1][Value] = ID;&lt;br&gt;  $array[2][key] = 2;&lt;br&gt;    $array[2][Value] = Name;&lt;br&gt;      $array[3][key] = 3;&lt;br&gt;    $array[3][Value] = Type;&lt;br&gt;                       $array[4][key] = 4;&lt;br&gt;    $array[4][Value] = Description;&lt;br&gt;           $array[5][key] = 5;&lt;br&gt; $array[5][Value] = Weight;&lt;br&gt;    $array[6][key] = 6;&lt;br&gt;      $array[6][Value] = Code;&lt;br&gt;          $array[7][key] = 7;&lt;br&gt;    $array[7][Value] = Product;&lt;br&gt;        $array[8][key] = 8;&lt;br&gt;    $array[8][Value] = MoneyCurrency;&lt;br&gt;          $array[9][key] = 9;&lt;br&gt;  $array[9][Value] = Paymentmethod;&lt;br&gt;                            $array[10][key] = 10;&lt;br&gt;    $array[10][Value] = PayPal;&lt;br&gt;&lt;br&gt;&lt;br&gt;if ($array[10][Value] == PayPal){&lt;br&gt;&lt;br&gt;                function addPayPal(){&lt;br&gt;                    return "PAYPAL OK";&lt;br&gt;                }&lt;br&gt;}&lt;br&gt;&lt;br&gt;echo "&lt;br&gt;&lt;br&gt;    (ID: $array[0][key])-$array[0][value]&lt;br&gt;    (ID: $array[1][key])-$array[1][value]&lt;br&gt;    (ID: $array[2][key])-$array[2][value]&lt;br&gt;    (ID: $array[3][key])-$array[3][value]&lt;br&gt;    (ID: $array[4][key])-$array[4][value]&lt;br&gt;    (ID: $array[5][key])-$array[5][value]&lt;br&gt;    (ID: $array[6][key])-$array[6][value]&lt;br&gt;    (ID: $array[7][key])-$array[7][value]&lt;br&gt;    (ID: $array[8][key])-$array[8][value]&lt;br&gt;    (ID: $array[9][key])-$array[9][value]&lt;br&gt;    (ID: $array[10][key])-$array[10][value]&lt;br&gt;&lt;br&gt;&lt;br&gt;";&lt;br&gt;&lt;br&gt;/*&lt;br&gt;&lt;br&gt;&lt;br&gt; TODO: Put in the list of items here in table tags&lt;br&gt;*/&lt;br&gt;&lt;br&gt;&lt;br&gt;echo "";&lt;br&gt;&lt;br&gt; echo "";&lt;br&gt;&lt;br&gt;?&#62;</description>
		<content:encoded><![CDATA[<p>Lol that was funny. <br />I found this snippet , pretty funny, i still try figure why to use this code when he could use pure html&#8230;</p>
<p>&lt;?php<br />    // DYNAMIC Product list for my products.!<br />    // Based on the General Publci Liesencec!!!!!!!!!!!!!!!!<br />    // Please do not touch my code. <br />                                                      echo &#8220;&#8221;;</p>
<p>                   echo &#8220;&#8221;;</p>
<p>// DYNAMIC ARRAY OF MY TABLE HEADERS<br />    $array[0][key] = 0;<br />  $array[0][Value] = Price;<br />    $array[1][key] = 1;<br />      $array[1][Value] = ID;<br />  $array[2][key] = 2;<br />    $array[2][Value] = Name;<br />      $array[3][key] = 3;<br />    $array[3][Value] = Type;<br />                       $array[4][key] = 4;<br />    $array[4][Value] = Description;<br />           $array[5][key] = 5;<br /> $array[5][Value] = Weight;<br />    $array[6][key] = 6;<br />      $array[6][Value] = Code;<br />          $array[7][key] = 7;<br />    $array[7][Value] = Product;<br />        $array[8][key] = 8;<br />    $array[8][Value] = MoneyCurrency;<br />          $array[9][key] = 9;<br />  $array[9][Value] = Paymentmethod;<br />                            $array[10][key] = 10;<br />    $array[10][Value] = PayPal;</p>
<p>if ($array[10][Value] == PayPal){</p>
<p>                function addPayPal(){<br />                    return &#8220;PAYPAL OK&#8221;;<br />                }<br />}</p>
<p>echo &#8220;</p>
<p>    (ID: $array[0][key])-$array[0][value]<br />    (ID: $array[1][key])-$array[1][value]<br />    (ID: $array[2][key])-$array[2][value]<br />    (ID: $array[3][key])-$array[3][value]<br />    (ID: $array[4][key])-$array[4][value]<br />    (ID: $array[5][key])-$array[5][value]<br />    (ID: $array[6][key])-$array[6][value]<br />    (ID: $array[7][key])-$array[7][value]<br />    (ID: $array[8][key])-$array[8][value]<br />    (ID: $array[9][key])-$array[9][value]<br />    (ID: $array[10][key])-$array[10][value]</p>
<p>&#8220;;</p>
<p>/*</p>
<p> TODO: Put in the list of items here in table tags<br />*/</p>
<p>echo &#8220;&#8221;;</p>
<p> echo &#8220;&#8221;;</p>
<p>?&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peec</title>
		<link>http://www.prodevtips.com/2008/02/25/the-worst-php-code-in-the-world/#comment-899</link>
		<dc:creator>Peec</dc:creator>
		<pubDate>Thu, 29 May 2008 09:49:02 +0000</pubDate>
		<guid>http://www.prodevtips.com/2008/02/25/the-worst-php-code-in-the-world/#comment-899</guid>
		<description>Lol that was funny. 
I found this snippet , pretty funny, i still try figure why to use this code when he could use pure html...

&#60;?php
    // DYNAMIC Product list for my products.!
    // Based on the General Publci Liesencec!!!!!!!!!!!!!!!!
    // Please do not touch my code. 
                                                      echo "";

                   echo "";

// DYNAMIC ARRAY OF MY TABLE HEADERS
    $array[0][key] = 0;
  $array[0][Value] = Price;
    $array[1][key] = 1;
      $array[1][Value] = ID;
  $array[2][key] = 2;
    $array[2][Value] = Name;
      $array[3][key] = 3;
    $array[3][Value] = Type;
                       $array[4][key] = 4;
    $array[4][Value] = Description;
           $array[5][key] = 5;
 $array[5][Value] = Weight;
    $array[6][key] = 6;
      $array[6][Value] = Code;
          $array[7][key] = 7;
    $array[7][Value] = Product;
        $array[8][key] = 8;
    $array[8][Value] = MoneyCurrency;
          $array[9][key] = 9;
  $array[9][Value] = Paymentmethod;
                            $array[10][key] = 10;
    $array[10][Value] = PayPal;


if ($array[10][Value] == PayPal){

                function addPayPal(){
                    return "PAYPAL OK";
                }
}

echo "

    (ID: $array[0][key])-$array[0][value]
    (ID: $array[1][key])-$array[1][value]
    (ID: $array[2][key])-$array[2][value]
    (ID: $array[3][key])-$array[3][value]
    (ID: $array[4][key])-$array[4][value]
    (ID: $array[5][key])-$array[5][value]
    (ID: $array[6][key])-$array[6][value]
    (ID: $array[7][key])-$array[7][value]
    (ID: $array[8][key])-$array[8][value]
    (ID: $array[9][key])-$array[9][value]
    (ID: $array[10][key])-$array[10][value]


";

/*


 TODO: Put in the list of items here in table tags
*/


echo "";

 echo "";

?&#62;</description>
		<content:encoded><![CDATA[<p>Lol that was funny.<br />
I found this snippet , pretty funny, i still try figure why to use this code when he could use pure html&#8230;</p>
<p>&lt;?php<br />
    // DYNAMIC Product list for my products.!<br />
    // Based on the General Publci Liesencec!!!!!!!!!!!!!!!!<br />
    // Please do not touch my code.<br />
                                                      echo &#8220;&#8221;;</p>
<p>                   echo &#8220;&#8221;;</p>
<p>// DYNAMIC ARRAY OF MY TABLE HEADERS<br />
    $array[0][key] = 0;<br />
  $array[0][Value] = Price;<br />
    $array[1][key] = 1;<br />
      $array[1][Value] = ID;<br />
  $array[2][key] = 2;<br />
    $array[2][Value] = Name;<br />
      $array[3][key] = 3;<br />
    $array[3][Value] = Type;<br />
                       $array[4][key] = 4;<br />
    $array[4][Value] = Description;<br />
           $array[5][key] = 5;<br />
 $array[5][Value] = Weight;<br />
    $array[6][key] = 6;<br />
      $array[6][Value] = Code;<br />
          $array[7][key] = 7;<br />
    $array[7][Value] = Product;<br />
        $array[8][key] = 8;<br />
    $array[8][Value] = MoneyCurrency;<br />
          $array[9][key] = 9;<br />
  $array[9][Value] = Paymentmethod;<br />
                            $array[10][key] = 10;<br />
    $array[10][Value] = PayPal;</p>
<p>if ($array[10][Value] == PayPal){</p>
<p>                function addPayPal(){<br />
                    return &#8220;PAYPAL OK&#8221;;<br />
                }<br />
}</p>
<p>echo &#8221;</p>
<p>    (ID: $array[0][key])-$array[0][value]<br />
    (ID: $array[1][key])-$array[1][value]<br />
    (ID: $array[2][key])-$array[2][value]<br />
    (ID: $array[3][key])-$array[3][value]<br />
    (ID: $array[4][key])-$array[4][value]<br />
    (ID: $array[5][key])-$array[5][value]<br />
    (ID: $array[6][key])-$array[6][value]<br />
    (ID: $array[7][key])-$array[7][value]<br />
    (ID: $array[8][key])-$array[8][value]<br />
    (ID: $array[9][key])-$array[9][value]<br />
    (ID: $array[10][key])-$array[10][value]</p>
<p>&#8220;;</p>
<p>/*</p>
<p> TODO: Put in the list of items here in table tags<br />
*/</p>
<p>echo &#8220;&#8221;;</p>
<p> echo &#8220;&#8221;;</p>
<p>?&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Henrik</title>
		<link>http://www.prodevtips.com/2008/02/25/the-worst-php-code-in-the-world/#comment-784</link>
		<dc:creator>Henrik</dc:creator>
		<pubDate>Fri, 28 Mar 2008 13:17:28 +0000</pubDate>
		<guid>http://www.prodevtips.com/2008/02/25/the-worst-php-code-in-the-world/#comment-784</guid>
		<description>GNUb: Interesting observation, I'll definitely check this out. If you're right then these two softwares are doing a lot of damage on an incalculable scale.</description>
		<content:encoded><![CDATA[<p>GNUb: Interesting observation, I&#8217;ll definitely check this out. If you&#8217;re right then these two softwares are doing a lot of damage on an incalculable scale.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
