<?xml version="1.0" encoding="UTF-8"?> <rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
><channel><title>Aaron Toponce &#187; PHP</title> <atom:link href="http://pthree.org/category/php/feed/" rel="self" type="application/rss+xml" /><link>http://pthree.org</link> <description>Linux.  GNU.  Freedom.</description> <lastBuildDate>Wed, 01 Sep 2010 22:04:20 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.1-alpha</generator> <item><title>Poll: First Programming Language?</title><link>http://pthree.org/2007/03/13/poll-first-programming-language/</link> <comments>http://pthree.org/2007/03/13/poll-first-programming-language/#comments</comments> <pubDate>Tue, 13 Mar 2007 16:47:19 +0000</pubDate> <dc:creator>Aaron</dc:creator> <category><![CDATA[PHP]]></category> <category><![CDATA[Perl]]></category> <category><![CDATA[Python]]></category> <category><![CDATA[Ruby]]></category> <category><![CDATA[Scripting]]></category><guid
isPermaLink="false">http://www.pthree.org/2007/03/13/poll-first-programming-language/</guid> <description><![CDATA[My coworker asked me this question, and began asking a few others in a couple IRC channels. So, I thought I&#8217;d extend it to my blog, and the planets that I syndicate. I added as many choices as I could hoping to see a wide array of votes. I added a few newer languages for [...]]]></description> <content:encoded><![CDATA[<p>My coworker asked me this question, and began asking a few others in a couple IRC channels.  So, I thought I&#8217;d extend it to my blog, and the planets that I syndicate.  I added as many choices as I could hoping to see a wide array of votes.  I added a few newer languages for the younger audience.</p><p>For me, my first language that I sat down and learned in a formal setting was Java.  However, I had TI, Casio, and HP calculators, as well as an Atari 800 that I would fiddle with, and program.  So, Basic was really the first language that I toyed with.  I just never sat down, and took the time to &#8220;learn&#8221; it.</p><p>So, for all the programmers, coders, script kiddies and developers out there, what is the 1st programming language that you learned?  If applicable, leave a comment specifying the system that you learned the language on.</p><div><div
class='democracy'> <strong
class="poll-question">What was the 1st programming language that you learned?</strong><div
class='dem-results'><form
action='http://pthree.org/wp-content/plugins/democracy/democracy.php' onsubmit='return dem_Vote(this)'><ul><li> <input
type='radio' id='dem-choice-19' value='19' name='dem_poll_4' /> <label
for='dem-choice-19'>Basic</label></li><li> <input
type='radio' id='dem-choice-20' value='20' name='dem_poll_4' /> <label
for='dem-choice-20'>Pascal</label></li><li> <input
type='radio' id='dem-choice-21' value='21' name='dem_poll_4' /> <label
for='dem-choice-21'>C</label></li><li> <input
type='radio' id='dem-choice-22' value='22' name='dem_poll_4' /> <label
for='dem-choice-22'>Perl</label></li><li> <input
type='radio' id='dem-choice-23' value='23' name='dem_poll_4' /> <label
for='dem-choice-23'>Lisp</label></li><li> <input
type='radio' id='dem-choice-24' value='24' name='dem_poll_4' /> <label
for='dem-choice-24'>Fortran</label></li><li> <input
type='radio' id='dem-choice-25' value='25' name='dem_poll_4' /> <label
for='dem-choice-25'>Assembly</label></li><li> <input
type='radio' id='dem-choice-26' value='26' name='dem_poll_4' /> <label
for='dem-choice-26'>PHP</label></li><li> <input
type='radio' id='dem-choice-27' value='27' name='dem_poll_4' /> <label
for='dem-choice-27'>ASP / ASP.NET</label></li><li> <input
type='radio' id='dem-choice-28' value='28' name='dem_poll_4' /> <label
for='dem-choice-28'>C++</label></li><li> <input
type='radio' id='dem-choice-29' value='29' name='dem_poll_4' /> <label
for='dem-choice-29'>Python</label></li><li> <input
type='radio' id='dem-choice-30' value='30' name='dem_poll_4' /> <label
for='dem-choice-30'>Java</label></li><li> <input
type='radio' id='dem-choice-31' value='31' name='dem_poll_4' /> <label
for='dem-choice-31'>sh / csh / bash</label></li><li> <input
type='radio' id='dem-choice-32' value='32' name='dem_poll_4' /> <label
for='dem-choice-32'>Ruby</label></li><li> <input
type='radio' id='dem-choice-33' value='33' name='dem_poll_4' /> <label
for='dem-choice-33'>Other</label></li></ul> <input
type='hidden' name='dem_poll_id' value='4' /> <input
type='hidden' name='dem_action' value='vote' /> <input
type='submit' class='dem-vote-button' value='Vote' /> <a
href='/category/php/feed/?dem_action=view&amp;dem_poll_id=4' onclick='return dem_getVotes("http://pthree.org/wp-content/plugins/democracy/democracy.php?dem_action=view&amp;dem_poll_id=4", this)' rel='nofollow' class='dem-vote-link'>View Results</a></form></div></div></div> ]]></content:encoded> <wfw:commentRss>http://pthree.org/2007/03/13/poll-first-programming-language/feed/</wfw:commentRss> <slash:comments>46</slash:comments> </item> <item><title>&#8220;We&#8217;re Going In A New Direction&#8221;</title><link>http://pthree.org/2006/12/16/were-going-in-a-new-direction/</link> <comments>http://pthree.org/2006/12/16/were-going-in-a-new-direction/#comments</comments> <pubDate>Sat, 16 Dec 2006 18:30:06 +0000</pubDate> <dc:creator>Aaron</dc:creator> <category><![CDATA[PHP]]></category> <category><![CDATA[Perl]]></category> <category><![CDATA[Python]]></category><guid
isPermaLink="false">http://www.pthree.org/2006/12/16/were-going-in-a-new-direction/</guid> <description><![CDATA[Looking back at the archives of this blog, it&#8217;s overall theme and vibrancy has changed throughout the months, and honestly, I don&#8217;t like where it&#8217;s landed. So, this blog is taking a new turn and revisiting it&#8217;s roots. The initial reason this blog was put up, back in September 2005, was to provide an archive [...]]]></description> <content:encoded><![CDATA[<p>Looking back at the archives of this blog, it&#8217;s overall theme and vibrancy has changed throughout the months, and honestly, I don&#8217;t like where it&#8217;s landed.  So, this blog is taking a new turn and revisiting it&#8217;s roots.</p><p>The initial reason this blog was put up, back in September 2005, was to provide an archive to <strong>P</strong>erl, <strong>P</strong>ython and <strong>P</strong>HP (thus, the &#8220;Pthree&#8221;).   It was to take a look at those languages from a scripting point of view.  Being fairly new in all 3, I thought this would provide great tutorials to those languages for those who are also new to those languages.  More importantly, it was to keep me working with those languages to improve my programming prowess.  Well, it took a different direction, and it didn&#8217;t take long either.</p><p>I&#8217;d like to go back to what this blog was initially designed for, and provide my experience in looking at those three languages.  However, I admit that I am intimidated by the expertise of those out in the &#8220;real world&#8221;.  I fear that my experiences will be ridiculed by those of greater experience and knowledge.  However, I&#8217;m going to take a step in the dark, and brave the journey.  Starting tomorrow, the overall content of the blog will be in respects to Perl, Python and PHP with touches of Ruby and Bash all on GNU/Linux systems, primarily Ubuntu.  Of course, comments are always open, and I encourage those of higher knowledge to help me identify what to fix or improve with my code.  I plan to have a post up per day at a minimum.</p><p>This means that I&#8217;ll need a good syntax highlighter for my blog.  I have been using <a
href="http://qbnz.com/highlighter/">Geshi</a>, and like it so far, but it needs a little tweaking.  If anyone knows of a solid syntax highlighter, which cover the above languages, for the WordPress platform, I&#8217;m all ears.</p><p>I hope you enjoy the direction this blog takes.</p> ]]></content:encoded> <wfw:commentRss>http://pthree.org/2006/12/16/were-going-in-a-new-direction/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>Linux Is Fun and Stuff, but&#8230;</title><link>http://pthree.org/2006/02/14/linux-is-fun-and-stuff-but/</link> <comments>http://pthree.org/2006/02/14/linux-is-fun-and-stuff-but/#comments</comments> <pubDate>Tue, 14 Feb 2006 15:17:58 +0000</pubDate> <dc:creator>Aaron</dc:creator> <category><![CDATA[Apache]]></category> <category><![CDATA[Databases]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[PHP]]></category> <category><![CDATA[Ubuntu]]></category> <category><![CDATA[Wordpress]]></category><guid
isPermaLink="false">http://www.pthree.org/2006/02/14/linux-is-fun-and-stuff-but/</guid> <description><![CDATA[&#8230;setting up a Linux server, and evern worse, being the system administrator is a pain in the butt!!!111!!!11!one Okay, here&#8217;s the thing.  I am now hosting the OALUG site on my Ubuntu web server.  No big deal.  I am hosting 3 other sites as well.  Being a web admin is not that bad.  Lately, however, [...]]]></description> <content:encoded><![CDATA[<p>&#8230;setting up a Linux server, and evern worse, being the system administrator is a pain in the butt!!!111!!!11!one</p><p>Okay, here&#8217;s the thing.  I am now hosting the OALUG site on my Ubuntu web server.  No big deal.  I am hosting 3 other sites as well.  Being a web admin is not that bad.  Lately, however, I need to set up a mail and DNS server for the OALUG group.  I&#8217;ll get to that in another post as to why.</p><p>First, I asked a friend what packages I needed and what needed to be done, as he has done it before.  He gave me the link to an excellent howto, and for the most part, everything went smoothly, until I began installing packages I already had installed, like MySQL.  Don&#8217;t ask.</p><p>Everything started breaking.  First it was MySQL, then PHP, then Apache2.  Then, after updating the repositories in my source.lst file, 280 packages broke, including the Linux kernel, the Ubuntu desktop, and a top more.</p><p>As you can see, MySQL, PHP and Apache2 are working just fine now, I hope (I&#8217;ll really find out if this post doesn&#8217;t submit).  All the packages that I broke, I have fixed.  But I was up until 2:30 in the freaking morning fixing them.  And that was before I even had the chance to get my web server as it was before all this mess.</p><p>Now, before all you Microsoft advocates come out of the woodwork saying, &#8220;We told you so Aaron.  Windows is easier and less cryptic to use than Linux&#8221;, I have to say that I have learned <em>a ton</em>.  And, despite the lack of sleep, the 300 new gray hairs, and ulcers that I developed, it was actullay, in an odd sort of way, fun.  I got to see deep inside the server.  I edited config files, changed all sorts of permissions, added, removed and readded packages, and really got to know a lot better how my Linux server works.  I wouldn&#8217;t trade that for an easy GUI that handles everything for me.</p><p>Am I finished?  No, I still have a little more to go.  And I will probably break more packages on the way, but, I will learn more than if I purchased a program to do to the job for me.  And I will be more qualified as a Linux/UNIX system admin.  I would never apply for such a job.  The stress would kill me, but my qualifications have just jumped through the roof.</p> ]]></content:encoded> <wfw:commentRss>http://pthree.org/2006/02/14/linux-is-fun-and-stuff-but/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>Why PHP Is BETTER Than ASP/ASP.NET</title><link>http://pthree.org/2006/01/11/why-php-is-better-than-aspaspnet/</link> <comments>http://pthree.org/2006/01/11/why-php-is-better-than-aspaspnet/#comments</comments> <pubDate>Wed, 11 Jan 2006 23:53:44 +0000</pubDate> <dc:creator>Aaron</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[PHP]]></category><guid
isPermaLink="false">http://www.pthree.org/2006/01/11/why-php-is-better-than-aspaspnet/</guid> <description><![CDATA[I got into this discussion with a student at school this morning. A professor wants to convert my proposed CS site from PHP to straight ASP. I don&#8217;t understand why, for a number of reasons, why he would want to or even put himself through that. All OS preferences and biases aside, I argue that [...]]]></description> <content:encoded><![CDATA[<p>I got into this discussion with a student at school this morning.  A professor wants to convert <a
target="_blank" href="http://icarus.cs.weber.edu/~aarontoponce/drupal">my proposed CS site</a> from PHP to straight ASP.  I don&#8217;t understand why, for a number of reasons, why he would want to or even put himself through that.  All OS preferences and biases aside, I argue that PHP is better than ASP/ASP.NET for one major reason.  Let me show you visually.  I am a visual person, and can comprehend things when explained visually much better.</p><p
align="center"><img
title="Full Keyboard Layout" alt="Full Keyboard Layout" src="http://www.pthree.org/wp-content/uploads/2006/01/KeyboardLayoutLarge.gif" /></p><p
align="left">Do you see it?  Look harder.  No?  How about now?</p><p
align="center"><img
title="Partial Keyboard Layout" alt="Partial Keyboard Layout" src="http://www.pthree.org/wp-content/uploads/2006/01/KeyboardLayoutPart.gif" /></p><p
align="left">Apparently you don&#8217;t see it, so I&#8217;ll show you even a closer view.</p><p
align="center"><img
title="Zoom Keyboard Layout" alt="Zoom Keyboard Layout" src="http://www.pthree.org/wp-content/uploads/2006/01/KeyboardLayoutFocus.gif" /></p><p
align="left">That&#8217;s right.  The character that the browser uses to recognize PHP code from regular HTML code is the &#8216;?&#8217; which happens to conveniently sit right next to the SGML characters as well as the shift button used for all three.  What character does ASP/ASP.NET use?  Oh, that&#8217;s right- it&#8217;s the modulus character &#8216;%&#8217; which sits halfway across the keyboard.  Lazy?  Better believe it!  Please tell me of a coder who isn&#8217;t.  Please provide me the name of a programming software distributor/company who isn&#8217;t.  Programming is all about convenience.</p><p
align="left">That reminds me.  Doesn&#8217;t Microsoft, the Great Company who provided us with the convenience of ASP/ASP.NET, give us the &#8216;\&#8217; when navigating through the OS?  Yup.  UNIX/Linux/Mac/Every-other-non-IBM-or-MS-OS uses the  &#8216;/&#8217; which conveniently sits next to &#8216;.&#8217; on the keyboard.</p><p
align="left">This is why PHP is superior to ASP/ASP.NET and why UNIX/Linux/Mac/Every-other-non-IBM-or-MS-OS is superior to Windows.</p> ]]></content:encoded> <wfw:commentRss>http://pthree.org/2006/01/11/why-php-is-better-than-aspaspnet/feed/</wfw:commentRss> <slash:comments>69</slash:comments> </item> <item><title>Email Obfuscation- PHP Style</title><link>http://pthree.org/2005/11/19/email-obfuscation-php-style/</link> <comments>http://pthree.org/2005/11/19/email-obfuscation-php-style/#comments</comments> <pubDate>Sat, 19 Nov 2005 12:11:30 +0000</pubDate> <dc:creator>Aaron</dc:creator> <category><![CDATA[PHP]]></category><guid
isPermaLink="false">http://www.pthree.org:8080/?p=21</guid> <description><![CDATA[In my last post, I mentioned that I was picking up a new Perl project to obfuscate an email address from the traditional form to encoded ASCII. However, digging into the project reveals that everything can be handled with a simple PHP script. The code is so simple, actually, that little remains left to code. [...]]]></description> <content:encoded><![CDATA[<p>In my last post, I mentioned that I was picking up a new Perl project to obfuscate an email address from the traditional form to encoded ASCII.  However, digging into the project reveals that everything can be handled with a simple PHP script.  The code is so simple, actually, that little remains left to code.  Here is what I have come up with so far:</p><pre>
< ?php
    $email= "webmaster@example.com";                // store the email address in a string variable
    $length = strlen($email);                         // get the length of the email address

    for ($i = 0; $i < $length; $i++)                  // work your way through each character of the email address
        $obfuscatedEmail .= "&#38;&#35;" . ord($email[$i]); // get the deicmal ASCII value of the character
?>
</pre><p>Fairly striaght forward, I think.  Merely get the email address from a form on an HTML page, and store it in a variable called $email.  Then, get the length of that email address and store that result in $length.  Finally, using a for loop, step our way though the email address character by character until we have reached the email address character length, getting the ASCII value and appending &#8220;&#38;&#35;&#8221; to the beginning of each character.  That result is stored in a variable called $obfuscatedEmail.</p> ]]></content:encoded> <wfw:commentRss>http://pthree.org/2005/11/19/email-obfuscation-php-style/feed/</wfw:commentRss> <slash:comments>7</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (enhanced) (user agent is rejected)

Served from: pthree.org @ 2010-09-02 23:36:46 -->