<?xml version="1.0" encoding="UTF-8" ?>

<rss version="2.0"
  xmlns:ent="http://www.purl.org/NET/ENT/1.0/"
  xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
  <title>Random Bytes...by Ross Rader</title>
  <link>http://www.byte.org/blog</link>
  <description>Ross Wm. Rader&#39;s current home page. Odds and sods of current interest without much thought given to rhyme or reason. Hey, it keeps me out of trouble, hopefully it keeps you interested ;)</description>
  <language>en-us</language>
  <lastBuildDate>Fri, 11 Jul 2008 17:26:22 -0400</lastBuildDate>
  <category domain="http://www.byte.org/blog/ThePHPDiaries">The PHP Diaries</category>
  <generator>Blogware</generator>
  
  <item>
    <dc:creator>Ross</dc:creator>
    <title>Dear PHP Diary...</title>
    <link>http://www.byte.org/blog/_archives/2004/10/27/169258.html</link>
    <guid>http://www.byte.org/blog/_archives/2004/10/27/169258.html</guid>
    <pubDate>Wed, 27 Oct 2004 23:44:36 -0400</pubDate>
    <description>&lt;p&gt;I learned a bunch of new things today.&lt;/p&gt;&lt;p&gt;I learned about basic syntax and how to include PHP in an HTML document. &lt;p&gt;I learned how to use the print statement and a little bit about variables. I like how variables can be set many times in a script. I also like how form variables can be set automatically for a script (depending on your PHP configuration). &lt;p&gt;I was also excited to find out that I could use a &quot;print&quot; statement to...errr... include text in an HTML document.&lt;p&gt;I didn&#39;t learn much about errors or debugging though. Everything that I&#39;ve retyped in hasn&#39;t had any errors. Hopefully I make some mistakes soon. &lt;p&gt;Here&#39;s what I&#39;ve got so far (GPL&#39;ed of course!!)... &lt;p&gt;&lt;font face=&quot;Courier New&quot;&gt;&amp;lt;html&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;lt;head&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;lt;title&amp;gt;Hello, World!&amp;lt;/title&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;lt;/head&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;lt;body&amp;gt; &lt;/font&gt;&lt;p&gt;&lt;font face=&quot;Courier New&quot;&gt;&amp;nbsp;&amp;lt;?php&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //This will print &quot;Hello, World!&quot; &lt;br /&gt;&amp;nbsp;&amp;nbsp;echo &#39;&amp;lt;p&amp;gt;Hello, World!&amp;lt;/p&amp;gt;&#39;; &lt;/font&gt;&lt;p&gt;&lt;font face=&quot;Courier New&quot;&gt;&amp;nbsp;&amp;nbsp;//This will print the browser agent.&lt;br /&gt;&amp;nbsp;&amp;nbsp;echo $_SERVER[&#39;HTTP_USER_AGENT&#39;]; &lt;br /&gt;&amp;nbsp;&amp;nbsp;print &quot;$PHP_SELF&quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;//testing out variables&lt;br /&gt;&amp;nbsp;&amp;nbsp;print (&quot;&amp;lt;p&amp;gt;&quot;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;$utterance = &quot;I love you!&quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;print (&quot;When I am happy, I want to say $utterance&quot;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;$utterance = &quot;ergh!&quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;print (&quot;When I am angry, I want to say $utterance&quot;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;print (&quot;&amp;lt;P&amp;gt;&quot;); &lt;br /&gt;&amp;nbsp;&amp;nbsp;print ( &quot;\&quot;I am the chicken man!\&quot;&quot; );&lt;br /&gt;&amp;nbsp;?&amp;gt;&lt;br /&gt;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;lt;/body&amp;gt;&lt;br /&gt;&amp;lt;/html&amp;gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;I am *so* starting a Sourceforge project!&lt;/p&gt;</description>
    
    <category domain="http://www.byte.org/blog/ThePHPDiaries">The PHP Diaries</category>
    
    
    
    
  </item>
  
  <item>
    <dc:creator>Ross</dc:creator>
    <title>....but you can never go home</title>
    <link>http://www.byte.org/blog/_archives/2004/10/27/168791.html</link>
    <guid>http://www.byte.org/blog/_archives/2004/10/27/168791.html</guid>
    <pubDate>Wed, 27 Oct 2004 21:51:33 -0400</pubDate>
    <description>&lt;p&gt;&lt;img alt=&quot;&quot; src=&quot;http://www.byte.org/images/wumpus.jpg&quot; align=&quot;left&quot; border=&quot;0&quot; hspace=&quot;3&quot; vspace=&quot;3&quot;&gt;I think I was in grade six when my family got &lt;a href=&quot;http://www.netten.net/%7Egarycox/ti99.htm&quot;&gt;our first home computer&lt;/a&gt;.
