<?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>A Passion For 'Puters &#187; Programming</title>
	<atom:link href="http://www.rhastings.net/archives/category/programming/feed" rel="self" type="application/rss+xml" />
	<link>http://www.rhastings.net</link>
	<description>The Intersection Of Libraries, Computers and Web Trivialities.</description>
	<lastBuildDate>Sun, 05 Sep 2010 22:42:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>PHP/MySQL Session</title>
		<link>http://www.rhastings.net/archives/208</link>
		<comments>http://www.rhastings.net/archives/208#comments</comments>
		<pubDate>Tue, 09 Sep 2008 21:33:46 +0000</pubDate>
		<dc:creator>Robin</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[applications]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.rhastings.net/?p=208</guid>
		<description><![CDATA[Richard Weinberg City of Providence (RI) Started with a demonstration of the PHP Uploader including detailed explanation of the code. It&#8217;s a pretty cool little program! One thing he mentioned is that if you create a form input of the type=&#8221;file&#8221;, the browser will create the browse button and all that interface for you. (include [...]]]></description>
			<content:encoded><![CDATA[
<!-- ALL ADSENSE ADS DISABLED -->
<p>Richard Weinberg<br />
City of Providence (RI)</p>
<p>Started with a demonstration of the PHP Uploader including detailed explanation of the code. It&#8217;s a pretty cool little program! One thing he mentioned is that if you create a form input of the type=&#8221;file&#8221;, the browser will create the browse button and all that interface for you. (include the enctype=&#8221;multipart/form-data&#8221; in the form tag to make that work, too) Pretty easy! While going through the code, he mentioned the Heredoc syntax:<br />
<<<EOT<br />
text with codes that don&#8217;t need escaping &lt;br /&gt;<br />
but no spaces at all or it won&#8217;t work &lt;br /&gt;<br />
which I didn&#8217;t know&#8230; &lt;br /&gt;<br />
EOT;<br />
that would explain some of the issues I&#8217;ve had with this is the past. Doh!!</p>
<p>He just offered us the code for his code tester at php4me.com. That is seriously cool! It&#8217;s GPL&#8217;d, in case you all decide you want a copy, I could pass it on!! He then showed the read directory code, but I was a bit distracted and missed some of it. Part of the danger in having a computer in front of you&#8230;</p>
<p>After that, we went over the alternating row colors on a grid &#8211; something I&#8217;ve done before, but his example was different, and I still got some good ideas from it. After this, he mentioned the fact that if you save a file as .phps it will show the code instead of processing it. This went into a discussion about trustworthiness (we were deemed to be trustworthy, one of my co-students declared that we were trustworthy, we work for the government, at which point Richard said that 2 of his co-workers are in prison right now &#8211; made for an interesting sidebar to the PHP/MySQL information).</p>
<p>After the break, he started on a RSS generating script, something I&#8217;ve been using for our Press Releases for a while, but again, he did it differently! Learning new stuff!!</p>
<p>We are going through calendar functions now. I&#8217;ve tried dealing with dates/calendars in PHP and generally found that it&#8217;s easier to use pre-made solutions on the web&#8230; He&#8217;s got some great code that I&#8217;ll be grabbing for future projects, though!! He followed this up with an email/cell phone weather alert application. Very interesting stuff &#8211; I have NOAA alerts on the active desktops on staff machines at work, but I don&#8217;t have a push alert system. Hmmm, interesting&#8230; His version uses preg_match and cron/curl very extensively. I need so much help with regular expressions, it&#8217;s not even funny!</p>
<p>Richard is ending up by answering questions and such from the audience &#8211; one of which gave us a really nice example of alphabetizing without initial articles. That would be somewhat handy at my place of work!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rhastings.net/archives/208/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
