<?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>PHP User-Group Philippines &#187; Miscellaneous</title>
	<atom:link href="http://www.phpugph.com/blog/category/miscellaneous/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.phpugph.com/blog</link>
	<description></description>
	<lastBuildDate>Wed, 23 Dec 2009 04:00:10 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Mployd.ph Offers PHPUGPH Members 1-Year Free Subscription</title>
		<link>http://www.phpugph.com/blog/2008/10/17/mploydph-offers-phpugph-members-1-year-free-subscription/</link>
		<comments>http://www.phpugph.com/blog/2008/10/17/mploydph-offers-phpugph-members-1-year-free-subscription/#comments</comments>
		<pubDate>Fri, 17 Oct 2008 03:51:03 +0000</pubDate>
		<dc:creator>aj</dc:creator>
				<category><![CDATA[Announcement]]></category>
		<category><![CDATA[Miscellaneous]]></category>
		<category><![CDATA[mployd]]></category>
		<category><![CDATA[offer]]></category>
		<category><![CDATA[phpugph]]></category>

		<guid isPermaLink="false">http://www.phpugph.com/blog/?p=47</guid>
		<description><![CDATA[If you are a member of PHPUGph.com, you are entitled to a 1 year free account subscription at Mployd.ph. The account subscription is worth Php 10,000 approx. ($250).
Login to PHPUGPH now and grab the exclusive promo code. Hurry! This offer expires October 31, 2008 is extended till the end of the year!
]]></description>
			<content:encoded><![CDATA[<p>If you are a member of <a href="http://phpugph.com">PHPUGph.com</a>, you are entitled to a 1 year free account subscription at <a href="http://mployd.ph">Mployd.ph</a>. The account subscription is worth Php 10,000 approx. ($250).</p>
<p><a href="http://phpugph.com/talk">Login to PHPUGPH now</a> and grab the exclusive promo code. Hurry! This offer expires <span style="text-decoration: line-through;">October 31, 2008</span> is extended till the end of the year!</p>
<div id="facebook_like"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.phpugph.com%2Fblog%2F2008%2F10%2F17%2Fmploydph-offers-phpugph-members-1-year-free-subscription%2F&amp;layout=standard&amp;show-faces=true&amp;width=450&amp;action=like&amp;font=arial&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:auto;"></iframe></div>]]></content:encoded>
			<wfw:commentRss>http://www.phpugph.com/blog/2008/10/17/mploydph-offers-phpugph-members-1-year-free-subscription/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Globe Innovation Convention: Globe Labs Launch &#8211; &#8220;Enriching lives through Innovative Communications&#8221;</title>
		<link>http://www.phpugph.com/blog/2008/07/23/globe-innovation-convention-globe-labs-launch-enriching-lives-through-innovative-communications/</link>
		<comments>http://www.phpugph.com/blog/2008/07/23/globe-innovation-convention-globe-labs-launch-enriching-lives-through-innovative-communications/#comments</comments>
		<pubDate>Wed, 23 Jul 2008 02:46:05 +0000</pubDate>
		<dc:creator>aj</dc:creator>
				<category><![CDATA[Announcement]]></category>
		<category><![CDATA[Events]]></category>
		<category><![CDATA[Miscellaneous]]></category>
		<category><![CDATA[event]]></category>
		<category><![CDATA[globe labs]]></category>
		<category><![CDATA[phpugph]]></category>

		<guid isPermaLink="false">http://www.phpugph.com/blog/?p=45</guid>
		<description><![CDATA[Spreading the news
Date: August 7, 2008 (Thursday)
Time: 7:30 AM &#8211; 5:00 PM
Venue: Isla Ballroom, Tower Wing, EDSA Shangrila
Globe Labs is a new organization within Globe Telecom whose mission is to help bring in the newest future technology services at the earliest market-relevant time. We explore new and future technologies, and partner with developers to create [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Spreading the news</strong></p>
<p><strong>Date: </strong>August 7, 2008 (Thursday)<br />
<strong>Time: </strong>7:30 AM &#8211; 5:00 PM<br />
<strong>Venue:</strong> Isla Ballroom, Tower Wing, EDSA Shangrila</p>
<p><a href="http://www.globelabs.com.ph/">Globe Labs</a> is a new organization within Globe Telecom whose mission is to help bring in the newest future technology services at the earliest market-relevant time. We explore new and future technologies, and partner with developers to create new Internet, wired and wireless applications.</p>
<p><em>What Globe have in store for you: Learn, Build, Compete and Succeed</em></p>
<ul>
<li>Discover the different opportunities with Globe Labs</li>
<li>Learn how to use Telco tools and various development platforms to build innovative applications</li>
<li>Join the Globe Labs Challenge and compete amongst the best</li>
</ul>
<p><a href="http://phpugph.com/">PHP User Group Philippines, Inc.</a>, being one of the institution partners of Globe Labs, has been given 200 SLOTS for this upcoming big event.</p>
<p>We are inviting PHPUGPH members to attend. T-SHIRTS designed for PHPUGPH would be given away as freebies plus exciting raffle prizes awaits you…</p>
<p><em>***FIRST 300 individual registrants gets a GIFT***</em></p>
<p><strong>Below are some links of articles regarding the event:</strong><br />
From Businessworld (Entreprenews)<br />
<a href="http://entreprenews.com.ph/main.php?id=062508.gonzalez">http://entreprenews.com.p…in.php?id=062508.gonzalez</a><br />
From the Inquirer:<br />
<a href="http://technology.inquirer.net/infotech/infotech/view/20080625-144726/Globe-Labs-targets-3G-mobile-developers">http://technology.inquire…gets-3G-mobile-developers</a><br />
From the Manila Times:<br />
<a href="http://www.manilatimes.net/national/2008/june/27/yehey/techtimes/20080627tech5.html">http://www.manilatimes.ne…htimes/20080627tech5.html</a><br />
From Manila Bulletin:<br />
<a href="http://www.mb.com.ph/INFO20080627128372.html">http://www.mb.com.ph/INFO20080627128372.html</a><br />
From PCWorld:<br />
<a href="http://www.pcworld.com.ph/?_s=7&amp;_ss=P&amp;P=3&amp;PN=7313&amp;L=H&amp;II=485&amp;ID=H,485,PWP,PWP-16">http://www.pcworld.com.ph…5&amp;ID=H,485,PWP,PWP-16</a><br />
From Yugatech:<br />
<a href="http://www.yugatech.com/blog/telecoms/gt-opens-globe-labs-division/">http://www.yugatech.com/b…pens-globe-labs-division/</a><br />
From Globe Labs website:<br />
<a href="http://www.globelabs.com..../News/Forms/AllItems.aspx">http://www.globelabs.com…./News/Forms/AllItems.aspx</a></p>
<p><a href="../../talk/index.php/topic,5998.msg49415.html#msg49415">More information here</a></p>
<div id="facebook_like"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.phpugph.com%2Fblog%2F2008%2F07%2F23%2Fglobe-innovation-convention-globe-labs-launch-enriching-lives-through-innovative-communications%2F&amp;layout=standard&amp;show-faces=true&amp;width=450&amp;action=like&amp;font=arial&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:auto;"></iframe></div>]]></content:encoded>
			<wfw:commentRss>http://www.phpugph.com/blog/2008/07/23/globe-innovation-convention-globe-labs-launch-enriching-lives-through-innovative-communications/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Top 25 Active PHPUGPH Users</title>
		<link>http://www.phpugph.com/blog/2008/07/08/top-25-active-phpugph-users/</link>
		<comments>http://www.phpugph.com/blog/2008/07/08/top-25-active-phpugph-users/#comments</comments>
		<pubDate>Tue, 08 Jul 2008 03:25:03 +0000</pubDate>
		<dc:creator>aj</dc:creator>
				<category><![CDATA[Miscellaneous]]></category>
		<category><![CDATA[top25]]></category>
		<category><![CDATA[users]]></category>

		<guid isPermaLink="false">http://www.phpugph.com/blog/?p=44</guid>
		<description><![CDATA[Here are the top 25 active PHPUGPH users

]]></description>
			<content:encoded><![CDATA[<p>Here are the top 25 active PHPUGPH users</p>
<p><a href="http://wordle.net/gallery/wrdl/57017/PHPUGPH.com%27s_Top_25_Active_Users"><img class="alignnone" src="http://phpugph.com/blog/wp-content/uploads/2008/07/top25.jpg" alt="" /></a></p>
<div id="facebook_like"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.phpugph.com%2Fblog%2F2008%2F07%2F08%2Ftop-25-active-phpugph-users%2F&amp;layout=standard&amp;show-faces=true&amp;width=450&amp;action=like&amp;font=arial&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:auto;"></iframe></div>]]></content:encoded>
			<wfw:commentRss>http://www.phpugph.com/blog/2008/07/08/top-25-active-phpugph-users/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>How to use AuthComponent in Cakephp 1.2</title>
		<link>http://www.phpugph.com/blog/2008/06/17/how-i-use-authcomponent-in-cakephp-12/</link>
		<comments>http://www.phpugph.com/blog/2008/06/17/how-i-use-authcomponent-in-cakephp-12/#comments</comments>
		<pubDate>Tue, 17 Jun 2008 13:01:21 +0000</pubDate>
		<dc:creator>phpcurious</dc:creator>
				<category><![CDATA[Advanced]]></category>
		<category><![CDATA[Miscellaneous]]></category>
		<category><![CDATA[cakephp]]></category>
		<category><![CDATA[cakephp 1.2]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[PHP Frameworks]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.phpugph.com/blog/?p=41</guid>
		<description><![CDATA[How do you use AuthComponent and AclComponent to authenticate users? On app_controller.php,
put this code:
&#60;?php
class AppController extends Controller {
var $components = array(&#8217;Acl&#8217;,'Auth&#8217;,'Cookie&#8217;,'Session&#8217;);
function beforeFilter()  {
$this-&#62;Auth-&#62;loginAction = &#8216;/users/login&#8217;;
$this-&#62;Auth-&#62;loginRedirect = &#8216;/questions/Various-Topics&#8217;;
$this-&#62;Auth-&#62;authorize = &#8216;actions&#8217;;
}
?&#62;

and, on every controller, create a beforeFilter function and put this :
function beforeFilter()  {
//var_dump($this-&#62;params);
this-&#62;Auth-&#62;allow(&#8217;action1&#8242;,&#8217;action2&#8242;);
parent::beforeFilter();
}
Note, however , since AuthComponent is authenticating users based on controller actions [...]]]></description>
			<content:encoded><![CDATA[<p>How do you use AuthComponent and AclComponent to authenticate users? On app_controller.php,<br />
put this code:</p>
<div style="#FFFFFF;">&lt;?php</p>
<p>class AppController extends Controller {</p>
<p>var $components = array(&#8217;Acl&#8217;,'Auth&#8217;,'Cookie&#8217;,'Session&#8217;);</p>
<p>function beforeFilter()  {</p>
<p>$this-&gt;Auth-&gt;loginAction = &#8216;/users/login&#8217;;<br />
$this-&gt;Auth-&gt;loginRedirect = &#8216;/questions/Various-Topics&#8217;;</p>
<p>$this-&gt;Auth-&gt;authorize = &#8216;actions&#8217;;</p>
<p>}</p>
<p>?&gt;</p>
</div>
<p>and, on every controller, create a beforeFilter function and put this :</p>
<div style="#FFFFFF;">function beforeFilter()  {<br />
//var_dump($this-&gt;params);<br />
this-&gt;Auth-&gt;allow(&#8217;action1&#8242;,&#8217;action2&#8242;);<br />
parent::beforeFilter();<br />
}</div>
<p><span style="line-through;">Note, however , since AuthComponent is authenticating users based on controller actions with Acl, you will have to build your own cake acl too.</span></p>
<p>PS. Thanks to ditchx and primerg for the help!</p>
<div id="facebook_like"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.phpugph.com%2Fblog%2F2008%2F06%2F17%2Fhow-i-use-authcomponent-in-cakephp-12%2F&amp;layout=standard&amp;show-faces=true&amp;width=450&amp;action=like&amp;font=arial&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:auto;"></iframe></div>]]></content:encoded>
			<wfw:commentRss>http://www.phpugph.com/blog/2008/06/17/how-i-use-authcomponent-in-cakephp-12/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Colorful phpinfo();</title>
		<link>http://www.phpugph.com/blog/2008/03/05/colorful-phpinfo/</link>
		<comments>http://www.phpugph.com/blog/2008/03/05/colorful-phpinfo/#comments</comments>
		<pubDate>Tue, 04 Mar 2008 20:50:02 +0000</pubDate>
		<dc:creator>aj</dc:creator>
				<category><![CDATA[Beginner]]></category>
		<category><![CDATA[Miscellaneous]]></category>

		<guid isPermaLink="false">http://www.phpugph.com/blog/2008/03/05/colorful-phpinfo/</guid>
		<description><![CDATA[Just for fun and if you have nothing to do, run this custom phpinfo(); to get a view of the old and dull phpinfo with cool colors.
&#60;?php
ob_start();
phpinfo();
$phpinfo = ob_get_contents();
ob_end_clean();
preg_match_all(&#8216;/#[0-9a-fA-F]{6}/&#8217;, $phpinfo, $rawmatches);
for ($i = 0; $i &#60; count($rawmatches[0]); $i++)
$matches[] = $rawmatches[0][$i];
$matches = array_unique($matches);
$hexvalue = &#8216;0123456789abcdef&#8217;;
$j = 0;
foreach ($matches as $match)
{
$r = &#8216;#&#8217;;
$searches[$j] = $match;
for ($i = [...]]]></description>
			<content:encoded><![CDATA[<p>Just for fun and if you have nothing to do, run this custom phpinfo(); to get a view of the old and dull phpinfo with cool colors.</p>
<blockquote><p><code><span class="html"><span class="default">&lt;?php</span></span></code></p>
<p>ob_start<span class="keyword">();<br />
</span><span class="default">phpinfo</span><span class="keyword">();<br />
</span><span class="default">$phpinfo </span><span class="keyword">= </span><span class="default">ob_get_contents</span><span class="keyword">();<br />
</span><span class="default">ob_end_clean</span><span class="keyword">();</span></p>
<p><span class="default">preg_match_all</span><span class="keyword">(</span><span class="string">&#8216;/#[0-9a-fA-F]{6}/&#8217;</span><span class="keyword">, </span><span class="default">$phpinfo</span><span class="keyword">, </span><span class="default">$rawmatches</span><span class="keyword">);<br />
for (</span><span class="default">$i </span><span class="keyword">= </span><span class="default">0</span><span class="keyword">; </span><span class="default">$i </span><span class="keyword">&lt; </span><span class="default">count</span><span class="keyword">(</span><span class="default">$rawmatches</span><span class="keyword">[</span><span class="default">0</span><span class="keyword">]); </span><span class="default">$i</span><span class="keyword">++)<br />
</span><span class="default">$matches</span><span class="keyword">[] = </span><span class="default">$rawmatches</span><span class="keyword">[</span><span class="default">0</span><span class="keyword">][</span><span class="default">$i</span><span class="keyword">];<br />
</span><span class="default">$matches </span><span class="keyword">= </span><span class="default">array_unique</span><span class="keyword">(</span><span class="default">$matches</span><span class="keyword">);</span></p>
<p><span class="default">$hexvalue </span><span class="keyword">= </span><span class="string">&#8216;0123456789abcdef&#8217;</span><span class="keyword">;</span></p>
<p><span class="default">$j </span><span class="keyword">= </span><span class="default">0</span><span class="keyword">;<br />
foreach (</span><span class="default">$matches </span><span class="keyword">as </span><span class="default">$match</span><span class="keyword">)<br />
{</span></p>
<p><span class="default">$r </span><span class="keyword">= </span><span class="string">&#8216;#&#8217;</span><span class="keyword">;<br />
</span><span class="default">$searches</span><span class="keyword">[</span><span class="default">$j</span><span class="keyword">] = </span><span class="default">$match</span><span class="keyword">;<br />
for (</span><span class="default">$i </span><span class="keyword">= </span><span class="default">0</span><span class="keyword">; </span><span class="default">$i </span><span class="keyword">&lt; </span><span class="default">6</span><span class="keyword">; </span><span class="default">$i</span><span class="keyword">++)<br />
</span><span class="default">$r </span><span class="keyword">.= </span><span class="default">substr</span><span class="keyword">(</span><span class="default">$hexvalue</span><span class="keyword">, </span><span class="default">mt_rand</span><span class="keyword">(</span><span class="default">0</span><span class="keyword">, </span><span class="default">15</span><span class="keyword">), </span><span class="default">1</span><span class="keyword">);<br />
</span><span class="default">$replacements</span><span class="keyword">[</span><span class="default">$j</span><span class="keyword">++] = </span><span class="default">$r</span><span class="keyword">;<br />
unset(</span><span class="default">$r</span><span class="keyword">);<br />
}</span></p>
<p>for (<span class="default">$i </span><span class="keyword">= </span><span class="default">0</span><span class="keyword">; </span><span class="default">$i </span><span class="keyword">&lt; </span><span class="default">count</span><span class="keyword">(</span><span class="default">$searches</span><span class="keyword">); </span><span class="default">$i</span><span class="keyword">++)<br />
</span><span class="default">$phpinfo </span><span class="keyword">= </span><span class="default">str_replace</span><span class="keyword">(</span><span class="default">$searches</span><span class="keyword">, </span><span class="default">$replacements</span><span class="keyword">, </span><span class="default">$phpinfo</span><span class="keyword">);<br />
echo </span><span class="default">$phpinfo</span><span class="keyword">;<br />
</span><span class="default">?&gt;</span></p></blockquote>
<p>Once you&#8217;re done, refresh your browser to see more color schemes. Very old, but still very cool. <img src='http://www.phpugph.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p><a href="http://ca3.php.net/manual/en/function.phpinfo.php#57532">Credit</a></p>
<p>&#8211;aj</p>
<div id="facebook_like"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.phpugph.com%2Fblog%2F2008%2F03%2F05%2Fcolorful-phpinfo%2F&amp;layout=standard&amp;show-faces=true&amp;width=450&amp;action=like&amp;font=arial&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:auto;"></iframe></div>]]></content:encoded>
			<wfw:commentRss>http://www.phpugph.com/blog/2008/03/05/colorful-phpinfo/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
