<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Pure-Essence.Net &#187; php</title>
	<atom:link href="http://pure-essence.net/tag/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://pure-essence.net</link>
	<description>You have to visit this geeky girl&#039;s blog.</description>
	<lastBuildDate>Thu, 05 Jan 2012 07:43:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='pure-essence.net' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Pure-Essence.Net &#187; php</title>
		<link>http://pure-essence.net</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://pure-essence.net/osd.xml" title="Pure-Essence.Net" />
	<atom:link rel='hub' href='http://pure-essence.net/?pushpress=hub'/>
		<item>
		<title>writing an ajax app for Sequence</title>
		<link>http://pure-essence.net/2010/08/02/writing-an-ajax-app-for-sequence/</link>
		<comments>http://pure-essence.net/2010/08/02/writing-an-ajax-app-for-sequence/#comments</comments>
		<pubDate>Mon, 02 Aug 2010 12:44:43 +0000</pubDate>
		<dc:creator>pureessence</dc:creator>
				<category><![CDATA[games]]></category>
		<category><![CDATA[geeky]]></category>
		<category><![CDATA[php code]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[sequence]]></category>

		<guid isPermaLink="false">http://regretless.com/?p=1674</guid>
		<description><![CDATA[Yesterday I attended Ted Neward&#8216;s game design session at nofluff. It inspired me to begin to implement the game sequence in an ajax app. It will be a private app since I only plan to play it with some friends. But it will be hosted somewhere on my website so it can be accessed from [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pure-essence.net&amp;blog=23194870&amp;post=1674&amp;subd=pe20110517&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Yesterday I attended <a href="http://www.nofluffjuststuff.com/conference/speaker/ted_neward">Ted Neward</a>&#8216;s game design session at <a href="http://www.nofluffjuststuff.com/">nofluff</a>. It inspired me to begin to implement the game sequence in an ajax app. It will be a private app since I only plan to play it with some friends. But it will be hosted somewhere on my website so it can be accessed from anywhere.</p>
<p>Sequence is a board game my husband and I often played with two of our friends. It&#8217;s their favorite game. When I started thinking last night about potentially creating a web version so we don&#8217;t need to be physically at their house to play, I became very excited. I believe I may create something that will work with the help of php, mysql + jQuery (ajax).</p>
<p><strong>Why this idea excites me</strong></p>
<ul>
<li>Before I started as a professional Java developer, I always coded in php &amp; mysql (somewhat a LAMP developer on the side). However most of my old applications and sites are down. I no longer have the desire to maintain them. Now this is a great opportunity and incentive for me to go back to php &amp; mysql and write something I enjoy.</li>
<li>PHP has a special place in my heart. Just a while ago, a coworker asked for my help to create him something to help with the manual text file processing he has to do every month. It only needs to be quick &amp; dirty app. I threw together a php app in half an hour for him. It was super cool. He loved it.</li>
<li>jQuery is my favorite javascript library. You don&#8217;t have to look far in my blog to find that out. So the more I get to work with it, the happier I am.</li>
<li>I can also involve my husband on this project. Even though he&#8217;s not a programmer but he knows this game as well as I do. Normally he doesn&#8217;t have much of stake in my apps but this time he can be my lab rat <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </li>
<li>With this project, I also get to play with UI. I started as a web designer. So CSS &amp; HTML have been my passion. There will be quite a bit of UI involved in the designing of this game.</li>
<li>It&#8217;s fun because it will be very useful. I very much look forward to the day that I can have our friends joining the game.</li>
<li>I can blog about it! I may not share my final product with the public but I will definitely share my progress &amp; experience. Hopefully there will be challenges where I can learn some new stuff.</li>
</ul>
<p>Last night I started brainstorming with my hushand as how I want the game to work. I started table designing and UI designing. This morning I put together a very prototype version of the UI.<br />
<a class="thickbox" href="http://pe20110517.files.wordpress.com/2011/05/phase001.png" title="sequence phase 001"><img src="http://pe20110517.files.wordpress.com/2011/05/phase001.png?w=480" alt="sequence phase 001" class="blogpic" style="width:50%;" /></a><br />
I leveraged jQuery&#8217;s &#8220;redmond&#8221; theme. This way I can use all of the cool <a href="http://jqueryui.com">jQuery UI</a> widgets and benefit from reusing its css for elements I want to style and create a semi prof looking app in no time.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pe20110517.wordpress.com/1674/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pe20110517.wordpress.com/1674/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pe20110517.wordpress.com/1674/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pe20110517.wordpress.com/1674/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pe20110517.wordpress.com/1674/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pe20110517.wordpress.com/1674/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pe20110517.wordpress.com/1674/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pe20110517.wordpress.com/1674/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pe20110517.wordpress.com/1674/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pe20110517.wordpress.com/1674/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pe20110517.wordpress.com/1674/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pe20110517.wordpress.com/1674/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pe20110517.wordpress.com/1674/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pe20110517.wordpress.com/1674/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pure-essence.net&amp;blog=23194870&amp;post=1674&amp;subd=pe20110517&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pure-essence.net/2010/08/02/writing-an-ajax-app-for-sequence/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/fcfd5e14ca9c91790e95dfdb1d2ad756?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">pureessence</media:title>
		</media:content>

		<media:content url="http://pe20110517.files.wordpress.com/2011/05/phase001.png" medium="image">
			<media:title type="html">sequence phase 001</media:title>
		</media:content>
	</item>
		<item>
		<title>Just getting my feet wet in Open Laszlo</title>
		<link>http://pure-essence.net/2008/02/14/just-getting-my-feet-wet-in-open-laszlo/</link>
		<comments>http://pure-essence.net/2008/02/14/just-getting-my-feet-wet-in-open-laszlo/#comments</comments>
		<pubDate>Thu, 14 Feb 2008 05:09:58 +0000</pubDate>
		<dc:creator>pureessence</dc:creator>
				<category><![CDATA[geeky]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[lzx]]></category>
		<category><![CDATA[openLaszlo]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[shoutBox]]></category>
		<category><![CDATA[source code]]></category>

		<guid isPermaLink="false">http://regretless.com/2008/02/14/just-getting-my-feet-wet-in-open-laszlo/</guid>
		<description><![CDATA[here&#8217;s my shoutBox written in openLaszlo frontend and PHP backend. Try closing the shoutBox, it is animated Click here if you do not see the flash embeded So the idea of writing this simple application is just to get my feet wet in Open Laszlo. As we are moving to web 2.0, writing RIAs will [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pure-essence.net&amp;blog=23194870&amp;post=1206&amp;subd=pe20110517&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>here&#8217;s my shoutBox written in <a href="http://www.openLaszlo.org/">openLaszlo</a> frontend and PHP backend.<br />
Try closing the shoutBox, it is animated <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
<pre class="brush: xml; wrap-lines: false;">
&lt;div id=&quot;peshoutbox&quot;&gt;&lt;/div&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
   var so = new SWFObject(&quot;http://pure-essence.net/openLaszlo/shoutBox.swf&quot;, &quot;shoutbox&quot;, &quot;350&quot;, &quot;478&quot;, &quot;8&quot;, &quot;#fff&quot;);
   so.addParam(&quot;wmode&quot;, &quot;transparent&quot;);
   so.write(&quot;peshoutbox&quot;);
&lt;/script&gt;
</pre><br />
<a href="http://pure-essence.net/openLaszlo/" title="Pure-Essence.Net Shoutbox">Click here if you do not see the flash embeded</a></p>
<p>So the idea of writing this simple application is just to get my feet wet in <a href="http://www.openlaszlo.org/">Open Laszlo</a>. As we are moving to web 2.0, writing <acronym title="Rich Internet Application">RIA</acronym>s will be the future for web programmers. Many frameworks now have ajax plugin. I wrote my <a href="http://pure-essence.net/2005/04/28/xmlhttprequest-chat/">first ajax chat script</a> in 2005 without any libraries. I&#8217;m sure it&#8217;s much easier to write one with plugins. But it was still nice to write one from scratch. You then truly understand how it works. Competing with adobe&#8217;s flex, google&#8217;s GWT (ajax framework), possibly Microsoft&#8217;s new silverlight there is an open source project called open laszlo. If you look at <a href="http://www.openlaszlo.org/demos">their demo applications</a>, it seems to be pretty powerful. I think it&#8217;s a very interesting alternative to ajax so I gave it a shot. </p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/pe20110517.wordpress.com/1206/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/pe20110517.wordpress.com/1206/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pe20110517.wordpress.com/1206/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pe20110517.wordpress.com/1206/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pe20110517.wordpress.com/1206/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pe20110517.wordpress.com/1206/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pe20110517.wordpress.com/1206/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pe20110517.wordpress.com/1206/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pe20110517.wordpress.com/1206/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pe20110517.wordpress.com/1206/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pe20110517.wordpress.com/1206/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pe20110517.wordpress.com/1206/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pe20110517.wordpress.com/1206/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pe20110517.wordpress.com/1206/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pe20110517.wordpress.com/1206/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pe20110517.wordpress.com/1206/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pure-essence.net&amp;blog=23194870&amp;post=1206&amp;subd=pe20110517&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pure-essence.net/2008/02/14/just-getting-my-feet-wet-in-open-laszlo/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/fcfd5e14ca9c91790e95dfdb1d2ad756?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">pureessence</media:title>
		</media:content>
	</item>
		<item>
		<title>Simple PHP URL rewrite</title>
		<link>http://pure-essence.net/2007/06/29/simple-php-path-rewrite/</link>
		<comments>http://pure-essence.net/2007/06/29/simple-php-path-rewrite/#comments</comments>
		<pubDate>Fri, 29 Jun 2007 21:14:02 +0000</pubDate>
		<dc:creator>pureessence</dc:creator>
				<category><![CDATA[geeky]]></category>
		<category><![CDATA[php code]]></category>
		<category><![CDATA[htaccess_rewrite]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[pretty_url]]></category>

		<guid isPermaLink="false">http://regretless.com/2007/06/29/simple-php-path-rewrite/</guid>
		<description><![CDATA[One thing I did for dmb is making dodosmb.com/profile/username work with my profile.php script. Normally without the help of .htaccess, you can use the value of the path info from the global variable For example, create a php file named profile.php and in there put: Then upload the file and load it with yourServerPath/profile.php/dodo. The [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pure-essence.net&amp;blog=23194870&amp;post=1174&amp;subd=pe20110517&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>One thing I did for <a href="http://dodosmb.com/">dmb</a> is making dodosmb.com/profile/username work with my profile.php script. Normally without the help of .htaccess, you can use the value of the path info from the global variable<br />
<pre class="brush: plain; wrap-lines: false;">
$_SERVER['PATH_INFO']
</pre></p>
<p>For example, create a php file named profile.php and in there put:<br />
<pre class="brush: plain; wrap-lines: false;">
&lt;?php echo $_SERVER['PATH_INFO']; ?&gt;
</pre></p>
<p>Then upload the file and load it with yourServerPath/profile.php/dodo. The script will print out<br />
<pre class="brush: plain; wrap-lines: false;">
/dodo
</pre></p>
<p>In my profile.php, I get the user by doing a simple sub string command like:<br />
<pre class="brush: plain; wrap-lines: false;">
$user = substr($_SERVER['PATH_INFO'], 1); // this will get rid of the leading slash
</pre></p>
<p>This allows me to feed users to my profile.php by using the url dodosmb.com/profile.php/username</p>
<p>That&#8217;s still not pretty enough; it&#8217;s better if I can do dodosmb.com/profile/username. This is where .htaccess rewrite comes in. <a href="http://www.yourhtmlsource.com/sitemanagement/urlrewriting.html">Here&#8217;s a great tutorial for .htaccess rewrite rules</a>. To accomplish my goal, I used the following rewrite rules in my .htaccess:<br />
<pre class="brush: plain; wrap-lines: false;">
RewriteEngine on
RewriteRule ^profile/([A-Za-z0-9]+)/$ /profile.php/$1
RewriteRule ^profile/([A-Za-z0-9]+)$ /profile.php/$1
</pre></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/pe20110517.wordpress.com/1174/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/pe20110517.wordpress.com/1174/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pe20110517.wordpress.com/1174/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pe20110517.wordpress.com/1174/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pe20110517.wordpress.com/1174/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pe20110517.wordpress.com/1174/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pe20110517.wordpress.com/1174/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pe20110517.wordpress.com/1174/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pe20110517.wordpress.com/1174/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pe20110517.wordpress.com/1174/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pe20110517.wordpress.com/1174/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pe20110517.wordpress.com/1174/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pe20110517.wordpress.com/1174/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pe20110517.wordpress.com/1174/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pe20110517.wordpress.com/1174/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pe20110517.wordpress.com/1174/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pure-essence.net&amp;blog=23194870&amp;post=1174&amp;subd=pe20110517&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pure-essence.net/2007/06/29/simple-php-path-rewrite/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/fcfd5e14ca9c91790e95dfdb1d2ad756?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">pureessence</media:title>
		</media:content>
	</item>
	</channel>
</rss>
