<?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>frankly at a glance. &#187; PHP</title>
	<atom:link href="http://frankleng.me/tag/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://frankleng.me</link>
	<description>the world according to Frank...</description>
	<lastBuildDate>Tue, 03 Jan 2012 10:19:41 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Drupal Tip: Lightbox pop-up on page load</title>
		<link>http://frankleng.me/2010/07/21/drupal-tip-lightbox-pop-up-on-page-load/</link>
		<comments>http://frankleng.me/2010/07/21/drupal-tip-lightbox-pop-up-on-page-load/#comments</comments>
		<pubDate>Wed, 21 Jul 2010 21:22:58 +0000</pubDate>
		<dc:creator>Frank</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Me]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[drupal]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://frankleng.me/?p=345</guid>
		<description><![CDATA[Just like I was, a lot people have been seeking around the web for an easy way of invoking a lightbox as a page loads. Examples including http://www.bram.us/demo/projects/autofirelightbox/ uses javascript to trigger the lightbox. However, scripts like this one does not work with Drupal&#8217;s Lightbox 2 module. Here is what I used to accomplish this [...]]]></description>
			<content:encoded><![CDATA[<p>Just like I was, a lot people have been seeking around the web for an easy way of invoking a lightbox as a page loads.</p>
<p>Examples including <a href="http://www.bram.us/demo/projects/_autofirelightbox/" target="_blank">http://www.bram.us/demo/projects/autofirelightbox/</a> uses javascript to trigger the lightbox. However, scripts like this one does not work with Drupal&#8217;s Lightbox 2 module.</p>
<p>Here is what I used to accomplish this in Drupal, by using  JQuery&#8217;s triggerHandler function to invoke the click. Hope this will help others who need an auto lightbox pop-up.</p>
<p><span id="more-345"></span></p>
<pre>&lt;a rel="<strong>lightframe</strong>" href="" id="<strong>link</strong>"&gt;&lt;/a&gt;</pre>
<pre>&lt;script type="text/javascript"&gt;
   $(document).ready(function () {
     $('<strong>#link</strong>').triggerHandler("click");
   });
&lt;/script&gt;</pre>
<div class="bottomcontainerBox" style="">
			<div style="float:left; width:100px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Ffrankleng.me%2F2010%2F07%2F21%2Fdrupal-tip-lightbox-pop-up-on-page-load%2F&amp;layout=button_count&amp;show_faces=false&amp;width=100&amp;action=like&amp;font=verdana&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width=100px; height:21px;" allowTransparency="true"></iframe></div>
			<div style="float:left; width:100px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<g:plusone size="medium" href="http://frankleng.me/2010/07/21/drupal-tip-lightbox-pop-up-on-page-load/"></g:plusone>
			</div>
			<div style="float:left; width:100px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<a href="http://twitter.com/share" class="twitter-share-button" data-url="http://frankleng.me/2010/07/21/drupal-tip-lightbox-pop-up-on-page-load/"  data-text="Drupal Tip: Lightbox pop-up on page load" data-count="horizontal" data-via="frankleng">Tweet</a>
			</div>			
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"><script src="http://www.stumbleupon.com/hostedbadge.php?s=1&amp;r=http://frankleng.me/2010/07/21/drupal-tip-lightbox-pop-up-on-page-load/"></script></div>			
			</div><div style="clear:both"></div><div style="padding-bottom:4px;"></div><img src="http://frankleng.me/?ak_action=api_record_view&id=345&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://frankleng.me/2010/07/21/drupal-tip-lightbox-pop-up-on-page-load/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Drupal and its serious e-commerce muscle</title>
		<link>http://frankleng.me/2010/06/16/drupal-and-its-serious-e-commerce-muscle/</link>
		<comments>http://frankleng.me/2010/06/16/drupal-and-its-serious-e-commerce-muscle/#comments</comments>
		<pubDate>Wed, 16 Jun 2010 23:19:19 +0000</pubDate>
		<dc:creator>Frank</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Random Thoughts]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[drupal]]></category>

		<guid isPermaLink="false">http://frankleng.me/?p=330</guid>
		<description><![CDATA[It has been about a month since my last post, but the site is getting some real nice traffic since the posts about my &#8220;Drobo Alternative&#8220;. So thank you all for the support. I&#8217;ve been working my rear off these days&#8230; apart from my day job I am working on two other sites. Both are [...]]]></description>
			<content:encoded><![CDATA[<p>It has been about a month since my last post, but the site is getting some real nice traffic since the posts about my &#8220;<a href="http://frankleng.me/2010/05/01/zfs-powered-nas-the-ultimate-alternative-to-drobo-droboshare-the-complete-guide/">Drobo Alternative</a>&#8220;. So thank you all for the support.</p>
<p>I&#8217;ve been working my rear off these days&#8230; apart from my day job I am working on two other sites. Both are e-commerce oriented sites based on Drupal.<br />
While Drupal may not be particularly popular among e-commerce ventures, I am here to tell you that it has some serious e-com muscle and potential.</p>
<p>The particular module is called <a href="http://drupal.org/project/ubercart">Ubercart</a>. It is a full featured e-commerce Drupal module that handles the <img class="alignright" title="Ubercart" src="http://drupal.org/files/images/logo.png" alt="" width="208" height="124" />frontend store, as well as inventory and payment processing. What is even more important is that since this is a Drupal module, it can take advantage of the various existing Drupal modules to function. Thus, allowing the developers to make Ubercart great at what it does.</p>
<p>The folks over at <a href="http://www.topnotchthemes.com/">TopNotchThemes </a>developed an amazing sample theme that supports Ubercart out of the box. This is the <a href="http://drupal.org/project/acquia_prosper">Acquia Prosper</a>. I use as a foundation for all of my Drupal e-commerce projects. It is built on the Fusion themeing framework and highly customizable.</p>
<p>All you need to do is download and install these on your box&#8230; hook it up with a PayPal account and you are good to go.</p>
<p>Coming from OScommerce, developing on Drupal is much more organized as long as you stay within the scope of the Drupal API. The API is comprehensive but it is quite the beast to master. It is nothing like writing your normal PHP app, and it makes you feel like you are developing in another language.</p>
<p>Having said that, Drupal + Ubercart is years ahead of OScommerce in every way. I love the modular design that makes Drupal what it is, and the enormous dev support i has behind it.</p>
<p>I&#8217;m going to try and write my magazine subscription app as a Ubercart add-on this summer.</p>
<div class="bottomcontainerBox" style="">
			<div style="float:left; width:100px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Ffrankleng.me%2F2010%2F06%2F16%2Fdrupal-and-its-serious-e-commerce-muscle%2F&amp;layout=button_count&amp;show_faces=false&amp;width=100&amp;action=like&amp;font=verdana&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width=100px; height:21px;" allowTransparency="true"></iframe></div>
			<div style="float:left; width:100px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<g:plusone size="medium" href="http://frankleng.me/2010/06/16/drupal-and-its-serious-e-commerce-muscle/"></g:plusone>
			</div>
			<div style="float:left; width:100px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<a href="http://twitter.com/share" class="twitter-share-button" data-url="http://frankleng.me/2010/06/16/drupal-and-its-serious-e-commerce-muscle/"  data-text="Drupal and its serious e-commerce muscle" data-count="horizontal" data-via="frankleng">Tweet</a>
			</div>			
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"><script src="http://www.stumbleupon.com/hostedbadge.php?s=1&amp;r=http://frankleng.me/2010/06/16/drupal-and-its-serious-e-commerce-muscle/"></script></div>			
			</div><div style="clear:both"></div><div style="padding-bottom:4px;"></div><img src="http://frankleng.me/?ak_action=api_record_view&id=330&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://frankleng.me/2010/06/16/drupal-and-its-serious-e-commerce-muscle/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>installing APC &amp; uploadprogress on CentOS 5 [updated]</title>
		<link>http://frankleng.me/2009/08/25/installing-apc-on-centos-5/</link>
		<comments>http://frankleng.me/2009/08/25/installing-apc-on-centos-5/#comments</comments>
		<pubDate>Tue, 25 Aug 2009 08:35:04 +0000</pubDate>
		<dc:creator>Frank</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[VPS]]></category>

		<guid isPermaLink="false">http://frankleng.me/2009/08/25/installing-apc-on-centos-5/</guid>
		<description><![CDATA[First, we need the pecl command so we can download and install APC from the repositories. I use the &#8220;remi&#8221; repo to give me the latest packages, so use &#8220;&#8211;enablerepo=remi&#8221; if you have it installed. yum install php-pear But, this will not run on its own, we need the following package for the phpize command: [...]]]></description>
			<content:encoded><![CDATA[<p>First, we need the pecl command so we can download and install APC from the repositories. I use the &#8220;remi&#8221; repo to give me the latest packages, so use &#8220;&#8211;enablerepo=remi&#8221; if you have it installed.</p>
<p><strong>yum install php-pear</strong><br />
But, this will not run on its own, we need the following package for the phpize command:</p>
<p><strong>yum install php-devel</strong><br />
We also need the apxs command, which is installed via the following package:</p>
<p><strong>yum install httpd-devel</strong><br />
Now we have all the software we need, so we install apc via the pecl command:</p>
<p><strong>pecl install apc</strong></p>
<p>I also recommend installing <strong>uploadprogress</strong>, because Drupal 6 will ask you to do so.</p>
<p><strong>pecl install uploadprogress</strong></p>
<p>Now we have to enable <strong>apc </strong>and <strong>uploadprogress </strong>in php.ini.</p>
<p>Add the following lines to /etc/php.ini or wherever your php config file is located.</p>
<p><strong>extension=apc.so</strong></p>
<p><strong>extension=uploadprogress.so<br />
</strong></p>
<p>Then we restart Apache:</p>
<p><strong>/etc/init.d/httpd start</strong><br />
And we are all done. Watch for less execution time per page, and decreased memory usage per Apache process compared to what you had<br />
before.</p>
<div class="bottomcontainerBox" style="">
			<div style="float:left; width:100px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Ffrankleng.me%2F2009%2F08%2F25%2Finstalling-apc-on-centos-5%2F&amp;layout=button_count&amp;show_faces=false&amp;width=100&amp;action=like&amp;font=verdana&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width=100px; height:21px;" allowTransparency="true"></iframe></div>
			<div style="float:left; width:100px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<g:plusone size="medium" href="http://frankleng.me/2009/08/25/installing-apc-on-centos-5/"></g:plusone>
			</div>
			<div style="float:left; width:100px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<a href="http://twitter.com/share" class="twitter-share-button" data-url="http://frankleng.me/2009/08/25/installing-apc-on-centos-5/"  data-text="installing APC &#038; uploadprogress on CentOS 5 [updated]" data-count="horizontal" data-via="frankleng">Tweet</a>
			</div>			
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"><script src="http://www.stumbleupon.com/hostedbadge.php?s=1&amp;r=http://frankleng.me/2009/08/25/installing-apc-on-centos-5/"></script></div>			
			</div><div style="clear:both"></div><div style="padding-bottom:4px;"></div><img src="http://frankleng.me/?ak_action=api_record_view&id=79&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://frankleng.me/2009/08/25/installing-apc-on-centos-5/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>

