<?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>GS Design &#187; projects</title>
	<atom:link href="http://www.gsdesign.ro/blog/category/projects/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.gsdesign.ro/blog</link>
	<description>Just another developer blog</description>
	<lastBuildDate>Fri, 23 Jul 2010 07:33:05 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>[phpclass] dinamicParams &#8211; Calling function with named params</title>
		<link>http://www.gsdesign.ro/blog/phpclass-dinamicparams-calling-function-with-named-params/</link>
		<comments>http://www.gsdesign.ro/blog/phpclass-dinamicparams-calling-function-with-named-params/#comments</comments>
		<pubDate>Sun, 23 Nov 2008 15:17:49 +0000</pubDate>
		<dc:creator>Gabi Solomon</dc:creator>
				<category><![CDATA[phpclasses]]></category>
		<category><![CDATA[projects]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[php classes]]></category>
		<category><![CDATA[php5]]></category>
		<category><![CDATA[reflection]]></category>

		<guid isPermaLink="false">http://www.gsdesign.ro/blog/?p=258</guid>
		<description><![CDATA[A lot of time while developing a function or a method of a class you need to specify 1, 2 or 3 parameters as inputs for that function or method. But usually as you develop further you might end-up in the situation where you would want to add a new parameter to your function. And [...]]]></description>
			<content:encoded><![CDATA[<p>A lot of time while developing a function or a method of a class you need to specify 1, 2 or 3 parameters as inputs for that function or method. But usually as you develop further you might end-up in the situation where you would want to add a new parameter to your function. </p>
<p>And so you might have coded a function that has 5 or more parameters, and although it works fine, eventually you will want to call that function and leave the first 4 parameters with the default value and only change the last one. I ended up here a lot of times, and normally in php there is nothing you can do.</p>
<p>A workaround would be to specify the params as a single array variable, but that is just making you write more code and it looks really bad ( at least in my opinion).</p>
<p>Well today i found a new method of doing this in php5 with the help of the <a href="http://www.php.net/reflection">Reflection API</a> that is offer in php5. I will not get into to much details about what it does, you can read that in the documentation, basicly it provides a way to reverse-engineer classes, interfaces, functions and methods.</p>
<p>So i wrote a simple class that is going to solve that problem.</p>
<p>With the help of the Reflection API from php5 the class will allow you to call function and methods by providing the parameters as an array specifying names and values even if the original function or methods receives them in the normal fashion.</p>
<p>But enough talk, heres the example.</p>
<div class="igBar"><span id="lphp-2"><a href="#" onclick="javascript:showCodeTxt('php-2'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-2">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000; font-weight:bold;">&lt;?php</span></div>
</li>
<li style="font-weight: bold;color:IG_LINE_COLOUR_2;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#616100;">require</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'dinamicParams.class.php'</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:IG_LINE_COLOUR_2;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000; font-weight:bold;">class</span> news <span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:IG_LINE_COLOUR_2;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#000000; font-weight:bold;">function</span> fetch <span style="color:#006600; font-weight:bold;">&#40;</span> <span style="color:#0000FF;">$id</span>, <span style="color:#0000FF;">$page</span> = <span style="color:#CC66CC;color:#800000;">0</span>, <span style="color:#0000FF;">$items_pp</span> = <span style="color:#CC66CC;color:#800000;">10</span>, <span style="color:#0000FF;">$order_by</span> = <span style="color:#FF0000;">'date'</span>, <span style="color:#0000FF;">$method</span> = <span style="color:#FF0000;">'desc'</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.php.net/echo"><span style="color:#000066;">echo</span></a> <span style="color:#FF0000;">"</span></div>
</li>
<li style="font-weight: bold;color:IG_LINE_COLOUR_2;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#FF0000;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; id: $id,</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#FF0000;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; page: $page,</span></div>
</li>
<li style="font-weight: bold;color:IG_LINE_COLOUR_2;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#FF0000;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; items_pp: $items_pp,</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#FF0000;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; order_by: $order_by,</span></div>
</li>
<li style="font-weight: bold;color:IG_LINE_COLOUR_2;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#FF0000;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; method: $method</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#FF0000;">&nbsp; &nbsp; &nbsp; &nbsp; "</span>;</div>
</li>
<li style="font-weight: bold;color:IG_LINE_COLOUR_2;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:IG_LINE_COLOUR_2;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:IG_LINE_COLOUR_2;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:IG_LINE_COLOUR_2;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#0000FF;">$news</span> = <span style="color:#000000; font-weight:bold;">new</span> news<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#0000FF;">$dinamicParams</span> = <span style="color:#000000; font-weight:bold;">new</span> dinamicParams<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:IG_LINE_COLOUR_2;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#0000FF;">$dinamicParams</span>-&gt;<span style="color:#006600;">call</span><span style="color:#006600; font-weight:bold;">&#40;</span><a href="http://www.php.net/array"><span style="color:#000066;">array</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$news</span>, <span style="color:#FF0000;">'fetch'</span><span style="color:#006600; font-weight:bold;">&#41;</span>, <a href="http://www.php.net/array"><span style="color:#000066;">array</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'order_by'</span> =&gt; <span style="color:#FF0000;">'name'</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>This will output :</p>
<blockquote><p>
id: , page: 0, items_pp: 10, order_by: name, method: desc
</p></blockquote>
<p>This class is based on <a href="http://loveandtheft.org/2008/03/23/reflection-calling-methodsfunctions-with-named-arguments/">this implementation</a> of the reflection API.<br />
It is available on <a href="http://solomongaby.users.phpclasses.org/">phpclasses</a> can be downloaded <a href="http://solomongaby.users.phpclasses.org/browse/package/4986.html">here</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.gsdesign.ro/blog/phpclass-dinamicparams-calling-function-with-named-params/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>how to: Generating XML from PHP</title>
		<link>http://www.gsdesign.ro/blog/how-to-generating-xml-from-php/</link>
		<comments>http://www.gsdesign.ro/blog/how-to-generating-xml-from-php/#comments</comments>
		<pubDate>Fri, 15 Aug 2008 10:30:05 +0000</pubDate>
		<dc:creator>Gabi Solomon</dc:creator>
				<category><![CDATA[Programing]]></category>
		<category><![CDATA[php&mysql 101]]></category>
		<category><![CDATA[projects]]></category>
		<category><![CDATA[genarate]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[rest]]></category>
		<category><![CDATA[xml]]></category>

		<guid isPermaLink="false">http://www.gsdesign.ro/blog/?p=149</guid>
		<description><![CDATA[I had to do a small REST application on a project recently and i wanted to find a small easy way of returning the response in XML. After a little searching find this rather old post ( but just what i was looking for ) on Simon Willison’s Weblog. It featured a small php class [...]]]></description>
			<content:encoded><![CDATA[<p>I had to do a small REST application on a project recently and i wanted to find a small easy way of returning the response in XML.</p>
<p>After a little searching find this rather old post ( but just what i was looking for ) on Simon Willison’s Weblog. It featured a small php <a href="http://simonwillison.net/2003/Apr/29/xmlWriter/">class to generate XML</a>.</p>
<h3>Example Code</h3>
<div class="igBar"><span id="lphp-5"><a href="#" onclick="javascript:showCodeTxt('php-5'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-5">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#0000FF;">$array</span> = <a href="http://www.php.net/array"><span style="color:#000066;">array</span></a><span style="color:#006600; font-weight:bold;">&#40;</span></div>
</li>
<li style="font-weight: bold;color:IG_LINE_COLOUR_2;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <a href="http://www.php.net/array"><span style="color:#000066;">array</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'monkey'</span>, <span style="color:#FF0000;">'banana'</span>, <span style="color:#FF0000;">'Jim'</span><span style="color:#006600; font-weight:bold;">&#41;</span>,</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <a href="http://www.php.net/array"><span style="color:#000066;">array</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'hamster'</span>, <span style="color:#FF0000;">'apples'</span>, <span style="color:#FF0000;">'Kola'</span><span style="color:#006600; font-weight:bold;">&#41;</span>,</div>
</li>
<li style="font-weight: bold;color:IG_LINE_COLOUR_2;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <a href="http://www.php.net/array"><span style="color:#000066;">array</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'turtle'</span>, <span style="color:#FF0000;">'beans'</span>, <span style="color:#FF0000;">'Berty'</span><span style="color:#006600; font-weight:bold;">&#41;</span>,</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:IG_LINE_COLOUR_2;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#0000FF;">$xml</span> = <span style="color:#000000; font-weight:bold;">new</span> XmlWriter<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#0000FF;">$xml</span>-&gt;<span style="color:#006600;">push</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'zoo'</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:IG_LINE_COLOUR_2;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#616100;">foreach</span> <span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$array</span> <span style="color:#616100;">as</span> <span style="color:#0000FF;">$animal</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#0000FF;">$xml</span>-&gt;<span style="color:#006600;">push</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'animal'</span>, <a href="http://www.php.net/array"><span style="color:#000066;">array</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'species'</span> =&gt; <span style="color:#0000FF;">$animal</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#CC66CC;color:#800000;">0</span><span style="color:#006600; font-weight:bold;">&#93;</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:IG_LINE_COLOUR_2;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#0000FF;">$xml</span>-&gt;<span style="color:#006600;">element</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'name'</span>, <span style="color:#0000FF;">$animal</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#CC66CC;color:#800000;">2</span><span style="color:#006600; font-weight:bold;">&#93;</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#0000FF;">$xml</span>-&gt;<span style="color:#006600;">element</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'food'</span>, <span style="color:#0000FF;">$animal</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#CC66CC;color:#800000;">1</span><span style="color:#006600; font-weight:bold;">&#93;</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:IG_LINE_COLOUR_2;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#0000FF;">$xml</span>-&gt;<span style="color:#006600;">pop</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:IG_LINE_COLOUR_2;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#0000FF;">$xml</span>-&gt;<span style="color:#006600;">pop</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><a href="http://www.php.net/print"><span style="color:#000066;">print</span></a> <span style="color:#0000FF;">$xml</span>-&gt;<span style="color:#006600;">getXml</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<h3>XML returned</h3>
<div class="igBar"><span id="lxml-6"><a href="#" onclick="javascript:showCodeTxt('xml-6'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">XML:</span>
<div id="xml-6">
<div class="xml">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;</span>?xml <span style="color: #000066;">version</span>=<span style="color: #ff0000;">"1.0"</span> <span style="color: #000066;">encoding</span>=<span style="color: #ff0000;">"utf-8"</span>?<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:IG_LINE_COLOUR_2;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;zoo<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;animal</span> <span style="color: #000066;">species</span>=<span style="color: #ff0000;">"monkey"</span><span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:IG_LINE_COLOUR_2;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;name<span style="font-weight: bold; color: black;">&gt;</span></span></span>Jim<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/name<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;food<span style="font-weight: bold; color: black;">&gt;</span></span></span>banana<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/food<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-weight: bold;color:IG_LINE_COLOUR_2;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/animal<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;animal</span> <span style="color: #000066;">species</span>=<span style="color: #ff0000;">"hamster"</span><span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:IG_LINE_COLOUR_2;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;name<span style="font-weight: bold; color: black;">&gt;</span></span></span>Kola<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/name<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;food<span style="font-weight: bold; color: black;">&gt;</span></span></span>apples<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/food<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-weight: bold;color:IG_LINE_COLOUR_2;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/animal<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;animal</span> <span style="color: #000066;">species</span>=<span style="color: #ff0000;">"turtle"</span><span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:IG_LINE_COLOUR_2;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;name<span style="font-weight: bold; color: black;">&gt;</span></span></span>Berty<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/name<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;food<span style="font-weight: bold; color: black;">&gt;</span></span></span>beans<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/food<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-weight: bold;color:IG_LINE_COLOUR_2;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/animal<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/zoo<span style="font-weight: bold; color: black;">&gt;</span></span></span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<h3>Attention</h3>
<p>A little heads up, if your running php you might encounter this error:</p>
<blockquote><p>
Fatal error: Cannot redeclare class xmlwriter in /var/www/web4/cgi-bin/includes/XmlWriter.class.inc on line 6
</p></blockquote>
<p>Thats because php already has a built in php class called xmlwriter, to fix it all you need to do is rename it.</p>
<p>hope this helps somebody.<br />
Cheers</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gsdesign.ro/blog/how-to-generating-xml-from-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New project Launch &#8211; YM Archive</title>
		<link>http://www.gsdesign.ro/blog/new-project-launch-ym-archive/</link>
		<comments>http://www.gsdesign.ro/blog/new-project-launch-ym-archive/#comments</comments>
		<pubDate>Sat, 02 Aug 2008 09:26:34 +0000</pubDate>
		<dc:creator>Gabi Solomon</dc:creator>
				<category><![CDATA[projects]]></category>
		<category><![CDATA[ym archive]]></category>
		<category><![CDATA[archive]]></category>
		<category><![CDATA[messenger]]></category>
		<category><![CDATA[yahoo]]></category>
		<category><![CDATA[ym]]></category>

		<guid isPermaLink="false">http://www.gsdesign.ro/blog/?p=134</guid>
		<description><![CDATA[I have been writing a small website in the small free time i have had for the past 2 months, and testing it to see how it will perform if many users will start to use it and now i believe i can make it public, at least as pre-alpha state . The website is [...]]]></description>
			<content:encoded><![CDATA[<p>I have been writing a small website in the small free time i have had for the past 2 months, and testing it to see how it will perform if many users will start to use it and now i believe i can make it public, at least as pre-alpha state <img src='http://www.gsdesign.ro/blog/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> . </p>
<p>The website is called <a href="http://ym-archive.pixie-search.com/">YM Archive</a> and the ideea is of an archive that will keep a track of a users activity on Yahoo messenger ( online times and avatars ). It only records the online time, not the invisible time as i value the users privacy ... if he wants to be invisible he must have a reason to do it.</p>
<p>The website was originaly build for me, since many times i wanted to know if a person has been online today and i have missed him, but i figured maybe others will want the same information ... so make it a public service.</p>
<p>As a pointer, the website only tracks a limited amount of users, the ones that it has in its database. To add a new user in the database you need to do a search for it and it will add it automatically, and from that point it will track its status, so next time you look the same ID up it should have some history for you ( if the user has been online since add ).</p>
<p>In time the website will integrate other IM services, and maybe include an user account where you will have some stats printed out for you and your friends.</p>
<p>Hope you enjoy it.<br />
Cheers</p>
<p>PS: I am curious to see when will my hosting close my account for to many curl connections <img src='http://www.gsdesign.ro/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> )</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gsdesign.ro/blog/new-project-launch-ym-archive/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>lyrics database website v.09</title>
		<link>http://www.gsdesign.ro/blog/lyrics-database-website-v09/</link>
		<comments>http://www.gsdesign.ro/blog/lyrics-database-website-v09/#comments</comments>
		<pubDate>Thu, 31 Jul 2008 15:15:02 +0000</pubDate>
		<dc:creator>Gabi Solomon</dc:creator>
				<category><![CDATA[lyrics database]]></category>
		<category><![CDATA[projects]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[lyrics]]></category>

		<guid isPermaLink="false">http://www.gsdesign.ro/blog/?p=124</guid>
		<description><![CDATA[I have recently started a new website, its a lyrics database and it is accessible at http://lyrics.pixie-search.com/. It is currently in alpha phase, but it will have an added features compared to other websites like videos crawled from youtube, and translation for lyrics using google translate service. That is it for now, Hope you will [...]]]></description>
			<content:encoded><![CDATA[<p>I have recently started a new website, its a lyrics database and it is accessible at <a href="http://lyrics.pixie-search.com/">http://lyrics.pixie-search.com/</a>.</p>
<p>It is currently in alpha phase, but it will have an added features compared to other websites like videos crawled from youtube, and translation for lyrics using google translate service.</p>
<p>That is it for now,<br />
Hope you will like it. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.gsdesign.ro/blog/lyrics-database-website-v09/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Want to build an application to update all major social services ?</title>
		<link>http://www.gsdesign.ro/blog/want-to-build-an-application-to-update-all-major-social-services/</link>
		<comments>http://www.gsdesign.ro/blog/want-to-build-an-application-to-update-all-major-social-services/#comments</comments>
		<pubDate>Thu, 24 Jul 2008 18:43:45 +0000</pubDate>
		<dc:creator>Gabi Solomon</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Programing]]></category>
		<category><![CDATA[Web Aplications]]></category>
		<category><![CDATA[phpclasses]]></category>
		<category><![CDATA[classes]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[ping.fm]]></category>
		<category><![CDATA[social networks]]></category>

		<guid isPermaLink="false">http://www.gsdesign.ro/blog/?p=117</guid>
		<description><![CDATA[As social networks seem to get bigger and bigger and new ways of online communication spring up, people get more and more caught up into updating their accounts on various networks. So wheres there's a need there's an application . As i was talking a few days ago a new service has been borne a [...]]]></description>
			<content:encoded><![CDATA[<p>As social networks seem to get bigger and bigger and new ways of online communication spring up, people get more and more caught up into updating their accounts on various networks.</p>
<p>So wheres there's a need there's an application <img src='http://www.gsdesign.ro/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> . </p>
<p>As i was <a href="http://www.gsdesign.ro/blog/how-to-update-social-networks-like-twitter-jaiku-facebook-tumblr-and-pownce-at-once/">talking</a> a few days ago a new service has been borne a few months ago called <a href="http://ping.fm/">ping.fm</a> that allows users to update their services all from one place. Well today i stumble upon a class on <a href="http://solomongaby.users.phpclasses.org/">phpclasses.org</a> called 	<a href="http://solomongaby.users.phpclasses.org/browse/package/4647.html">Ping.FM Wrapper</a>  that  can be used to update multiple social networks using the Ping.FM API.</p>
<p>It accesses the Ping.FM Web services API server and can perform several operations to update social networks of a given user. It can for instance post messages or the user status, retrieve received messages, etc..</p>
<p>I guess this will make the life of developers required to do an application that will update social networks a whole lot easyer. <img src='http://www.gsdesign.ro/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Cheers</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gsdesign.ro/blog/want-to-build-an-application-to-update-all-major-social-services/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Google Translate Tool Class v0.9</title>
		<link>http://www.gsdesign.ro/blog/google-translate-tool-class-v09/</link>
		<comments>http://www.gsdesign.ro/blog/google-translate-tool-class-v09/#comments</comments>
		<pubDate>Wed, 09 Jul 2008 21:48:33 +0000</pubDate>
		<dc:creator>Gabi Solomon</dc:creator>
				<category><![CDATA[Google Translate Tool]]></category>
		<category><![CDATA[phpclasses]]></category>
		<category><![CDATA[projects]]></category>
		<category><![CDATA[class]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[oop]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[translate]]></category>

		<guid isPermaLink="false">http://www.gsdesign.ro/blog/?p=90</guid>
		<description><![CDATA[As almost all of my classes i have developed this class for a project requirement, and i decided to make it public on phpclasses.com that is available for download at this link. This is quite a simple class can translate text, and webpages using Google translate services. The class usses curl to make a tranlation [...]]]></description>
			<content:encoded><![CDATA[<p>As almost all of my classes i have developed this class for a project requirement, and i decided to make it public on <a href="http://solomongaby.users.phpclasses.org/">phpclasses.com </a> that is available for download at this <a href="http://solomongaby.users.phpclasses.org/browse/package/4691.html">link.</a></p>
<p>This is quite a simple class can translate text, and webpages using Google translate services.</p>
<p>The class usses curl to make a tranlation request to the Google translate Web page and asking for the translation of the given text or URL from the selected from and to languages. The result is parsed to obtain the translation and returned by the class.</p>
<p>The translation class supports all the languages currently available at google including:<br />
English, German, Spanish, French, Italian, Portuguese, Arabic, Chinese and Russian.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gsdesign.ro/blog/google-translate-tool-class-v09/feed/</wfw:commentRss>
		<slash:comments>34</slash:comments>
		</item>
	</channel>
</rss>
