<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.7.3" -->
<rss version="2.0">
	<channel>
		<title>Blog entries tagged PHP</title>
		<description>Blog entries tagged PHP</description>
		<link>http://lab11.com</link>
		<lastBuildDate>Thu, 09 Sep 2010 02:33:35 +0100</lastBuildDate>
        <generator>FeedCreator 1.7.3</generator>
		<item>
			<title>Joomla 1.5 Custom Breadcrumbs</title>
			<link>http://lab11.com/blogs/Joomla-1.5-Custom-Breadcrumbs.html</link>
			<description>&lt;p&gt;Joomla seems to have everything figured out — Breadcrumb support is no exception.&lt;/p&gt;&lt;br/&gt;&lt;p&gt;Recently we were writing some custom component for a client and needed to handle the breadcrumbs in a special way that Joomla couldn't manage automatically.&lt;/p&gt;&lt;br/&gt;&lt;p&gt;As a simplified example, imagine we redirect a user to a component that isn't attached to a menu. We would expect the breadcrumbs to simply output &quot;Home&quot; and provide a link back to the index of the site.&lt;/p&gt;&lt;br/&gt;Home &lt;br/&gt;&lt;p&gt;(Notice: Home is not a Read More...</description>
			<author>Garrett Bluma</author>
			<pubDate>Thu, 09 Jul 2009 06:00:00 +0100</pubDate>
		<category>Programming</category>
 <category>PHP</category>
 <category>Joomla</category>
 <category>Components</category>
		</item>
		<item>
			<title>Joomla 1.5 Database Functions</title>
			<link>http://lab11.com/blogs/Joomla-1.5-Database-Functions.html</link>
			<description>&lt;p&gt;Sometimes it may be hard to know how to best use Joomla's database class. Here are just a few of the most used database functions.&lt;br /&gt;&lt;br /&gt;In Joomla 1.5, include the following line of code inside your php:&lt;br /&gt;&lt;br /&gt;&amp;lt;?php&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $database&amp;nbsp; =&amp;amp; JFactory::getDBO();&lt;br /&gt;?&amp;gt;&lt;br /&gt;&lt;br /&gt;Use the $loadObject function when you want to retrieve one row from the database. For example:&lt;br /&gt;&lt;br /&gt;$database-&amp;gt;setQuery(&amp;quot;SELECT * FROM jos_comprofiler WHERE idRead More...</description>
			<author>Trevor M.</author>
			<pubDate>Tue, 30 Jun 2009 06:00:00 +0100</pubDate>
		<category>Programming</category>
 <category>PHP</category>
 <category>Joomla</category>
		</item>
		<item>
			<title>Changing a New Line to a Break</title>
			<link>http://lab11.com/blogs/Changing-a-New-Line-to-a-Break.html</link>
			<description>&lt;p&gt;There is a great php function takes a variable and changes the&amp;nbsp; new lines (\n) into breaks (&amp;lt;br/&amp;gt;). &lt;br /&gt;&lt;br /&gt;For example, a user submits a form on your website and used a textarea to submit a couple of paragraphs. You then retrieve this data from the database and echo it out in html. You will notice that it is now just one big paragraph.&lt;br /&gt;&lt;br /&gt;To fix this problem, you the function: nl2br&lt;br /&gt;&lt;br /&gt;Here is how you might use this:&lt;br /&gt;&lt;br /&gt;&amp;lt;?php&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;Read More...</description>
			<author>Trevor M.</author>
			<pubDate>Tue, 30 Jun 2009 06:00:00 +0100</pubDate>
		<category>PHP</category>
		</item>
		<item>
			<title>XMLWriter in PHP</title>
			<link>http://lab11.com/blogs/XMLWriter-in-PHP.html</link>
			<description>&lt;p&gt;Every now and then I find myself needing to export a set of objects to XML. I usually find a quick way to write a dumb function to do it, but this is usually not the most elegant solution and rarely does it scale up to handle more complex data structures. The other option is to serialize the data into xml, but usually these methods suffer from a large performance overhead and should only be used if you can tweak the serializer to work only the right pieces of data.&lt;/p&gt;&lt;br/&gt;&lt;p&gt;I have since added Read More...</description>
			<author>Garrett Bluma</author>
			<pubDate>Wed, 10 Jun 2009 06:00:00 +0100</pubDate>
		<category>XML</category>
 <category>Programming</category>
 <category>PHP</category>
		</item>
		<item>
			<title>Parsing an XML string retrieved using AJAX</title>
			<link>http://lab11.com/blogs/Parsing-an-XML-string-retrieved-using-AJAX.html</link>
			<description>&lt;p&gt;While working on an AJAX function this week, I found the need to parse an XML string using JavaScript and PHP.  The following JavaScript was used to retrieve an XML string from a PHP file:&lt;/p&gt; &lt;p&gt;function someJavascriptFunction() {&lt;br /&gt;      xmlHttp=GetXmlHttpObject();     &lt;br /&gt;      url = &quot;/components/com_component/ajax/ajax.php?task=someTask&quot;;     &lt;br /&gt;      url += &quot;&amp;cc_number=&quot;+document.getElementById('cc_number').value;    &lt;br /&gt;      xmlHttp.open(&quot;GET&quot;,url,true);     &lt;br /&gt;      xmlHtRead More...</description>
			<author>Trevor M.</author>
			<pubDate>Mon, 02 Mar 2009 07:00:00 +0100</pubDate>
		<category>XML</category>
 <category>Programming</category>
 <category>PHP</category>
 <category>Javascript</category>
 <category>Ajax</category>
		</item>
		<item>
			<title>Writing a Joomla 1.5 Content Plugin</title>
			<link>http://lab11.com/blogs/Joomla-1.5-Content-Plugin.html</link>
			<description>&lt;p&gt;This article will show you how to build a quick plugin to replace some text in an article before it get's displayed to the user.&lt;/p&gt;&lt;br/&gt;Intro&lt;br/&gt;&lt;p&gt;Lately I've been writing a number of content plugins for Joomla. They're pretty simple, but basically it allows you to transform the content at a number of points in Joomla's process of editing, saving, and displaying of that content. In theory you could use it to do anything but it's common to replace text and/or add special content into the articlesRead More...</description>
			<author>Garrett Bluma</author>
			<pubDate>Wed, 18 Feb 2009 07:00:00 +0100</pubDate>
		<category>Programming</category>
 <category>Plugins</category>
 <category>PHP</category>
 <category>Joomla</category>
		</item>
	</channel>
</rss>
