<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.3.3" -->
<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/"
	>

<channel>
	<title>My PHP , Wordpress and Linux Lab</title>
	<link>http://www.decodephp.com</link>
	<description></description>
	<pubDate>Fri, 21 Mar 2008 14:12:00 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.3</generator>
	<language>en</language>
			<item>
		<title>Mars : Life or No Life , But Interesting For Sure!</title>
		<link>http://www.decodephp.com/2008/03/13/mars-life-or-no-life-but-interesting-for-sure/</link>
		<comments>http://www.decodephp.com/2008/03/13/mars-life-or-no-life-but-interesting-for-sure/#comments</comments>
		<pubDate>Thu, 13 Mar 2008 01:13:14 +0000</pubDate>
		<dc:creator>Sab</dc:creator>
		
		<category><![CDATA[Mars]]></category>

		<category><![CDATA[Solar System]]></category>

		<category><![CDATA[Universe]]></category>

		<guid isPermaLink="false">http://decodephp.com/new2/?p=47</guid>
		<description><![CDATA[The universe is so full of surprises , plenty of buzz around regarding the new photo released by NASA which shows a female like figure on the Red Planet. Brilliant!
But on careful examination, its anyones guess really, it could just be like the faces of Mars we saw a few years ago. But i found [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.decodephp.com/wp-content/uploads/2008/03/mars-small.jpg" title="Mars Smaller"><img src="http://www.decodephp.com/wp-content/uploads/2008/03/mars-small.thumbnail.jpg" title="Mars , The Red Planet" alt="Mars , The Red Planet" align="left" height="84" hspace="10" vspace="10" width="292" /></a>The universe is so full of surprises , plenty of buzz around regarding the new photo released by NASA which shows a female like figure on the Red Planet. Brilliant!</p>
<p>But on careful examination, its anyones guess really, it could just be like the faces of Mars we saw a few years ago. But i found really interesting were the ripple effects we see in the picture. Amazing , they just seem like there was a river flowing there. The curve in the surface indicates it as well. I have marked the interesting regions in red boxes , you should click on the thumbnail to see the interesting areas , i have reduced the size of the picture and then download the full picture to feel the full effect.</p>
<p>Honestly , if I wasn&#8217;t told this was a picture from Mars, me the ignorant would have thought, this is a picture of the rocky mountains or something. <img src='http://www.decodephp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
You can download the full 44MB picture from NASA by clicking on this <a href="http://marsrovers.nasa.gov/gallery/press/spirit/20080103a/1198865273_31824-1_Sol1369A_WestValley_L257F.jpg" title="Mars" target="_blank">link</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.decodephp.com/2008/03/13/mars-life-or-no-life-but-interesting-for-sure/feed/</wfw:commentRss>
		</item>
		<item>
		<title>PHP Code Cleaner and Indenter</title>
		<link>http://www.decodephp.com/2007/12/19/php-code-cleaner-and-indenter/</link>
		<comments>http://www.decodephp.com/2007/12/19/php-code-cleaner-and-indenter/#comments</comments>
		<pubDate>Wed, 19 Dec 2007 02:53:30 +0000</pubDate>
		<dc:creator>Sab</dc:creator>
		
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://decodephp.com/new2/?p=46</guid>
		<description><![CDATA[Online Code Cleaner Demo
With six years of experience with PHP , I have been &#8216;blessed&#8217; with working with code written by really lazy people , who just didn&#8217;t think it was important at all to indent their code or comment it or make the opening and ending curly braces align.
And sometimes our favorite FTP clients [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.decodephp.com/codecleaner/" title="Online Code Cleaner Demo" target="_blank">Online Code Cleaner Demo</a></p>
<p>With six years of experience with PHP , I have been &#8216;blessed&#8217; with working with code written by really lazy people , who just didn&#8217;t think it was important at all to indent their code or comment it or make the opening and ending curly braces align.</p>
<p>And sometimes our favorite FTP clients would add God knows why those silly annoying empty lines and the code would keep getting bigger and bigger.</p>
<p>And I am sure that I am not alone in my frustrations.</p>
<p>That is why is am writing this script which will try to take care of all that.</p>
<p><strong>Basically it will try to achieve the following goals:</strong></p>
<ul>
<li>Indent your code with tabs.</li>
<li>Put a comment block at the start of class definitions or functions.</li>
<li>Provide you with the facility to align curly brackets.</li>
<li>Remove unwanted lines from the code.</li>
<li>Put some spacing in blocks for improved readability.</li>
<li>Replaces short open tags with proper &lt;?php tags</li>
<li>If a PHP block contains only one line , it will put the whole block in one line to improve readability.</li>
</ul>
<p>Please provide your valuable feedback to improve this script. I will be soon releasing a full script which will clean the code in all PHP files in a directory. Stay tuned!</p>
<p><a href="http://www.decodephp.com/codecleaner/" title="Online Code Cleaner Demo" target="_blank">Online Code Cleaner Demo</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.decodephp.com/2007/12/19/php-code-cleaner-and-indenter/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Web based FTP Sync Tool written in PHP</title>
		<link>http://www.decodephp.com/2007/12/04/web-based-ftp-sync-tool-written-in-php/</link>
		<comments>http://www.decodephp.com/2007/12/04/web-based-ftp-sync-tool-written-in-php/#comments</comments>
		<pubDate>Tue, 04 Dec 2007 16:18:31 +0000</pubDate>
		<dc:creator>Sab</dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<category><![CDATA[Misc]]></category>

		<category><![CDATA[MySQL]]></category>

		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://decodephp.com/new2/?p=45</guid>
		<description><![CDATA[FTP Sync 0.9
PURPOSE:
To upload files which have changed to your production server , automating the task of comparing which files have changed. You simply create a FTP job
in the script , run the job and it will upload the changed files for you.
REQUIREMENTS:
FTP functions are required for this script to work.
PHP 4 Or 5
MySQL 4+
INSTALL:
Open [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.decodephp.com/wp-content/uploads/2007/12/ftpsyn-screen.JPG" title="Direct link to file"><img src="http://www.decodephp.com/wp-content/uploads/2007/12/ftpsyn-screen.thumbnail.JPG" alt="FTP Sync Jobs Screen" align="left" height="60" hspace="5" vspace="5" width="171" /></a><a href="http://www.decodephp.com/ftpsync-0.9.zip" title="Web based FTP Sync Tool written in PHP"><strong>FTP Sync 0.9</strong></a></p>
<p><strong>PURPOSE:</strong><br />
To upload files which have changed to your production server , automating the task of comparing which files have changed. You simply create a FTP job<br />
in the script , run the job and it will upload the changed files for you.</p>
<p><strong>REQUIREMENTS:</strong><br />
FTP functions are required for this script to work.<br />
PHP 4 Or 5<br />
MySQL 4+</p>
<p><strong>INSTALL:</strong><br />
Open dbinc.php and put in the database connection variables in there. Once done run installer.php from your browser and you are all set to go.<br />
Its advised to remove installer.php once you have finished installation.</p>
<p><strong>SECURITY:</strong><br />
It if advised that the admin creates users and allocates jobs to them. Also the admin should block access to the database and script files<br />
from general staff.</p>
<p><strong>INFO:</strong><br />
We made this script for our internal use , thought it might be useful for some of you out there. It was a tiring job to find which files needed to be uploaded<br />
to the main server after development on local server. Thus i created this script , where you can create jobs and upload folders and files which were changed.</p>
<p>The decision to upload happens on 3 rules:</p>
<p>1 : you can provide time and date in the job page , files which were created after that time will be uploaded.</p>
<p>2 : you can ask the script to match the time against the server file , the script would calculate the time offset and calculate if the file has<br />
changed since last upload.</p>
<p>3 : The script also keeps a log , if the file changed after last upload , it will upload the file.</p>
<p>You can exclude the files you dont want to upload, for instance you wont want to upload and overwrite config.php or something like that. So you<br />
can create the skip list. The skip list is the path of the file from the source directory you have provided.</p>
<p>For instance if you have a source directory called &#8220;/www/something/upload/&#8221; , and you dont want to upload the file &#8220;/www/something/upload/config.php&#8221;<br />
or the folder &#8220;/www/something/upload/users/images&#8221; then you would put in something like this:</p>
<p>config.php<br />
users/images</p>
<p>Remember no trailing slash for folders.</p>
<p>You need to have writable permissions for the logs folder , also if you want to utlize the copy permissions feature  you will need the BcMath library<br />
compiled with PHP.</p>
<p>The admin can run any job , but if you want to have users which can run specific jobs only please utilize the users section , in which a user can<br />
run all jobs or only specific jobs.</p>
<p>Same goes for the jobs , you can set an attribute to allow all users to run the job.</p>
<p>This code has been tested on PHP 5 and PHP 4.4.</p>
<p>You are free to modify the code as you please. The code is released in the public domain under the GPL license.</p>
<p>Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.decodephp.com/2007/12/04/web-based-ftp-sync-tool-written-in-php/feed/</wfw:commentRss>
		</item>
		<item>
		<title>WP Admin Switcher Plugin Updated</title>
		<link>http://www.decodephp.com/2007/12/04/wp-admin-switcher-plugin-updated/</link>
		<comments>http://www.decodephp.com/2007/12/04/wp-admin-switcher-plugin-updated/#comments</comments>
		<pubDate>Tue, 04 Dec 2007 13:42:37 +0000</pubDate>
		<dc:creator>Sab</dc:creator>
		
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://decodephp.com/new2/?p=43</guid>
		<description><![CDATA[WP Admin Switcher has been updated , please download the latest zip from the link on the right. This version has been tested on WP 2.3.1 If you are getting a file not found error , than it means you dont have the .htaccess rules set for mod_rewrite. WP Admin Switcher wont work without this.
Thanks [...]]]></description>
			<content:encoded><![CDATA[<p>WP Admin Switcher has been updated , please download the latest zip from the link on the right. This version has been tested on WP 2.3.1 If you are getting a file not found error , than it means you dont have the .htaccess rules set for mod_rewrite. WP Admin Switcher wont work without this.</p>
<p>Thanks to all the users sending in feedback to make this plugin better.</p>
<p>Soon i will be updating the plugin to handle blogs with no mod_rewrite (permalinks) .</p>
<p>Keep checking!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.decodephp.com/2007/12/04/wp-admin-switcher-plugin-updated/feed/</wfw:commentRss>
		</item>
		<item>
		<title>PHP :: Serialize and Unserialize Alternative</title>
		<link>http://www.decodephp.com/2007/11/17/php-serialize-and-unserialize-alternative/</link>
		<comments>http://www.decodephp.com/2007/11/17/php-serialize-and-unserialize-alternative/#comments</comments>
		<pubDate>Fri, 16 Nov 2007 23:53:07 +0000</pubDate>
		<dc:creator>Sab</dc:creator>
		
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://decodephp.com/new2/?p=42</guid>
		<description><![CDATA[For quite sometime now I have been really annoyed by the unreliability of serialize and unserialize , when you would have a large string or some some special characters in there that wouldnt turn back into variables. So finally after not finding a decent alternative by someone else ( maybe I am only one suffering [...]]]></description>
			<content:encoded><![CDATA[<p>For quite sometime now I have been really annoyed by the unreliability of serialize and unserialize , when you would have a large string or some some special characters in there that wouldnt turn back into variables. So finally after not finding a decent alternative by someone else ( maybe I am only one suffering from the problem????? )  ,  I decided to write my own two functions.</p>
<p>These two are working great for me , hope they serve some purpose to someone else. I am sure there is room for improvement here, please send in any suggestions or ideas to incorporate.</p>
<div class="ch_code_container" style="font-family: monospace;height:100%;">
<div style="">Code (php)</div>
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;">
<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;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #808080; font-style: italic;">/// Usage</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #808080; font-style: italic;">////&#8211; first parameter is the var name , second is the var itself</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">$string</span> = makeXML<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&#8217;somevarname&#8217;</span> , <span style="color: #0000ff;">$somevarname</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;">
<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;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #808080; font-style: italic;">////&#8212; extractVars takes the above string as parameter ,</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #808080; font-style: italic;">////&#8212; and returns an arrray with variable name as key and variable itself</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #808080; font-style: italic;">///&#8212;&nbsp; as value , i have used extract() to take all vars into code.</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.php.net/extract"><span style="color: #000066;">extract</span></a><span style="color: #66cc66;">&#40;</span>extractVars<span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$string</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;">
<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;">
<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;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">function</span> extractVars<span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$xml</span> , <span style="color: #0000ff;">$name</span>=<span style="color: #ff0000;">&#8221;</span> , <span style="color: #0000ff;">$type</span>=<span style="color: #ff0000;">&#8221;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">$reg</span>=<span style="color: #ff0000;">&quot;!&lt;xmlvar name=<span style="color: #000099; font-weight: bold;">\&#8217;</span>(.*?)<span style="color: #000099; font-weight: bold;">\&#8217;</span> type=&#8217;(.*?)&#8217;&gt;(.*?)&lt;/xmlvar name=<span style="color: #000099; font-weight: bold;">\&#8217;</span><span style="color: #000099; font-weight: bold;">\\</span>1<span style="color: #000099; font-weight: bold;">\&#8217;</span>&gt;!s&quot;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.php.net/preg_match_all"><span style="color: #000066;">preg_match_all</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$reg</span> , <span style="color: #0000ff;">$xml</span> , <span style="color: #0000ff;">$matches</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;">
<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;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">foreach</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$matches</span><span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#93;</span> <span style="color: #b1b100;">as</span> <span style="color: #0000ff;">$index</span>=&gt;<span style="color: #0000ff;">$key</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">$optname</span> = <span style="color: #0000ff;">$key</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">$opttype</span> = <span style="color: #0000ff;">$matches</span><span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">2</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#91;</span><span style="color: #0000ff;">$index</span><span style="color: #66cc66;">&#93;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">$optval</span> = <span style="color: #0000ff;">$matches</span><span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">3</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#91;</span><span style="color: #0000ff;">$index</span><span style="color: #66cc66;">&#93;</span>;</div>
</li>
<li style="font-weight: bold;">
<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;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">$optxpl</span> = <a href="http://www.php.net/explode"><span style="color: #000066;">explode</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;::&quot;</span> , <span style="color: #0000ff;">$optname</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">$optname</span> = <span style="color: #0000ff;">$optxpl</span><span style="color: #66cc66;">&#91;</span><a href="http://www.php.net/count"><span style="color: #000066;">count</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$optxpl</span><span style="color: #66cc66;">&#41;</span><span style="color: #cc66cc;">-1</span><span style="color: #66cc66;">&#93;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;">
<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;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$opttype</span> == <span style="color: #ff0000;">&#8216;object&#8217;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">$bigarr</span><span style="color: #66cc66;">&#91;</span><span style="color: #0000ff;">$optname</span><span style="color: #66cc66;">&#93;</span> = <span style="color: #66cc66;">&#40;</span>object<span style="color: #66cc66;">&#41;</span>extractVars<span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$optval</span> , <span style="color: #0000ff;">$optname</span> , <span style="color: #0000ff;">$opttype</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><span style="color: #b1b100;">elseif</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$opttype</span>==<span style="color: #ff0000;">&#8216;array&#8217;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">$bigarr</span><span style="color: #66cc66;">&#91;</span><span style="color: #0000ff;">$optname</span><span style="color: #66cc66;">&#93;</span> = extractVars<span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$optval</span> , <span style="color: #0000ff;">$optname</span> , <span style="color: #0000ff;">$opttype</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><span style="color: #b1b100;">else</span><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">$bigarr</span><span style="color: #66cc66;">&#91;</span><span style="color: #0000ff;">$optname</span><span style="color: #66cc66;">&#93;</span> = <span style="color: #0000ff;">$optval</span>;</div>
</li>
<li style="font-weight: bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;">
<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;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">return</span> <span style="color: #0000ff;">$bigarr</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-weight: bold;">
<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;">
<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;">
<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;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">function</span> makeXML<span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$name</span> , <span style="color: #0000ff;">$var</span>=<span style="color: #ff0000;">&quot;&quot;</span> , <span style="color: #0000ff;">$parent</span> = <span style="color: #000000; font-weight: bold;">NULL</span> <span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span>!<a href="http://www.php.net/is_null"><span style="color: #000066;">is_null</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$parent</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #0000ff;">$parent</span> = <span style="color: #0000ff;">$parent</span>.<span style="color: #ff0000;">&quot;::&quot;</span>;</div>
</li>
<li style="font-weight: bold;">
<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;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span><a href="http://www.php.net/is_object"><span style="color: #000066;">is_object</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$var</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">$xml</span> .= <span style="color: #ff0000;">&quot;&lt;xmlvar name=&#8217;$parent$name&#8217; type=&#8217;object&#8217;&gt;&quot;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">foreach</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$var</span> <span style="color: #b1b100;">as</span> <span style="color: #0000ff;">$key</span>=&gt;<span style="color: #0000ff;">$val</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">$xml</span> .= makeXML<span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$key</span> , <span style="color: #0000ff;">$val</span> , <span style="color: #0000ff;">$parent</span>.<span style="color: #0000ff;">$name</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">$xml</span> .= <span style="color: #ff0000;">&quot;&lt;/xmlvar name=&#8217;$parent$name&#8217;&gt;<span style="color: #000099; font-weight: bold;">\r</span><span style="color: #000099; font-weight: bold;">\n</span>&quot;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><span style="color: #b1b100;">elseif</span><span style="color: #66cc66;">&#40;</span><a href="http://www.php.net/is_array"><span style="color: #000066;">is_array</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$var</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">$xml</span> .= <span style="color: #ff0000;">&quot;&lt;xmlvar name=&#8217;$parent$name&#8217; type=&#8217;array&#8217;&gt;&quot;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">foreach</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$var</span> <span style="color: #b1b100;">as</span> <span style="color: #0000ff;">$key</span>=&gt;<span style="color: #0000ff;">$val</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">$xml</span> .= <span style="color: #0000ff;">$tab</span>.makeXML<span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$key</span> , <span style="color: #0000ff;">$val</span> , <span style="color: #0000ff;">$parent</span>.<span style="color: #0000ff;">$name</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">$xml</span> .= <span style="color: #ff0000;">&quot;&lt;/xmlvar name=&#8217;$parent$name&#8217;&gt;<span style="color: #000099; font-weight: bold;">\r</span><span style="color: #000099; font-weight: bold;">\n</span>&quot;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><span style="color: #b1b100;">elseif</span><span style="color: #66cc66;">&#40;</span><a href="http://www.php.net/is_bool"><span style="color: #000066;">is_bool</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$var</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">$xml</span> .= <span style="color: #ff0000;">&quot;&lt;xmlvar name=&#8217;$parent$name&#8217; type=&#8217;bool&#8217;&gt;&quot;</span>;</div>
</li>
<li style="font-weight: bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">$xml</span> .= <span style="color: #ff0000;">&quot;$var&quot;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">$xml</span> .= <span style="color: #ff0000;">&quot;&lt;/xmlvar name=&#8217;$parent$name&#8217;&gt;<span style="color: #000099; font-weight: bold;">\r</span><span style="color: #000099; font-weight: bold;">\n</span>&quot;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><span style="color: #b1b100;">else</span><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">$xml</span> .= <span style="color: #ff0000;">&quot;&lt;xmlvar name=&#8217;$parent$name&#8217; type=&#8217;string&#8217;&gt;&quot;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">$xml</span> .= <span style="color: #ff0000;">&quot;$var&quot;</span>;</div>
</li>
<li style="font-weight: bold;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">$xml</span> .= <span style="color: #ff0000;">&quot;&lt;/xmlvar name=&#8217;$parent$name&#8217;&gt;<span style="color: #000099; font-weight: bold;">\r</span><span style="color: #000099; font-weight: bold;">\n</span>&quot;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">return</span> <span style="color: #0000ff;">$xml</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
</ol>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.decodephp.com/2007/11/17/php-serialize-and-unserialize-alternative/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Migrating From Windows To Fedora Core Linux : The Journey Begins</title>
		<link>http://www.decodephp.com/2007/09/12/migrating-from-windows-to-fedora-core-linux-the-journey-begins/</link>
		<comments>http://www.decodephp.com/2007/09/12/migrating-from-windows-to-fedora-core-linux-the-journey-begins/#comments</comments>
		<pubDate>Wed, 12 Sep 2007 16:42:11 +0000</pubDate>
		<dc:creator>Sab</dc:creator>
		
		<category><![CDATA[Fedora]]></category>

		<category><![CDATA[KDE]]></category>

		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://decodephp.com/new2/?p=40</guid>
		<description><![CDATA[I have always been a fan of the Linux community and always wanted to make Linux as my main Desktop OS , but things like Visual Studio .NET stopped that from happening. For 3 years I have been administrating Linux based servers as part of my job responsibility of being a Senior Web Developer, who [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.decodephp.com/wp-content/uploads/2007/09/snapshot1.jpg" title="My New Desktop"><img src="http://www.decodephp.com/wp-content/uploads/2007/09/snapshot1.thumbnail.jpg" title="My New Desktop" alt="My New Desktop" align="left" border="0" hspace="5" vspace="5" /></a>I have always been a fan of the Linux community and always wanted to make Linux as my main Desktop OS , but things like Visual Studio .NET stopped that from happening. For 3 years I have been administrating Linux based servers as part of my job responsibility of being a Senior Web Developer, who doesnt really like to be dependent on sys admins , who take their time to even carry out simplest of operations. I always liked the stability and robustness of these servers and always wanted to have something similar on my desktop. &#8216;Boot and Forget&#8217; has been something of a dream with Microsoft Windows. But on the other hand I was so used to the Windows desktop that i was afraid to move an inch , as I thought it would effect my performance.  Here is the story of how I finally had the courage to make the leap.</p>
<p>Last week our office network suffered a heavy blow cause of a silly virus/worm which kept on replicating itself to all computers on the network , though my system remained safe as I was using McAfee (which i consider the best anti-virus around) .  One of my responsibilities includes network administration as well thus i was running between systems trying to fix one thing after the other. Some systems were damaged to the extent of needing a new XP install. That day I decided that it was time that we all moved to a less vulnerable system. The ground work was done , as we recently started to use <a href="http://www.opensuse.org/" target="_blank">OpenSuse</a> 10.2 for our local testing server needs.</p>
<p>So next day we  first  tested out  <a href="http://www.ubuntu.com/" target="_blank">Ubuntu 7 aka Feisty Fawn</a> on a junior developers machine . It was pretty much plug and play and I love the live CD idea , Wireless networking went in pretty smoothly and so did all the other hardware. Perfect! BUT I just couldnt get used to the idea of a fake root &#8230; I mean root is root&#8230;. how can you fake it? .  Does the logged in user have root rights or not &#8230;. well turns out the user does have root rights but to do anything really useful you have to use &#8217;sudo&#8217; . Nahhhh not for me .. I want control , I dont want to fake it!!! . See Ubuntu is for the really casual desktop user, like my wife , who just needs the check her emails and browse around a bit but for people who use the computer to its full extent Ubuntu is kinda limited.</p>
<p>Then I installed <a href="http://fedoraproject.org/" target="_blank">Fedora Core 7</a> on an another machine and things started to fall in place. Fedora seemed to have all the answers I needed , and it also seemed to have better performance than Ubuntu. This gave me the courage and confidence to install on my own machine. So I installed FC 7 on a new hard drive on my own machine , keeping all the windows stuff on 2 seperate hard drives. The install process also proved seamless support for my SATA drive and RAID controller which while installing Windows required a driver to be installed via a floppy drive!! . As most would know Linux offers two popular desktop environments KDE and GNOME , I installed both , just to make sure I can experiment with both and find out which is best for me. After a few quick minutes on both KDE and GNOME , I decided to stick with KDE. The collection of applications provided in the install package is amazingly good , basically almost everything you might need is already in there. Ranging from Multimedia software to Server Administration tools.</p>
<p>All of my hardware installed automatically , including my Creative Audigy Sound Card , which I thought might be left out. The only thing that FC 7 didnt pick up was my Wifi card . So the next step was to configure the Internet/LAN connectivity via my D-Link WIFI card , the driver for which i found at <a href="http://rt2x00.serialmonkey.com/" target="_blank">http://rt2&#215;00.serialmonkey.com/</a> . To see the link activity in taskbar like we do in windows system tray (the two monitors blinking on and off) , I installed KNemo. and added it to my system tray panel. See now its about customizing your environment as close to what you are already used to , basically the Windows interface. and trust me there is no real limit to customization when you enter the linux world. It is only limited by your imagination.</p>
<p>2 Very important sites to remember for KDE are <a href="http://kde-look.org" target="_blank">kde-look.org</a> and <a href="http://kde-apps.org" target="_blank">kde-apps.org</a> . Browsing about I found  a <a href="http://www.openspeleo.org/kdexp/kde_xp-1.2-1usr.noarch.rpm" target="_blank">Set of XP icons</a> which took care of the Icons part of the look and feel. Then I turned my attention towards the square &#8220;K&#8221; menu button ,I installed <a href="http://www.google.com/url?sa=t&amp;ct=res&amp;cd=6&amp;url=http%3A%2F%2Fwww.kde-apps.org%2Fcontent%2Fshow.php%3Fcontent%3D24898&amp;ei=FAroRoeuMJ6cwwGgrf3BBQ&amp;usg=AFQjCNHGw5GXOUelZKqDl_073uHdmYSqlw&amp;sig2=noFiV2WbThnYMKjJWphHCw" target="_blank">KBFX</a> which allowed me to customize my &#8220;Start&#8221; button and make it rectangular or customize the icon , this app also allowed me to change the menu style and allowed templating of the K menu.</p>
<p>Once the look and feel become something to which I was accustomed , Now I wanted to mount my other 2 hard drives and make my XP bootable as well from my Linux GRUB loader.  So I searched around and found the answer for Duel botting , I edited to my /boot/grub/grub.conf and added this to the end.</p>
<pre><strong>title Windows XP
map (hd0) (hd1)
map (hd1) (hd0)
rootnoverify (hd1,0)
chainloader +1</strong></pre>
<p>to make my  NTFS partitions on my other 2 hard drives mounted at boot time , i created folders in /mnt folder and added the below to my /etc/fstab file</p>
<pre><strong>/dev/sdc1               /mnt/C-Drive             ntfs-3g  defaults      0 0</strong><strong>
/dev/sdc5               /mnt/D-Drive             ntfs-3g  defaults      0 0</strong><strong>
/dev/sdc6               /mnt/E-Drive             ntfs-3g  defaults      0 0</strong></pre>
<p>You can find the /dev/xyz by typing fdisk -l at the terminal, this outputs the details of the hard drives and partitions. Upon next reboot , I was able to get to my  XP boot loader via the GRUB menu and also I got the other partitions mounted just fine.</p>
<p>Once this was out of the way I wanted to have something similar to &#8220;My Computer&#8221; , I once again found kde-apps to be my friend and found <a href="http://www.kde-apps.org/content/show.php/KIO+Slave+sysinfo%3A%2B?content=58704" target="_blank">KIO Slave sysinfo:/</a> , i added a new link to URL on my desktop , named it My Computer and in the path to run I placed &#8220;sysinfo:/&#8221; , double clicking the icon brought me to a page which showed me my HD Partitions , CPU , RAM , VGA stats . pretty neat stuff!</p>
<p>Once my environment was set i moved towards my IM needs , I found <a href="http://www.pidgin.im/" target="_blank">Pidgin</a> (formerly known as gaim) pretty good , with messege archiving support and ability to connect to several IM networks at the same time , it made my day. I also found <a href="http://www.kmess.org/" target="_blank">KMess</a> to be a reasonable MSN clone. Got my <a href="http://www.skype.com/download/skype/linux/" target="_blank">skype</a> working pretty soon as well.</p>
<p>Wonderful , so far so good!!</p>
<p>Now I moved towards the tools i needed for my professional needs. As a hard core web developer , my favorite browser remains FireFox BUT i do have to check my sites with IE as well , just to make sure everything is working well for both sides of the internet world. The best news came when I found IE for linux!!!! YES IE FOR LINUX!!! Check it out <a href="http://www.tatanka.com.br/ies4linux/page/Main_Page" target="_blank">here</a>  , the install went perfect and now my linux was IE capable! .Another thing I must point out here is the fact that i copied my FireFox profile over from my XP install and replaced the profile folder on my linux box and on FireFox restart , everything was there including all the plugins! WOW &#8230; Kudus to the <a href="http://www.firefox.com">FireFox</a> team!</p>
<p>The next stage was to get my favorite WYSIWYG editor Macromedia Dreamweaver working , i had heard that it was possible . So I searched around and found <a href="http://luiscosio.com/how-to-dreamweaver-and-flash-8-running-on-ubuntu-dapper" target="_blank">how to run Macromedia Dreamweaver and Flash on Linux</a> , wonderful resource , priceless!. Although that article is targeted at Ubuntu users but it fits perfectly fine into our Fedora distro as well. So after a bit my linux box was running Macromedia Dreamweaver as well. Though I still have to figure out how to associate PHP files with Dreamweaver , so that they would open in Dreamweaver automatically.</p>
<p>I tried the same approach with my favorite FTP client CuteFTP and it worked out pretty good as well , a little buggy but tolerable for me!</p>
<p>At the end of all this ,  I was pretty satisfied with how my Fedora box turned out. Now I turned towards some performance tweaks and found this really good series of articles. <a href="http://www.linuxjournal.com/article/8308" target="_blank">Part 1</a> , <a href="http://www.linuxjournal.com/article/8317" target="_blank">Part 2</a> and <a href="http://www.linuxjournal.com/article/8322" target="_blank">Part 3</a> , these articles surely helped me tweak a few things performance wise. The last but not the least was to go into services manager (just like I did on windows) and turn off un-needed services at run time. Like i didnt need the ISDN support , so I turned it off , I also didnt need bluetooth support , so i turned that service off , basically this will vary according to your needs , so turn off services carefully and wisely.</p>
<p>I think this is enough for now , in the next article I will try to cover SAMBA and how I got my network computers (which include both Windows and Linux machines) to share files and printers with each other.</p>
<p>Hope this info comes in handy for someone!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.decodephp.com/2007/09/12/migrating-from-windows-to-fedora-core-linux-the-journey-begins/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Affordable PHP 5 and MySQL 5 Hosting Available</title>
		<link>http://www.decodephp.com/2007/08/25/affordable-php-5-and-mysql-5-hosting-available/</link>
		<comments>http://www.decodephp.com/2007/08/25/affordable-php-5-and-mysql-5-hosting-available/#comments</comments>
		<pubDate>Fri, 24 Aug 2007 21:30:17 +0000</pubDate>
		<dc:creator>Sab</dc:creator>
		
		<category><![CDATA[MySQL]]></category>

		<category><![CDATA[PHP]]></category>

		<category><![CDATA[Web World]]></category>

		<guid isPermaLink="false">http://decodephp.com/new2/?p=39</guid>
		<description><![CDATA[Decode IT has announced PHP 5 and MySQL 5 hosting.  After signup customers will be given a choice between version 4 and 5. The servers are dual core servers with high uptime and reliability. Small packages are ideal for Wordpress installations which can be done with clicks via the Fantastico control panel. All accounts contain [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.decodeit.biz" title="PHP and MySQL Hosting">Decode IT</a> has announced PHP 5 and MySQL 5 hosting.  After signup customers will be given a choice between version 4 and 5. The servers are dual core servers with high uptime and reliability. Small packages are ideal for <strong>Wordpress</strong> installations which can be done with clicks via the <strong>Fantastico</strong> control panel. All accounts contain the all time great CPanel account manager.</p>
<p><strong>Here is the overview&#8230;.</strong><br />
50 MB Hosting - $2.00 pm<br />
100 MB Hosting - $4.00 pm<br />
200 MB Hosting - $8.00 pm<br />
500 MB Hosting - $20.00 pm<br />
1000 MB Hosting - $35.00 pm</p>
<p>You can find the details of the packages <a href="http://www.decodeit.biz/hosting.php" title="PHP and MySQL Hosting Packages">here</a>.</p>
<p>Enjoy!!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.decodephp.com/2007/08/25/affordable-php-5-and-mysql-5-hosting-available/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Minor But Important Update to Wp Admin Switcher</title>
		<link>http://www.decodephp.com/2007/08/25/minor-but-important-update-to-wp-admin-switcher/</link>
		<comments>http://www.decodephp.com/2007/08/25/minor-but-important-update-to-wp-admin-switcher/#comments</comments>
		<pubDate>Fri, 24 Aug 2007 21:08:59 +0000</pubDate>
		<dc:creator>Sab</dc:creator>
		
		<category><![CDATA[PHP]]></category>

		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://decodephp.com/new2/?p=38</guid>
		<description><![CDATA[Thanks to a user , i have just tracked down a minor bug which could cause the plugin to breakdown with certain urls .. please download the zip from the download link provided on top right and update both .php files inside your /wp-content/plugins/wp-admin-switcher/ folder.
]]></description>
			<content:encoded><![CDATA[<p>Thanks to a user , i have just tracked down a minor bug which could cause the plugin to breakdown with certain urls .. please download the zip from the download link provided on top right and update both .php files inside your /wp-content/plugins/wp-admin-switcher/ folder.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.decodephp.com/2007/08/25/minor-but-important-update-to-wp-admin-switcher/feed/</wfw:commentRss>
		</item>
		<item>
		<title>TCP Optimizer : Optimize Your Internet Connection Speed</title>
		<link>http://www.decodephp.com/2007/08/18/tcp-optimizer-optimize-your-internet-connection-speed/</link>
		<comments>http://www.decodephp.com/2007/08/18/tcp-optimizer-optimize-your-internet-connection-speed/#comments</comments>
		<pubDate>Fri, 17 Aug 2007 23:59:18 +0000</pubDate>
		<dc:creator>Sab</dc:creator>
		
		<category><![CDATA[Misc]]></category>

		<guid isPermaLink="false">http://decodephp.com/new2/?p=37</guid>
		<description><![CDATA[I switched my DSL provider lately and some people were kinda shocked at the download rates I was getting , I was getting atleast twice more than all of them. I was surprised as well , then after alot of thinking I remembered that a few months ago i was just surfing over the internet [...]]]></description>
			<content:encoded><![CDATA[<p>I switched my DSL provider lately and some people were kinda shocked at the download rates I was getting , I was getting atleast twice more than all of them. I was surprised as well , then after alot of thinking I remembered that a few months ago i was just surfing over the internet and downloaded <a href="http://www.speedguide.net/downloads.php">TCP Optimizer</a> and tried it out and noticed improvement in my download speeds, it wasnt much evident as i was using 256Kbps DSL back then , but the significance became evident when i switched to 1MBps. So I recommend all of you who want to get the most out of their downloads to try out this free software , which worked like a charm for me.</p>
<p>TCP Optimizer is available free <a href="http://www.speedguide.net/downloads.php" title="TCP Optimizer" target="_blank">here</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.decodephp.com/2007/08/18/tcp-optimizer-optimize-your-internet-connection-speed/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Easily Switch Between Multiple Wordpress Admins - WP Admin Switcher V1</title>
		<link>http://www.decodephp.com/2007/08/01/easily-switch-between-multiple-wordpress-admins-wp-admin-switcher-v1/</link>
		<comments>http://www.decodephp.com/2007/08/01/easily-switch-between-multiple-wordpress-admins-wp-admin-switcher-v1/#comments</comments>
		<pubDate>Wed, 01 Aug 2007 16:15:52 +0000</pubDate>
		<dc:creator>Sab</dc:creator>
		
		<category><![CDATA[PHP]]></category>

		<category><![CDATA[Web World]]></category>

		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://decodephp.com/new2/?p=35</guid>
		<description><![CDATA[Just finished my first plugin for wordpress called WP Admin Switcher.  You can download this plugin here
After you have installed this plugin you will be able to add information of multiple blogs you manage, the plugin will show you a drop down on top of all pages and let you switch between blogs. When [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.decodephp.com/wp-content/uploads/2007/08/screenshot-1.jpeg" title="WP Admin Switcher"><img src="http://www.decodephp.com/wp-content/uploads/2007/08/screenshot-1.thumbnail.jpeg" title="WP Admin Switcher" alt="WP Admin Switcher" align="left" border="0" hspace="5" vspace="5" /></a>Just finished my first plugin for wordpress called WP Admin Switcher.  You can download this plugin <a href="http://www.decodephp.com/wp-admin-switcher-plugin-v1.zip" title="WP Admin Switcher V1"><strong>here</strong></a></p>
<p>After you have installed this plugin you will be able to add information of multiple blogs you manage, the plugin will show you a drop down on top of all pages and let you switch between blogs. When you switch the plugin will attempt to show the same page of the other blogs administration panel. This plugin also works with free blogs from wordpress.com.</p>
<p>The plugin requires CURL to be installed with PHP. Also please make sure to set the permission of the folder &#8220;tempfiles&#8221; to 777. Another point to keep in mind is that when you enter the URL of the administration panel in the WP Admin Switcher management page , please make sure you enter the correct URL. Some blogs are set to force www , so the page will keep redirecting to http://abc.com/wp-admin/ if you enter the URL like this http://www.abc.com/wp-admin/ . So make sure that enter the correct wp-admin URL.</p>
<p>Have Fun!</p>
<p><font color="red"><em><strong>2nd </strong></em></font><em><strong><font color="red"> Sept  , 2007 </font>: As someone pointed out there are several blogs out there that dont use mod_rewrite or permalinks , so thus plugin wont work out of the box for them , they need to create a mod_rewrite rule to point to the main index.php for wp-admin/virtual/</strong></em>  <strong>requests. <font color="red">If you dont have mod_rewrite available then this plugin is not going to work for you , maybe the next version will make it independent of mod_rewrite.</font></strong></p>
<p><strong></strong><br />
<em><strong><font color="red">24th Aug , 2007 </font>: A bug was found which was leading to a breakdown in the plugins functionality , thanks to a user , this has been weeded out.<br />
</strong></em><br />
<em><strong><font color="red"><br />
5th Aug , 2007 </font>: Some adjustments were made to the script based on user feedback, if you are seeing messages which indicates that your request was blocked , please download the plugin again from the link above and see if it helps.</strong></em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.decodephp.com/2007/08/01/easily-switch-between-multiple-wordpress-admins-wp-admin-switcher-v1/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
