<?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:series="http://unfoldingneurons.com/"
	>

<channel>
	<title>Programming Ideas, Logics, Tips and Tricks &#187; php</title>
	<atom:link href="http://www.sajithmr.me/category/php/feed" rel="self" type="application/rss+xml" />
	<link>http://www.sajithmr.me</link>
	<description></description>
	<lastBuildDate>Sat, 07 Apr 2012 16:30:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Tooltip using CSS3 &#8211; HTML5 iPhone Website Part 3</title>
		<link>http://www.sajithmr.me/tooltip-using-css3-html5-iphone-website-part-3</link>
		<comments>http://www.sajithmr.me/tooltip-using-css3-html5-iphone-website-part-3#comments</comments>
		<pubDate>Sat, 07 Apr 2012 16:30:06 +0000</pubDate>
		<dc:creator>Mr Me</dc:creator>
				<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.sajithmr.me/?p=1133</guid>
		<description><![CDATA[This post is part of series HTML5 iPhone Website How can we make a tool tip bubble using CSS3. A tool tip is a box and an arrow at the edge pointing something. We can create this using two divs or one div and a span, one in normal mode and the other rotate through [...]]]></description>
			<content:encoded><![CDATA[<p>This post is part of series HTML5 iPhone Website</p>
<p>How can we make a tool tip bubble using CSS3.</p>
<p>A tool tip is a box and an arrow at the edge pointing something. We can create this using two divs or one div and a span, one in normal mode and the other rotate through 90 degree or nearer.</p>
<p><a href="http://www.sajithmr.me/wp-content/uploads/2012/04/arch.jpg"><img class="alignnone size-full wp-image-1137" title="arch" src="http://www.sajithmr.me/wp-content/uploads/2012/04/arch.jpg" alt="html5 tool tip idea" width="295" height="206" /></a></p>
<p>Then, we make them rounded corners, borders, and by changing z-index, we move the smaller div behind the main div, then it will look like this:</p>
<p><a href="http://www.sajithmr.me/wp-content/uploads/2012/04/tool-tip.png"><img class="alignnone size-full wp-image-1138" title="tool-tip" src="http://www.sajithmr.me/wp-content/uploads/2012/04/tool-tip.png" alt="HTML5 tooltip" width="358" height="257" /></a></p>
<p>&nbsp;</p>
<p>Here is the CSS for the above tool tip</p>
<pre class="crayon-plain-tag"><code>.menutool {

position:absolute;right:10px; width: 180px;height: 61px; padding-top: 15px; padding-left: 22px; margin-top: 10px;;
background: #f0f0f0;

-webkit-border-radius: 8px;
-moz-border-radius: 8px;
border-radius: 8px;

-webkit-box-shadow: 2px 2px 3px 1px #8c8c8c;
-moz-box-shadow: 2px 2px 3px 1px #8c8c8c;
box-shadow: 2px 2px 3px 1px #8c8c8c;

border: 1px solid #8a8a8a;

z-index: 1000;

display: none;

}

.menutool span {width: 15px; height: 15px; top: -9px ; position: absolute; right: 13px ;

-moz-transform: scale(1) rotate(45deg) translate(0px, 0px) skew(0deg, 0deg);
-webkit-transform: scale(1) rotate(45deg) translate(0px, 0px) skew(0deg, 0deg);
-o-transform: scale(1) rotate(45deg) translate(0px, 0px) skew(0deg, 0deg);
-ms-transform: scale(1) rotate(45deg) translate(0px, 0px) skew(0deg, 0deg);
transform: scale(1) rotate(45deg) translate(0px, 0px) skew(0deg, 0deg);

border-top: 1px solid #8a8a8a;
border-left: 1px solid #8a8a8a;

background: #f0f0f0;

z-index: 999;

}</code></pre>
<p>Another example for tooltip bubble, (this is for bookmark tool tip for iPhone)</p>
<p><a href="http://www.sajithmr.me/wp-content/uploads/2012/04/Bookmark-bubble.png"><img class="alignnone size-full wp-image-1139" title="Bookmark-bubble" src="http://www.sajithmr.me/wp-content/uploads/2012/04/Bookmark-bubble.png" alt="iphone bookmark tool tip " width="344" height="441" /></a></p>
<p>Here is the CSS for the above image</p>
<pre class="crayon-plain-tag"><code>.bmpopup {

background: none repeat scroll 0 0 #F0F0F0;
border: 1px solid #8A8A8A;
border-radius: 8px 8px 8px 8px;
bottom: 13px;
box-shadow: 2px 2px 3px 1px #8C8C8C;
height: 60px;
left: 16%;
margin-top: 10px;
padding: 8px 12px;
position: fixed;
text-align: justify;
width: 180px;
z-index: 1000;
display:none;

}

.bmpopup span {width: 15px; height: 15px;&nbsp; bottom: -9px ; position: absolute; left: 49% ;

-moz-transform: scale(1) rotate(45deg) translate(0px, 0px) skew(0deg, 0deg);
-webkit-transform: scale(1) rotate(45deg) translate(0px, 0px) skew(0deg, 0deg);
-o-transform: scale(1) rotate(45deg) translate(0px, 0px) skew(0deg, 0deg);
-ms-transform: scale(1) rotate(45deg) translate(0px, 0px) skew(0deg, 0deg);
transform: scale(1) rotate(45deg) translate(0px, 0px) skew(0deg, 0deg);

border-right: 1px solid #8a8a8a;
border-bottom: 1px solid #8a8a8a;

background: #f0f0f0;

z-index: 999;

}</code></pre><p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sajithmr.me/tooltip-using-css3-html5-iphone-website-part-3/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<series:name><![CDATA[HTML5 iPhone Site Development]]></series:name>
	</item>
		<item>
		<title>CSS 3.0 Tools &#8211;  Don&#8217;t reinvent the wheel</title>
		<link>http://www.sajithmr.me/css-3-0-tools-dont-reinvent-the-wheel</link>
		<comments>http://www.sajithmr.me/css-3-0-tools-dont-reinvent-the-wheel#comments</comments>
		<pubDate>Fri, 06 Apr 2012 16:03:16 +0000</pubDate>
		<dc:creator>Mr Me</dc:creator>
				<category><![CDATA[html5]]></category>
		<category><![CDATA[PhoneGap]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.sajithmr.me/?p=1121</guid>
		<description><![CDATA[This article is part of  series, &#8220;HTML5 iPhone Website Development&#8221; During your CSS creation, whenever  you think you need a gradient or rounder corner or a rotation, we can use the advantage of CSS3. Don&#8217;t need to go to W3Schools or any CSS 3 documentation, that is old style Use online tools, example and the [...]]]></description>
			<content:encoded><![CDATA[<p>This article is part of  series, &#8220;HTML5 iPhone Website Development&#8221;</p>
<p>During your CSS creation, whenever  you think you need a gradient or rounder corner or a rotation, we can use the advantage of CSS3.</p>
<p>Don&#8217;t need to go to W3Schools or any CSS 3 documentation, that is old style <img src='http://www.sajithmr.me/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
<p>Use online tools, example and the one I mostly used: <a href="http://css3generator.com/">http://css3generator.com/</a></p>
<p>Here you can create css3 for most of the browsers support CSS3. In our case, we just need to take the web-kit part, as we are making this for iPhone. However, during your learning, better to copy full CSS, so that you can see the changes using your Firefox, I  know you will be using Firefox for development and html slicing with Firebug <img src='http://www.sajithmr.me/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
<p>So copy the full CSS from css3generator.com for the beginning. In the final stages of your development, you can remove unwanted css if you want this site in iPhone only.</p>
<p>Using this tool you can set</p>
<p>Border Radius, Box Shadow, Text Shadow, RGBA, Font-Face for custom fonts, Multiple Column divs, box sizing and resizing, Outlines, transitions, transformations, Selectors, Different Gradients etc.</p>
<p>Some output of these CSS3 looks like this:<br />
<strong><br />
Search box design (rounded corner and shadow) :</strong></p>
<p><a href="http://www.sajithmr.me/wp-content/uploads/2012/04/searchbox.png"><img class="alignnone size-full wp-image-1126" title="searchbox" src="http://www.sajithmr.me/wp-content/uploads/2012/04/searchbox.png" alt="" width="396" height="47" /></a></p>
<pre class="crayon-plain-tag"><code>.searchbox .searchtext{

border: none;
border-top-left-radius: 5px;
border-bottom-left-radius: 5px;
-webkit-border-bottom-right-radius: 0px;
-webkit-border-top-right-radius: 0px;
-moz-box-shadow: inset 0 0 5px #999;
-webkit-box-shadow: inset 0 0 5px #999;
box-shadow: inset 0 0 5px #999;
border-right: 1px solid #aeaeac;

color: #7f7f7e;
font-size: 14px;
width: 84%;
float: left;
height: 25px;
padding: 2px 2px 2px 4px;
margin-left: 4px;
margin-top: 4px;

}</code></pre>
<p>Gradient Menu Background:</p>
<p><a href="http://www.sajithmr.me/wp-content/uploads/2012/04/menu-background.png"><img class="alignnone size-full wp-image-1127" title="menu-background" src="http://www.sajithmr.me/wp-content/uploads/2012/04/menu-background.png" alt="" width="369" height="52" /></a></p>
<pre class="crayon-plain-tag"><code>.menu-container ul li {
padding: 10px;
border-bottom: 1px solid #c6c6c6;
background: #e5e5e5; /* Old browsers */
background: -moz-linear-gradient(top, #e5e5e5 0%, #ffffff 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#e5e5e5), color-stop(100%,#ffffff)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, #e5e5e5 0%,#ffffff 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, #e5e5e5 0%,#ffffff 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, #e5e5e5 0%,#ffffff 100%); /* IE10+ */
background: linear-gradient(top, #e5e5e5 0%,#ffffff 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#e5e5e5', endColorstr='#ffffff',GradientType=0 ); /* IE6-9 */

}</code></pre><p><p>Rounded shaped button:</p>
<p><a href="http://www.sajithmr.me/wp-content/uploads/2012/04/Round-button.png"><img class="alignnone size-full wp-image-1128" title="Round-button" src="http://www.sajithmr.me/wp-content/uploads/2012/04/Round-button.png" alt="" width="102" height="46" /></a></p>
<pre class="crayon-plain-tag"><code>a.green-button {

background: #00a943; /* Old browsers */
background: -moz-linear-gradient(top, #00a943 0%, #00a341 50%, #008d18 50%, #008d18 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#00a943), color-stop(50%,#00a341), color-stop(50%,#008d18), color-stop(100%,#008d18)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, #00a943 0%,#00a341 50%,#008d18 50%,#008d18 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, #00a943 0%,#00a341 50%,#008d18 50%,#008d18 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, #00a943 0%,#00a341 50%,#008d18 50%,#008d18 100%); /* IE10+ */
background: linear-gradient(top, #00a943 0%,#00a341 50%,#008d18 50%,#008d18 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00a943', endColorstr='#008d18',GradientType=0 ); /* IE6-9 */

border: 1px solid #848484;
border-radius: 5px 5px 5px 5px;
color: #FFFFFF;
display: block;
font-size: 16px;
font-weight: bold;
padding: 8px 15px 8px;
text-align: center;
text-decoration: none;
width: 84%;
margin: 20px 0px 20px 4%;
float: left;
}</code></pre><p><p>
<p>In the next post, we can see different designs like Facebook Button, Bubble tool tips, Loading indicators etc in CSS3 in 3-4 lines</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sajithmr.me/css-3-0-tools-dont-reinvent-the-wheel/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<series:name><![CDATA[HTML5 iPhone Site Development]]></series:name>
	</item>
		<item>
		<title>HTML5 iPhone site development &#8211; Part 1</title>
		<link>http://www.sajithmr.me/html5-iphone-site-development-part-1</link>
		<comments>http://www.sajithmr.me/html5-iphone-site-development-part-1#comments</comments>
		<pubDate>Thu, 05 Apr 2012 15:22:41 +0000</pubDate>
		<dc:creator>Mr Me</dc:creator>
				<category><![CDATA[html5]]></category>
		<category><![CDATA[PhoneGap]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.sajithmr.me/?p=1113</guid>
		<description><![CDATA[Started writing a series post after a long time for HTML5 iPhone Website Development. Read my previous Series here: Gmail Architecture Online Photoshop Basic Structure As usual start designing your website with iPhone layout in mind. Things to remember before you design 1) iPhone support HTML5 and CSS3 2) iPhone has two orientations. 3) iPhone [...]]]></description>
			<content:encoded><![CDATA[<p>Started writing a series post after a long time for HTML5 iPhone Website Development.</p>
<p>Read my previous Series here:</p>
<p><a title="Gmail Architecture" href="http://www.sajithmr.me/series/gmail-architecture">Gmail Architecture </a></p>
<p><a title="Online Photoshop" href="http://www.sajithmr.me/series/online-photoshop">Online Photoshop</a></p>
<h3>Basic Structure</h3>
<p>As usual start designing your website with iPhone layout in mind. Things to remember before you design</p>
<p>1) iPhone support HTML5 and CSS3</p>
<p>2) iPhone has two orientations.</p>
<p>3) iPhone has no built in Menu for browser (mobile safari)</p>
<p>4) iPhone has a footer navigation by default in Safari</p>
<p>Why these things are important before we design something in Photoshop ?</p>
<p>Because, since iPhone has CSS3 support which has a lot of design advantages like rounded corner, gradients, rotation, dual background etc, the design can make a design which is suitable for a HTML developer to slice. In normal website development, we achieve these effects using small or big images in repeated mode. Here in CSS3.0, it all done using 2-3 lines of plain text in CSS file.</p>
<p>Since iPhone has 2 orientation, it is up to the product designer to decide whether we want two layouts of just one. Because iPhone can use two different CSS files for different orientation. I will cover this in coming chapters.</p>
<p>The number of controls or button in mobile safari browser is less, and hence we need to provide custom menus in our designs for each navigation, say go to home page, or my galleries, terms page etc. Also every click is just taps, and there is no scope for hover events, which is used in good consideration in majority of the Desktop websites.</p>
<p>Since safari has a footer navigation already, we can avoid many back buttons in our designs. Also can think about tools like Bookmark is placed at bottom. So, if you want to show a tool tip to bookmark your site, you can locate that tool tip button on the footer. (In coming series I will show you how quickly we can create a tool tip bubble for bookmark just with css3.o)</p>
<h4>Special Tags</h4>
<p>Once the design is done, before we start slicing, need to check some special tags available for iPhone (I would say for many latest handsets)</p>
<p><strong>Doctype and HTML tag:</strong></p><pre class="crayon-plain-tag"><code>&lt;!DOCTYPE html&gt;
&lt;html xml:lang=&quot;en&quot; lang=&quot;en&quot;&gt;</code></pre>
<p><strong>Meta tags:</strong></p>
<pre class="crayon-plain-tag"><code>&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot; /&gt;
&lt;meta name=&quot;viewport&quot; content=&quot;width = device-width,minimum-scale=1.0,maximum-scale=1.0, user-scalable=no&quot; /&gt;
&lt;meta name=&quot;HandheldFriendly&quot; content=&quot;True&quot; /&gt;
&lt;meta name=&quot;apple-mobile-web-app-capable&quot; content=&quot;yes&quot; /&gt;</code></pre><p><p>For iPhone, it is better to display a website in full width mode, without any zoom options, these meta tags simply does this.</p>
<p>The rest of the slicing, just follow typical div-css float model design (of course no table)</p>
<p>Continue like normal CSS slicing, and think about using CSS3.0 techniques whenever needed. All backgrounds, gradients, shadows, borders, round corners, rotations etc, use CSS3.0. In the next chapter, I will show you which are the tools we can use to create css3.0 for a particular design.  Don&#8217;t reinvent the wheel by learning all css3.0 techniques, Google is there for you <img src='http://www.sajithmr.me/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
<p>See you in next series post, &#8220;CSS3.0 tools &#8211; don&#8217;t reinvent the wheel&#8221;</p>
<p><strong>Tips:</strong></p>
<p>You can create custom bookmark icon using the following header, this is same like favicon for Desktop browsers:</p>
<pre class="crayon-plain-tag"><code>&lt;link rel=&quot;apple-touch-icon&quot; href=&quot;/images/apple-touch-icon.png&quot;/&gt;</code></pre></p>
<p>Thanks</p>
<p>Sajith</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sajithmr.me/html5-iphone-site-development-part-1/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<series:name><![CDATA[HTML5 iPhone Site Development]]></series:name>
	</item>
		<item>
		<title>Install Asterisk in Mac (including Lion)</title>
		<link>http://www.sajithmr.me/install-asterisk-in-mac-including-lion</link>
		<comments>http://www.sajithmr.me/install-asterisk-in-mac-including-lion#comments</comments>
		<pubDate>Mon, 09 Jan 2012 15:10:18 +0000</pubDate>
		<dc:creator>Mr Me</dc:creator>
				<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.sajithmr.me/?p=1081</guid>
		<description><![CDATA[Mac port packages are available for Asterisk in mac As a first step, do a port update to get all new packages: port selfupdate Step 2: sudo port install asterisk [This is a long process, it will start installing many dependancy packages] Possible errors you can see: 1) Image error: /opt/local/bin/a2p is being used by [...]]]></description>
			<content:encoded><![CDATA[<p>Mac port packages are available for Asterisk in mac</p>
<p>As a first step, do a port update to get all new packages:</p>
<p>port selfupdate</p>
<p>Step 2:</p>
<p>sudo port install asterisk</p>
<p>[This is a long process, it will start installing many dependancy packages]</p>
<p>Possible errors you can see:</p>
<p>1) Image error: /opt/local/bin/a2p is being used by the active perl5.8 port.  Please deactivate this port first, or use &#8216;port -f activate perl5&#8242; to force the activation.</p>
<p>Solution: Check all perl version installed using the given command:</p>
<p>sudo port installed | grep perl</p>
<p>Uninstall old perl version will solve this problem.</p>
<p>eg: port uninstall perl5 @5.8.9_0</p>
<p>sudo port uninstall   perl5.8 @5.8.9_3</p>
<p>Also if you can run an update outdate package command, this will be alos helpful:</p>
<p>sudo port upgrade outdated</p>
<p>Continue again the command: sudo port install asterisk</p>
<p>2) Error: Target org.macports.configure returned: configure failure: shell command failed (see log for details).</p>
<p>portaudio failed to install.</p>
<p>Solution: Download port audio files from portaudio website.  Replace the source files of portaudio local folded  (where the error is located) and Manually install it using the following commands</p>
<p>sudo /usr/bin/make -j2 -w all<br />
sudo /usr/bin/make install</p>
<p>After installation, link this portaudio with port installation using the following command:</p>
<p>port -f activate portaudio</p>
<p>Continue running this command: sudo port install asterisk</p>
<p>3) When installing Asterisk, you may get another error:</p>
<p>For a undefined variable: snmp/agent.c:830: error: ‘RONLY’ undeclared</p>
<p>Solution: Find the file snmp/agent.c and add #define RONLY 1</p>
<p>If Asterisk still fail to install, download the package file from asterisk website and install manually.</p>
<p>Before compiling this, edit makeopts file and update the line:</p>
<p>change &#8220;CONFIG_LDFLAGS=&#8221; to &#8220;CONFIG_LDFLAGS= /usr/lib/bundle1.o</p>
<p>Good luck</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sajithmr.me/install-asterisk-in-mac-including-lion/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Pass parameter to an iframe embedded Fan Page in Facebook</title>
		<link>http://www.sajithmr.me/pass-parameter-to-an-iframe-embedded-fan-page-in-facebook</link>
		<comments>http://www.sajithmr.me/pass-parameter-to-an-iframe-embedded-fan-page-in-facebook#comments</comments>
		<pubDate>Thu, 05 Jan 2012 14:28:33 +0000</pubDate>
		<dc:creator>Mr Me</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[php source code]]></category>
		<category><![CDATA[webworld]]></category>

		<guid isPermaLink="false">http://www.sajithmr.me/?p=1076</guid>
		<description><![CDATA[Those who use their on hosting inside an iframe  for Facebook Fan page, there is a mechanism to pass additional parameters to your iframe page if you need to create a deep URL. A normal Fan page of Facebook would like this: https://www.facebook.com/apps/application.php?id=xxxxxxxxxx&#038;sk=app_XXXXXX This Url will call your domain, say example.com inside the iframe to [...]]]></description>
			<content:encoded><![CDATA[<p>Those who use their on hosting inside an iframe  for Facebook Fan page, there is a mechanism to pass additional parameters to your iframe page if you need to create a deep URL.</p>
<p>A normal Fan page of Facebook would like this:</p>
<p>https://www.facebook.com/apps/application.php?id=xxxxxxxxxx&#038;sk=app_XXXXXX</p>
<p>This Url will call your domain, say example.com inside the iframe to load the page.</p>
<p>Each time the iframe is loaded, Facebook do a POST to this iframe URL with some data which we can use to identify the status of the user, eg, whether the user already liked this page, or any other parameter is passed through the fan page url.</p>
<p>Facebook keep app_data variable for developers to pass additional parameters to your iframe page.</p>
<p>eg: https://www.facebook.com/apps/application.php?id=xxxxxxxxxx&amp;sk=app_XXXXXX&amp;app_data=mydata</p>
<p>To retrieve this information, in PHP, use can use the following code:</p>
<p>&lt;?php</p>
<p>if(isset($_REQUEST["signed_request"]))<br />
{</p>
<p>$signed_request = $_REQUEST["signed_request"];<br />
// $_POST also work, but better with $_REQUEST</p>
<p>list($encoded_sig, $payload) = explode(&#8216;.&#8217;, $signed_request, 2);</p>
<p>$data = json_decode(base64_decode(strtr($payload, &#8216;-_&#8217;, &#8216;+/&#8217;)), true);</p>
<p>if(isset($data['app_data']))<br />
{<br />
$mydata = $data['app_data']; //here you can get the value you passed<br />
}<br />
}</p>
<p>?&gt;</p>
<p>Check my article <a title="Like to see content" href="http://www.sajithmr.me/facebook-like-to-see-the-content">here</a>  to see how you can get the &#8216;like&#8217; status using PHP</p>
<p>Courtesy: From various online sources</p>
<p>Thanks<br />
Sajith</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sajithmr.me/pass-parameter-to-an-iframe-embedded-fan-page-in-facebook/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jRecorder 1.1 with Preview option is released</title>
		<link>http://www.sajithmr.me/jrecorder1-1-with-preview-option-is-released</link>
		<comments>http://www.sajithmr.me/jrecorder1-1-with-preview-option-is-released#comments</comments>
		<pubDate>Wed, 14 Dec 2011 17:39:44 +0000</pubDate>
		<dc:creator>Mr Me</dc:creator>
				<category><![CDATA[Downloads]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[general]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[php source code]]></category>
		<category><![CDATA[webworld]]></category>

		<guid isPermaLink="false">http://www.sajithmr.me/?p=1071</guid>
		<description><![CDATA[Two months ago, I published a jQuery plugin to record audio from browser (without any Media server) called jRecorder I got many responses and requests to maintain the code with new enhancements and some bug fixes. Based on that, a new version (1.1) is released which has the capability to preview the recorded audio before [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone" src="http://www.sajithmr.me/wp-content/uploads/2011/10/recorder.png" alt="" width="326" height="124" /></p>
<p>Two months ago, I published a jQuery plugin to record audio from browser (without any Media server) called <a title="jRecorder - jQuery Plugin" href="http://www.sajithmr.me/jrecorder-jquery" target="_blank">jRecorder</a></p>
<p>I got many responses and requests to maintain the code with new enhancements and some bug fixes.</p>
<p>Based on that, a new version (<a title="jRecorder with Preview" href="http://www.sajithmr.me/jrecorder/index.html" target="_blank">1.1</a>) is released which has the capability to preview the recorded audio before sending to the server.</p>
<p>See the example implementation and documentation <a title="jRecorder - jQuery Plugin" href="http://www.sajithmr.me/jrecorder/index.html" target="_blank">here</a>.</p>
<p>Also I made this source open and available for anybody to develop at: https://github.com/sythoos/jRecorder/</p>
<p>Thanks</p>
<p>Sajith</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sajithmr.me/jrecorder1-1-with-preview-option-is-released/feed</wfw:commentRss>
		<slash:comments>33</slash:comments>
		</item>
		<item>
		<title>Adobe Air 3 Beta for Flash Builder</title>
		<link>http://www.sajithmr.me/adobe-air-3-beta-for-flash-builder</link>
		<comments>http://www.sajithmr.me/adobe-air-3-beta-for-flash-builder#comments</comments>
		<pubDate>Sat, 08 Oct 2011 14:48:52 +0000</pubDate>
		<dc:creator>Mr Me</dc:creator>
				<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.sajithmr.me/?p=1003</guid>
		<description><![CDATA[Adobe released Air 3 this month. The new Flash Builder is coming with Adobe Air 3. Those who already installed Flash Builder can upgrade the Air SDK to 3. This video will help you in this case. Thanks CrosByMichaela for sharing this. Air 3 has many support for mobile development. For example, it has now [...]]]></description>
			<content:encoded><![CDATA[<p>Adobe released Air 3 this month. The new Flash Builder is coming with Adobe Air 3. Those who already installed Flash Builder can upgrade the Air SDK to 3. This video will help you in this case.</p>
<p>Thanks CrosByMichaela for sharing this.</p>
<p>Air 3 has many support for mobile development. For example, it has now support of iPhone application background running features such as play audio, access internet, use voice service, and location based services.</p>
<p>Flash build iPhone profile xml file now supports properties like:</p><pre class="crayon-plain-tag"><code>&nbsp;&nbsp;&nbsp; &amp;lt;key&amp;gt;UIDeviceFamily&amp;lt;/key&amp;gt;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &amp;lt;array&amp;gt;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &amp;lt;string&amp;gt;1&amp;lt;/string&amp;gt;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &amp;lt;string&amp;gt;2&amp;lt;/string&amp;gt;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &amp;lt;/array&amp;gt;
&nbsp;&nbsp;&nbsp;&nbsp; &amp;lt;key&amp;gt;UIBackgroundModes&amp;lt;/key&amp;gt;
&nbsp;&nbsp;&nbsp;&nbsp; &amp;lt;array&amp;gt;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &amp;lt;string&amp;gt;audio&amp;lt;/string&amp;gt;
&nbsp;&nbsp;&nbsp;&nbsp; &amp;lt;/array&amp;gt;
&nbsp;&nbsp;&nbsp;&nbsp; &amp;lt;key&amp;gt;UIRequiresPersistentWiFi&amp;lt;/key&amp;gt;
&nbsp;&nbsp;&nbsp;&nbsp; &amp;lt;string&amp;gt;YES&amp;lt;/string&amp;gt;</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://www.sajithmr.me/adobe-air-3-beta-for-flash-builder/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Audio recording using Flash</title>
		<link>http://www.sajithmr.me/audio-recording-using-flash</link>
		<comments>http://www.sajithmr.me/audio-recording-using-flash#comments</comments>
		<pubDate>Fri, 08 Jul 2011 10:46:19 +0000</pubDate>
		<dc:creator>Mr Me</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[audio]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[media server]]></category>
		<category><![CDATA[recording]]></category>
		<category><![CDATA[red5]]></category>

		<guid isPermaLink="false">http://www.sajithmr.me/audio-recording-using-flash/</guid>
		<description><![CDATA[Audio recording using Flash ====================== To Record voice from web we need the following thing: 1) A flash media server (eg: Adobe Media Server [paid] or Red 5 [free]) 2) Java6 3) Webserver (eg, Apache, PHP) 4) A flash client app to record voice The one I used ========= We used Red 5 Server, because [...]]]></description>
			<content:encoded><![CDATA[<p style="clear: both;"><strong>Audio recording using Flash</strong><br />
======================</p>
<p style="clear: both;">To Record voice from web we need the following thing:</p>
<p style="clear: both;">1) A flash media server (eg: Adobe Media Server [paid] or Red 5 [free])</p>
<p style="clear: both;">2) Java6</p>
<p style="clear: both;">3) Webserver (eg, Apache, PHP)</p>
<p style="clear: both;">4) A flash client app to record voice</p>
<p style="clear: both;"><strong>The one I used</strong><br />
=========</p>
<p style="clear: both;">We used Red 5 Server, because it is FREE and Open Source</p>
<p style="clear: both;">We can proceed with our Apache + PHP</p>
<p style="clear: both;">Flash Recorder APP from AVChat (They have Free Trial recorder for 30 days and the Full version costs around £50)</p>
<p style="clear: both;"><strong>Installation</strong><br />
=======</p>
<p style="clear: both;">Install Java 6 (find the correct build based on 64 bit or 32 bit processor)</p>
<p style="clear: both;">install RED 5 (Download from http://code.google.com/p/red5/)</p>
<p style="clear: both;">Run RED 5 and test the installation</p>
<p style="clear: both;">Open a browser and type: http://127.0.0.1:5080/</p>
<p style="clear: both;">If the installation is success, you can see the RED5 page</p>
<p style="clear: both;">Try to install some demo app and try those demos</p>
<p style="clear: both;">You need a Browser with Flash support to test the demos (Allow the security options)</p>
<p style="clear: both;"><strong>Voice Recorder Client App</strong><br />
=================<br />
You can many FREE recording app over internet. Even you can get the Action Script for Voice recording and you can create your-own Flash recorder if you know Flash</p>
<p style="clear: both;">A better voice recorder app can be found at http://flvar.com/ which has PHP and ASP support where you can save/manipulate the recorded file</p>
<p style="clear: both;"><strong>The AVChat App</strong><br />
===========</p>
<p style="clear: both;">Download the chat app from the site http://flvar.com/</p>
<p style="clear: both;">There are two sets of folders, on for red5 and one for web server.</p>
<p style="clear: both;">Put the red5 projects in your webapps folder of RED5 server root</p>
<p style="clear: both;">When you download the app, you&#8217;ll get a license key. Enter this key to the property file inside the red5 server app.</p>
<p style="clear: both;">Put the web server folder in your apache web root</p>
<p style="clear: both;">Open avc_settings.php and update the path of RED5 with your RED5 server path (see the example in the document)</p>
<p style="clear: both;">Try accessing this project with your web browser, if you can see the flash player , it means your web app works fine</p>
<p style="clear: both;">Try start recording, and if you can record, which means your RED5 server configuration is fine</p>
<p style="clear: both;">Stop recording and click &#8220;Save&#8221;</p>
<p style="clear: both;">Check for the recorded flv file in the RED5 stream folder.</p>
<p style="clear: both;">This &#8220;Save&#8221; action trigger save_audio_to_db.php where we get details of the recorded stream and we can use PHP to manipulate that.</p>
<p style="clear: both;">For example, to move the flv file into webserver root, or use FFMPEG to convert the FLV format to WAV or MP3 etc</p>
<p style="clear: both;">Enjoy Voice Recording <img src='http://www.sajithmr.me/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p style="clear: both;">&#8211; Sajith</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sajithmr.me/audio-recording-using-flash/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Find and Remove a particular folder or file in Mac/Linux</title>
		<link>http://www.sajithmr.me/find-and-remove-a-particular-folder-or-file-in-maclinux</link>
		<comments>http://www.sajithmr.me/find-and-remove-a-particular-folder-or-file-in-maclinux#comments</comments>
		<pubDate>Tue, 05 Jul 2011 13:32:28 +0000</pubDate>
		<dc:creator>Mr Me</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[folder]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[remove]]></category>
		<category><![CDATA[svn]]></category>

		<guid isPermaLink="false">http://www.sajithmr.me/find-and-remove-a-particular-folder-or-file-in-maclinux/</guid>
		<description><![CDATA[Open a Terminal, and browser to the folder we want to start recursive deletion and run the following command , for example to delete all folder named .svn find ./ -name &#8220;.svn&#8221; &#124; xargs rm -Rf &#160;]]></description>
			<content:encoded><![CDATA[<p style="clear: both;">Open a Terminal, and browser to the folder we want to start recursive deletion and run the following command , for example to delete all folder named .svn</p>
<p>find ./ -name &#8220;.svn&#8221; | xargs rm -Rf</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sajithmr.me/find-and-remove-a-particular-folder-or-file-in-maclinux/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>QR Code Generator</title>
		<link>http://www.sajithmr.me/qr-code-generator</link>
		<comments>http://www.sajithmr.me/qr-code-generator#comments</comments>
		<pubDate>Sun, 22 May 2011 17:21:06 +0000</pubDate>
		<dc:creator>Mr Me</dc:creator>
				<category><![CDATA[general]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.sajithmr.me/?p=952</guid>
		<description><![CDATA[A PHP based tool to generate QR Code for your website URL. http://qrcode-factory.com/ Now a days, the usage of QR code is higher and this is becoming one of the PR generating mechanisms. QR code is another kind of bar code called matrix bar code.  QR stands for Quick Reader (source: WikiPedia) The tool is [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.sajithmr.me/wp-content/uploads/2011/05/sajithmr.png"><img class="alignnone size-full wp-image-954" title="sajithmr" src="http://www.sajithmr.me/wp-content/uploads/2011/05/sajithmr.png" alt="" width="239" height="239" /></a></p>
<p>A PHP based tool to generate QR Code for your website URL.</p>
<p><a title="QR Code Generator" href="http://qrcode-factory.com/" target="_self">http://qrcode-factory.com/</a></p>
<p>Now a days, the usage of QR code is higher and this is becoming one of the PR generating mechanisms.</p>
<p>QR code is another kind of bar code called matrix bar code.  QR stands for Quick Reader (source: <a href="http://en.wikipedia.org/wiki/QR_code" target="_blank">WikiPedia</a>)</p>
<p>The tool is created using <a href="http://phpqrcode.sourceforge.net/" target="_blank">PHP QR code library</a>.</p>
<p>Use RedLaser Apps for mobile devices to read QR codes.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sajithmr.me/qr-code-generator/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