I cottoned to it immediately and spent months playing endless games of
&quot;Hunt the Wumpus&quot;, &quot;Munchman&quot; and when the only other guy I knew with a
TI was feeling benevolent (usually due to some totally one-sided
juvenile &quot;deal&quot;), a few rounds of borrowed &quot;Parsec&quot;. &lt;/p&gt;&lt;p&gt;When I
grew tired of playing games on it, probably because Atari was waaay
cooler and my parents just weren&#39;t interested in buying additional
carts, I picked up the manual to see what else this thing could do. It
had all these ports and inputs on it that my joystick and carts
wouldn&#39;t fit into and I knew that figuring out what they were for would
probably lead to *something* interesting.&lt;/p&gt;&lt;p&gt;I don&#39;t remember what
the manual had to say about all the different input options because the
manual held something far more interesting than schematics.&lt;/p&gt;&lt;p&gt;The sucker was programmable. &lt;/p&gt;&lt;p&gt;&lt;img alt=&quot;&quot; src=&quot;http://www.byte.org/images/parsec2.gif&quot; align=&quot;right&quot; border=&quot;0&quot; hspace=&quot;3&quot; vspace=&quot;3&quot; width=&quot;240&quot;&gt;I&#39;ll
never forget sitting in front of the TV on the weekends for hours
retyping in line after line of programming samples from the manual...&lt;/p&gt;&lt;p&gt;Here&#39;s one of the first; &lt;/p&gt;&lt;font face=&quot;Courier&quot;&gt;100 FOR FREQ=110 TO 200 &lt;br&gt;110 CALL SOUND(100,FREQ,0) &lt;br&gt;120 NEXT FREQ&lt;/font&gt; &lt;p&gt;&lt;/p&gt;&lt;p&gt;It
was a total buzz linking a bunch of these together into a bunch of
sounds. It was even cooler when I made the connection between the
frequencies my TI was generating and the notes on a scale. I was
quickly programming in music from my piano books. While it didn&#39;t do
much for my style, it certainly did improve my ability to read sheet
music.&lt;/p&gt;&lt;p&gt;The TI was pretty limiting though. Not only did it have
one of the slowest basic interpreters in the world, mine didn&#39;t come
with any storage. And my parents just weren&#39;t interesting in buying any
additional peripherals. (I&#39;ve said that twice now. In fairness to my
parents,&amp;nbsp; they were probably &quot;interested&quot; but the fact was that
all of the good accessories cost serious money and the fact that none
of my other three siblings...or anyone else for that matter really did
anything much but play games on the darn thing. A cassette drive was
out of the question.)&lt;/p&gt;&lt;p&gt;&lt;img alt=&quot;&quot; src=&quot;http://www.byte.org/images/apple2e.jpg&quot; align=&quot;right&quot; border=&quot;0&quot; hspace=&quot;3&quot; vspace=&quot;3&quot; width=&quot;240&quot;&gt;I
was happy to deal with the lack of permanent storage right up to the
point where I spent eight hours&amp;nbsp;one Saturday typing in a new slot
machine game that I&#39;d come across in a hobbyist magazine - it ended up
being very cool. When it was done, my dad was understanding enough to
let me play it for a few hours leave the computer turned on over night.
&quot;Okay, just don&#39;t turn it off&quot; I remember admonishing him. The next
day, I played slots for at least ten straight hours - there was some
serious eye-bleeding going on. My mom had to ask me at least six times
to shut off the computer and go to bed. I eventually did - I winced as
I hit the power button and imagined my hard-won bits and bytes
evaporating...&lt;/p&gt;&lt;p&gt;I don&#39;t remember using the TI after that. I felt I
had mastered it and didn&#39;t really see much point in spending half my
time typing stuff in for a few hours of slots...&lt;/p&gt;&lt;p&gt;Later that year I started junior high school. Grade 7. New school, new friends. A new Apple in the AV lab.&lt;/p&gt;&lt;p&gt;One
][e, 600 students. Needless to say we had to book time if we wanted to
use it. Which I did, frequently - obsessively. I was quickly immersed
in this new environment which had the drawback of being monochromatic,
but had the benefit of a 5/14 floppy drive. Apple Basic wasn&#39;t that
different from TI Basic and I picked up the nuances pretty quickly. My
first real project was a &quot;Wargames&quot; RPG that walked you through the
basic plot from the movie but allowed you to make key decisions every
single step of the way. With my mind stuck in the depths of the
cold-war and fully keyed into the nihilism that permeated everything at
the time, the odds that you could successfully navigate the game
without WOPR blowing up the world were slim (or was it none?).&lt;/p&gt;&lt;p&gt;I&#39;d
also managed to pick up a few paid gigs as well. One of my more
ambitious efforts saw me programming a tax calculation program for a
friend of my dads. It picked up the basic math and neatly printed the
results out to a government supplied form. I remember being jazzed by
the notion of plugging a four-ply carbon paper *official* form into the
tractor fed dot matrix printer.&lt;/p&gt;&lt;p&gt;But shortly after this, I entered
high-school where I discovered girls, cars and other adolescent
pursuits - and stopped programming. Even though I did rediscover
computing shortly after I left high-school, I never started programming
again. That is, until this week. Earlier this month I decided that this
winter I would learn enough PHP to write a simple server application.
Three days ago, I took the first step and installed Apache, MySQL and
PHP on my laptop. Last night, I wrote the obligatory &quot;Hello World!&quot;
program. Tonight, I am going to try and write formdata to a database.&lt;/p&gt;&lt;p&gt;I&#39;ll let you know how it goes as things progress.&lt;/p&gt;&lt;p&gt;I
apologize for the gap in updates and not doing a Podcast for over a
week. Skydasher is sucking up a huge amount of my time, day and night,
and I really wanted to spend the hour or two of free time that I&#39;ve had
this week getting some traction with PHP. This temporary jam should
free up this week and next and I&#39;ll eventually get settled back in to a
more engaging rhythm.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description>
    
    <category domain="http://www.byte.org/blog/random_bytes">Random Bytes</category>
    
    <category domain="http://www.byte.org/blog/ThePHPDiaries">The PHP Diaries</category>
    
    
    
    
  </item>
  
</channel>
</rss>
