<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-1437249455300950807</id><updated>2024-09-14T06:10:23.651-07:00</updated><title type='text'>PHP Daily Code</title><subtitle type='html'>PHP Daily Code</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://phpdailycode.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1437249455300950807/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://phpdailycode.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Bhushan Kumar Ram</name><uri>http://www.blogger.com/profile/02973073856574672726</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://4.bp.blogspot.com/_UaZqQIk6ZOw/S4J94YDKGWI/AAAAAAAACAM/52PLk6tbVBo/S220/bhushan.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>7</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1437249455300950807.post-5591174092926060161</id><published>2010-10-03T11:30:00.000-07:00</published><updated>2010-10-03T12:14:14.569-07:00</updated><title type='text'>Array of string sort in PHP without using php function</title><content type='html'>One of my friend asked me a simple question,&lt;br /&gt;&lt;br /&gt;&quot;How to sort an array of string without using php function?&quot;&lt;br /&gt;&lt;br /&gt;I am surprised!!! because PHP  has sort(), arsort, asort(), rsort() functions&lt;br /&gt;&lt;br /&gt;.... then use it.....&lt;br /&gt;&lt;br /&gt;BUT this is not answer to my friend&#39;s question.&lt;br /&gt;&lt;br /&gt;so here you go: &lt;a href=&quot;http://bhushankumarram.wordpress.com/2010/10/03/string-sort-in-php/&quot;&gt;Read More &gt;&gt;&lt;br /&gt;&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://phpdailycode.blogspot.com/feeds/5591174092926060161/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://phpdailycode.blogspot.com/2010/10/array-of-string-sort-in-php-without.html#comment-form' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1437249455300950807/posts/default/5591174092926060161'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1437249455300950807/posts/default/5591174092926060161'/><link rel='alternate' type='text/html' href='http://phpdailycode.blogspot.com/2010/10/array-of-string-sort-in-php-without.html' title='Array of string sort in PHP without using php function'/><author><name>Bhushan Kumar Ram</name><uri>http://www.blogger.com/profile/02973073856574672726</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://4.bp.blogspot.com/_UaZqQIk6ZOw/S4J94YDKGWI/AAAAAAAACAM/52PLk6tbVBo/S220/bhushan.jpg'/></author><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1437249455300950807.post-907683024196848803</id><published>2010-08-26T09:14:00.000-07:00</published><updated>2010-08-26T09:37:34.833-07:00</updated><title type='text'>What is difference between MYISAM and InnoDB?</title><content type='html'>I am writing this article to all those PHP follower to understand the difference between MYISAM and INNODB.&lt;br /&gt;&lt;br /&gt;MYISAM:&lt;br /&gt;1. MYISAM supports Table-level Locking&lt;br /&gt;2. MyISAM designed for need of speed&lt;br /&gt;&lt;br /&gt;INNODB:&lt;br /&gt;1. InnoDB supports Row-level Locking&lt;br /&gt;2. InnoDB designed for maximum performance when processing high volume of data&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;http://phpdailycode.blogspot.com/p/what-is-difference-between-myisam-and.html&quot;&gt;Read More &gt;&gt; &lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://phpdailycode.blogspot.com/feeds/907683024196848803/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://phpdailycode.blogspot.com/2010/08/what-is-difference-between-myisam-and.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1437249455300950807/posts/default/907683024196848803'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1437249455300950807/posts/default/907683024196848803'/><link rel='alternate' type='text/html' href='http://phpdailycode.blogspot.com/2010/08/what-is-difference-between-myisam-and.html' title='What is difference between MYISAM and InnoDB?'/><author><name>Bhushan Kumar Ram</name><uri>http://www.blogger.com/profile/02973073856574672726</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://4.bp.blogspot.com/_UaZqQIk6ZOw/S4J94YDKGWI/AAAAAAAACAM/52PLk6tbVBo/S220/bhushan.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1437249455300950807.post-3775730368786025917</id><published>2010-04-27T06:03:00.000-07:00</published><updated>2010-04-27T06:12:16.580-07:00</updated><title type='text'>MyBlog and JomSocial Integration</title><content type='html'>Here is solution to add a &quot;Community Home&quot; on the toolbar of MyBlog&lt;br /&gt;&lt;br /&gt;You need to modify the given below files&lt;br /&gt;&lt;br /&gt;a. language/en-GB/en-GB.com_myblog.ini&lt;br /&gt;&lt;br /&gt;SEARCH # Toolbar menu and ADD &lt;br /&gt;TOOLBAR MENU COMMUNITY HOME=Community Home&lt;br /&gt;&lt;br /&gt;b. components/com_myblog/templates/default/toolbar.tmpl.html&lt;br /&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;http://3.bp.blogspot.com/_UaZqQIk6ZOw/S9bh7qpotCI/AAAAAAAACBU/gUNcNUWW-8A/s1600/toolbar.bmp&quot;&gt;&lt;img style=&quot;cursor:pointer; cursor:hand;width: 320px; height: 58px;&quot; src=&quot;http://3.bp.blogspot.com/_UaZqQIk6ZOw/S9bh7qpotCI/AAAAAAAACBU/gUNcNUWW-8A/s320/toolbar.bmp&quot; border=&quot;0&quot; alt=&quot;&quot;id=&quot;BLOGGER_PHOTO_ID_5464803613038130210&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;c. components/com_myblog/task/base.php&lt;br /&gt;&lt;br /&gt;$myCommunityItemid  = myGetCommunityItemId();&lt;br /&gt;$communityHomeLink = JRoute::_(&quot;index.php?option=com_community&amp;view=frontpage&amp;Itemid=$myCommunityItemid&quot;);&lt;br /&gt;&lt;br /&gt;$toolbar[&#39;communityHomeLink&#39;]      = $communityHomeLink;&lt;br /&gt;$active[&#39;communityhome&#39;] = &#39;&#39;;&lt;br /&gt;&lt;br /&gt;d. Write function myGetCommunityItemId() in components/com_myblog/functions.myblog.php</content><link rel='replies' type='application/atom+xml' href='http://phpdailycode.blogspot.com/feeds/3775730368786025917/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://phpdailycode.blogspot.com/2010/04/myblog-and-jomsocial-integration.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1437249455300950807/posts/default/3775730368786025917'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1437249455300950807/posts/default/3775730368786025917'/><link rel='alternate' type='text/html' href='http://phpdailycode.blogspot.com/2010/04/myblog-and-jomsocial-integration.html' title='MyBlog and JomSocial Integration'/><author><name>Bhushan Kumar Ram</name><uri>http://www.blogger.com/profile/02973073856574672726</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://4.bp.blogspot.com/_UaZqQIk6ZOw/S4J94YDKGWI/AAAAAAAACAM/52PLk6tbVBo/S220/bhushan.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/_UaZqQIk6ZOw/S9bh7qpotCI/AAAAAAAACBU/gUNcNUWW-8A/s72-c/toolbar.bmp" height="72" width="72"/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1437249455300950807.post-7867352897141574491</id><published>2010-03-26T05:16:00.000-07:00</published><updated>2010-03-26T05:18:31.251-07:00</updated><title type='text'>Include Any Module Within Content in Joomla 1.5!</title><content type='html'>Today I received a request to insert a new module position inside the article template of a joomla 1.5 website.&lt;br /&gt;Yes, Joomla gives this faclilty to call the module in article.&lt;br /&gt;&lt;br /&gt;Here are the simple three steps: &lt;a href=&quot;http://phpdailycode.blogspot.com/p/include-any-module-within-content-in_26.html&quot; title=&quot;Read More&quot;&gt;Read More &gt;&gt;&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://phpdailycode.blogspot.com/feeds/7867352897141574491/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://phpdailycode.blogspot.com/2010/03/include-any-module-within-content-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1437249455300950807/posts/default/7867352897141574491'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1437249455300950807/posts/default/7867352897141574491'/><link rel='alternate' type='text/html' href='http://phpdailycode.blogspot.com/2010/03/include-any-module-within-content-in.html' title='Include Any Module Within Content in Joomla 1.5!'/><author><name>Bhushan Kumar Ram</name><uri>http://www.blogger.com/profile/02973073856574672726</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://4.bp.blogspot.com/_UaZqQIk6ZOw/S4J94YDKGWI/AAAAAAAACAM/52PLk6tbVBo/S220/bhushan.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1437249455300950807.post-9141804692614971469</id><published>2010-03-26T03:16:00.000-07:00</published><updated>2011-01-18T10:51:18.194-08:00</updated><title type='text'>Ning Data Can be migrated to Joomla?</title><content type='html'>Yes, Ning Data Can be migrated to Joomla 1.5.&lt;br /&gt;&lt;br /&gt;I have succesfully done Ning Data migration successfully for my one of project.&lt;br /&gt;&lt;br /&gt;What you can do: &lt;a href=&quot;http://phpdailycode.blogspot.com/p/ning-data-can-be-migrated-to-joomla.html&quot;&gt; Read More &gt;&gt; &lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://phpdailycode.blogspot.com/feeds/9141804692614971469/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://phpdailycode.blogspot.com/2010/03/ning-data-can-be-migrated-to-joomla.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1437249455300950807/posts/default/9141804692614971469'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1437249455300950807/posts/default/9141804692614971469'/><link rel='alternate' type='text/html' href='http://phpdailycode.blogspot.com/2010/03/ning-data-can-be-migrated-to-joomla.html' title='Ning Data Can be migrated to Joomla?'/><author><name>Bhushan Kumar Ram</name><uri>http://www.blogger.com/profile/02973073856574672726</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://4.bp.blogspot.com/_UaZqQIk6ZOw/S4J94YDKGWI/AAAAAAAACAM/52PLk6tbVBo/S220/bhushan.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1437249455300950807.post-8257762624067752151</id><published>2010-02-23T10:27:00.000-08:00</published><updated>2010-03-26T03:57:49.381-07:00</updated><title type='text'>PHP 5 Classes &amp; Objects</title><content type='html'>&lt;span style=&quot;font-weight: bold;&quot;&gt;PHP 5 Object Model&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;In PHP 5 there is a new Object Model. PHP&#39;s handling of objects has been     completely rewritten, allowing for better performance and more features.&lt;br /&gt;&lt;br /&gt;Let me start off by explaining the differences between a class and an object. Many people look at these 2 things and think that they are the same thing. A class is NOT the same thing as an object.&lt;br /&gt;&lt;br /&gt;A simple comparison here. When you build a house you first create the blueprints, then you build the house from the blue prints. Now are the blueprints the same thing as a house? No, they are just the design for the house. Think of a class as the blueprints for an object.&lt;br /&gt;&lt;br /&gt;An object in simple terms is constructed from the class &quot;blueprint&quot;.&lt;br /&gt;&lt;br /&gt;Let&#39;s talk about classes first, there are 2 things that a class can contain, properties and methods. A property is a variable such as you use everywhere in your PHP applications. $user is a variable. PHP4 and PHP5 are very different in how they handle their objects.&lt;br /&gt;&lt;br /&gt;In PHP4 objects were passed by value, meaning every time you passed an object to a function or you did $var = $object it would copy the entire object. Each time you copied the object you are using that much more memory. In PHP5 they fixed this problem and started passing objects by reference (or handle) The difference is this. When you create any variable it is stored in a certain memory location, when you pass by reference PHP passes the memory location rather than the entire object. A reference to where the object is located uses much less memory.&lt;br /&gt;&lt;br /&gt;That is not the only difference between classes and objects in php5.  We will cover more later.&lt;br /&gt;&lt;br /&gt;Now you must be asking by now, how do you create a class?&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;http://phpdailycode.blogspot.com/p/php-5-classes-objects.html&quot; Title=&quot;Read More&quot;&gt; Read More &gt;&gt;  &lt;/a&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1437249455300950807/posts/default/8257762624067752151'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1437249455300950807/posts/default/8257762624067752151'/><link rel='alternate' type='text/html' href='http://phpdailycode.blogspot.com/2010/02/php-5-classes-objects.html' title='PHP 5 Classes &amp; Objects'/><author><name>Bhushan Kumar Ram</name><uri>http://www.blogger.com/profile/02973073856574672726</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://4.bp.blogspot.com/_UaZqQIk6ZOw/S4J94YDKGWI/AAAAAAAACAM/52PLk6tbVBo/S220/bhushan.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-1437249455300950807.post-7893963416123842787</id><published>2010-02-22T04:00:00.000-08:00</published><updated>2010-04-03T11:56:34.099-07:00</updated><title type='text'>Welcome to PHP Daily Code!!!</title><content type='html'>Welcome to PHP Daily Code,&lt;br /&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;br /&gt;In this blog you will find the daily use of PHP code for a project needed. The code added here can be modified and redistribute. &lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;In the PHP Daily code, you will find classic PHP and many more...&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;You can also find the helps site of PHP you can use in your fields&lt;br /&gt;&lt;!--[if !supportLineBreakNewLine]--&gt;&lt;br /&gt;&lt;!--[endif]--&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://phpdailycode.blogspot.com/feeds/7893963416123842787/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://phpdailycode.blogspot.com/2010/02/welcome-to-php-daily-code.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1437249455300950807/posts/default/7893963416123842787'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1437249455300950807/posts/default/7893963416123842787'/><link rel='alternate' type='text/html' href='http://phpdailycode.blogspot.com/2010/02/welcome-to-php-daily-code.html' title='Welcome to PHP Daily Code!!!'/><author><name>Bhushan Kumar Ram</name><uri>http://www.blogger.com/profile/02973073856574672726</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://4.bp.blogspot.com/_UaZqQIk6ZOw/S4J94YDKGWI/AAAAAAAACAM/52PLk6tbVBo/S220/bhushan.jpg'/></author><thr:total>0</thr:total></entry></feed>