<?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>Microsonic Development &#187; Software Reviews</title>
	<atom:link href="http://microsonic.org/category/software-reviews/feed/" rel="self" type="application/rss+xml" />
	<link>http://microsonic.org</link>
	<description></description>
	<lastBuildDate>Mon, 12 Jul 2010 01:55:28 +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>PHP &amp; Pagination</title>
		<link>http://microsonic.org/2009/06/04/php-pagination/</link>
		<comments>http://microsonic.org/2009/06/04/php-pagination/#comments</comments>
		<pubDate>Fri, 05 Jun 2009 01:23:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[Software Reviews]]></category>
		<category><![CDATA[multiple]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[pages]]></category>
		<category><![CDATA[pagination]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[results]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://microsonic.org/?p=167</guid>
		<description><![CDATA[Very often I see people asking questions about this on forums such as DP and NP. I have probably posted my code snippet on how to efficiently create a simple pagination document more times than I can count (which whether you believe it or not is pretty high ). So I decided I&#8217;d go through [...]]]></description>
			<content:encoded><![CDATA[<p>Very often I see people asking questions about this on forums such as DP and NP. I have probably posted my code snippet on how to efficiently create a simple pagination document more times than I can count (which whether you believe it or not is pretty high <img src='http://microsonic.org/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> ). So I decided I&#8217;d go through it here.</p>
<p>First off, we&#8217;ll explain what pagination is. You may be reading this article not even certain if pagination is what you need. However, if you have multiple MySQL results you wish to organize and display &#8220;x&#8221; results per page, you&#8217;re on looking at the right thing. It is as simple as that. Pagination is really just web jargin used to shorten up &#8220;return results only displaying &#8216;x&#8217; per page.&#8221;</p>
<p>So, I&#8217;m going to post the snippet and I&#8217;ll go into it a little bit, but I do believe that the comments explain pretty thoroughly. First the database structure we&#8217;re going to use <img src='http://microsonic.org/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  </p>
<blockquote><p><code>CREATE TABLE `pagination` (<br />
`id` BIGINT( 10 ) NOT NULL ,<br />
`name` VARCHAR( 32 ) NOT NULL ,<br />
`content` TEXT NOT NULL ,<br />
PRIMARY KEY ( `id` )<br />
) ENGINE = MYISAM ;</code></p></blockquote>
<p>And now.. The moment we&#8217;ve been waiting for&#8230; The actual pagination script! <img src='http://microsonic.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<blockquote><p><code>&lt;?php<br />
/**<br />
 * Pagination Script by Dennis M.<br />
 * (C) 2009 Dennis M. All Rights Reserved.<br />
 *<br />
 * Primary purpose of this script is to teach<br />
 * people the art and concept of pagination<br />
 * and how to effectively create/use it.<br />
 * Please give credit to Dennis M. if you<br />
 * take anything directly from this script.<br />
 *<br />
 */</p>
<p>// Connect to DB<br />
mysql_connect("localhost","USER","PASS");<br />
mysql_select_db("USER_DATABASE");</p>
<p>// Define results per page<br />
$perPage = 1;</p>
<p>// Define page number in URL<br />
$num = $_GET['no'];</p>
<p>// Define link starting point.<br />
$linkno = 1;</p>
<p>// If no number given, default it.<br />
if(!isset($num) OR !is_numeric($num)){<br />
    $num = 1;<br />
}</p>
<p>// Multiply to see where we're at to show results <img src='http://microsonic.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
$currentLimit = $perPage*($num-1);</p>
<p>// Get how many pages we'll have total (for links)<br />
$numPages = mysql_num_rows(mysql_query("SELECT * FROM pagination"))/$perPage;</p>
<p>$query = mysql_query("SELECT * FROM pagination ORDER BY id ASC LIMIT ".mysql_escape_string($currentLimit).",".mysql_escape_string($perPage).";");</p>
<p>// Fetch all the info<br />
while($row = mysql_fetch_array($query)){<br />
    $title = stripslashes($row['name']);<br />
    $article = stripslashes($row['content']);<br />
?&gt;<br />
&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;title&gt;Pagination Test&lt;/title&gt;<br />
&lt;/head&gt;<br />
&lt;body&gt;<br />
&lt;h1&gt;&lt;?php echo($title); ?&gt;&lt;/h1&gt;&lt;br /&gt;<br />
&lt;p&gt;&lt;?php echo($article); ?&gt;&lt;/p&gt;&lt;br /&gt;&lt;hr&gt;<br />
&lt;?php<br />
}<br />
print "&lt;p align=\"right\"&gt;";<br />
if($perPage &lt;= 2){<br />
    while($links &lt; round($numPages)){<br />
?&gt;<br />
<a href="?no=<?php echo($linkno); ?>"&gt;&lt;?php echo($linkno); ?&gt;</a><br />
&lt;?php<br />
        $links++;<br />
        $linkno++;<br />
    }<br />
} else {<br />
    while($links &lt;= round($numPages)){<br />
?&gt;<br />
<a href="?no=<?php echo($linkno); ?>"&gt;&lt;?php echo($linkno); ?&gt;</a><br />
&lt;?php<br />
        $links++;<br />
        $linkno++;<br />
    }<br />
}<br />
?&gt;&lt;/p&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;</code></p></blockquote>
<p>Now that&#8217;s all there really is to it. Basically how it works is it updates the SQL query depending on the page number (received from $_GET['no']). If none is defined, it reverts to the default and all goes accordingly!</p>
<p><a href='http://microsonic.org/2009/06/04/php-pagination/paginationtar/' rel='attachment wp-att-168'>Pagination Tutorial</a></p>
<p>The download link is above as usual! <img src='http://microsonic.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Enjoy</p>
<p>Regards,<br />
Dennis M.</p>
]]></content:encoded>
			<wfw:commentRss>http://microsonic.org/2009/06/04/php-pagination/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP vs Ruby on Rails (RoR)</title>
		<link>http://microsonic.org/2009/06/02/php-vs-ruby-on-rails-ror/</link>
		<comments>http://microsonic.org/2009/06/02/php-vs-ruby-on-rails-ror/#comments</comments>
		<pubDate>Tue, 02 Jun 2009 23:00:39 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Other]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Software Reviews]]></category>
		<category><![CDATA[on]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ror]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://microsonic.org/?p=165</guid>
		<description><![CDATA[Well people have been asking me lately about this Ruby on Rails (RoR). I often receive questions such as &#8220;What is RoR?&#8221; or &#8220;Is it better than PHP?&#8221;. Well, Ruby on Rails is another web programming language, but is not widely compatible across all web servers, but is increasingly becoming so. Personally, I am more [...]]]></description>
			<content:encoded><![CDATA[<p>Well people have been asking me lately about this Ruby on Rails (RoR). I often receive questions such as &#8220;What is RoR?&#8221; or &#8220;Is it better than PHP?&#8221;. Well, Ruby on Rails is another web programming language, but is not widely compatible across all web servers, but is increasingly becoming so. Personally, I am more of an advocate to PHP, but we&#8217;ll try to get the facts straightened out.</p>
<p>To begin, I&#8217;m going to assume everyone knows the basics of PHP. It&#8217;s fast, efficient, integrated with the webserver, etc. But for those of you completely unfamiliar with Ruby on Rails it is made by the &#8220;Ruby Core Team&#8221; (of the Ruby Programming Language). The format of the language is similar to Python if any are familiar with that. Ruby generally runs on its own server, separate from the general webserver-to my experience anyway.</p>
<p>So now that we have the basics down about each let&#8217;s go over the weak points in each and strong points. We will begin with the weak points to Ruby on Rails. Since it runs on it&#8217;s own server, it makes it more difficult to readily integrate with a site: obviously. Also, for those of us who prefer the nice C/C++ style programming, you can forget it with RoR. You will definitely end up using &#8220;end&#8221; much more than you would care to admit with this language. Compatibility across servers is more or less low. Most servers do not provide the RoR service, so that is also a downfall of RoR.</p>
<p>Likewise, PHP also has its faults. Since the language is so widely used and installed on practically every serer on the web, it allows for more holes to be more easily and quickly found. This means more frequent updates (which could be good if it does not become a nuisance) and since it is integrated with the web server, that also means long patch times. Depending on how you have setup PHP, you may even have to recompile the webserver. Normally it doesn&#8217;t cause a great problem for most servers because the old version doesn&#8217;t remove until the new version is finished compiling, but it greatly increases server load. For webhosts, this could cause a problem because this means that they have to go down for more server maintenance time. Also, unfortunately for PHP, every time one wants to add a new feature (example add ziplink support or something) they would have to recompile PHP.</p>
<p>Although both have their faults, both also have very strong points. Again, we&#8217;ll begin with RoR. RoR, again, since it&#8217;s not integrated means little downtime if it needs to be updated. Also, it is similar to Perl in the respect that it can download modules quickly and easily. Ruby, growing more popular, also is easier for users who are entering programming. It definitely scores an A+ on the entry level programming language level and pretty powerful with simple code.</p>
<p>PHP, on the otherhand, though a little more complex has its key aspects. There is mass compatibility with PHP. As mentioned earlier, pretty much every server on the web is PHP enabled. It has become the web standard over the years. Another benefit, since most open source software is programmed in PHP, is one who knows it can make their own program modifications and customizations to most open source programs. Above all, the support over the web is great because users all over the web have a deep understanding and knowledge of the language and are willing to offer free help on forums all over the web.</p>
<p>So all in all, both languages have their ups and downs. Ultimately, it is your choice to decide which you would rather learn/install on your server. Peronsally, I would go with PHP simply because it&#8217;s more available and there is a greater user base to help you. If you are looking for custom projects to be made, it may also be much easier to find a programmer to do work for you if you&#8217;re looking for PHP. But if you have never looked at programming before and cannot seem to grasp the concepts of PHP, Ruby may be a good alternative to start learning how programming should look and feel.</p>
<p>Regards,<br />
Dennis M.</p>
]]></content:encoded>
			<wfw:commentRss>http://microsonic.org/2009/06/02/php-vs-ruby-on-rails-ror/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Knowing What to Use (or make) for Your Site</title>
		<link>http://microsonic.org/2009/05/26/knowing-what-to-use-or-make-for-your-site/</link>
		<comments>http://microsonic.org/2009/05/26/knowing-what-to-use-or-make-for-your-site/#comments</comments>
		<pubDate>Tue, 26 May 2009 19:36:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Software Reviews]]></category>
		<category><![CDATA[cms]]></category>
		<category><![CDATA[kinds]]></category>
		<category><![CDATA[site]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[website]]></category>

		<guid isPermaLink="false">http://microsonic.org/?p=162</guid>
		<description><![CDATA[So it seems quite often new webmasters are at their wit&#8217;s end when the question arises: what features does my site need? Well, this common question can be quickly turned into a daunting test of thought to new and experienced webmasters alike. So how can one even begin to approach this question? Well, why am [...]]]></description>
			<content:encoded><![CDATA[<p>So it seems quite often new webmasters are at their wit&#8217;s end when the question arises: what features does my site need? Well, this common question can be quickly turned into a daunting test of thought to new and experienced webmasters alike. So how can one even begin to approach this question? Well, why am I asking you? That&#8217;s what you&#8217;re reading this for <img src='http://microsonic.org/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> .</p>
<p>Alright, so you are creating a new site and are not sure what features you should start packing it with. Well, the most important thing to keep in mind is that the site should always be updated. So if at first you forget some features, don&#8217;t rush to get them finished right away; save them for future updates. By keeping sites updated, as I&#8217;ve mentioned in previous posts, you keep users coming back to your site. Once you have that out of the way, you can move on to deciding site essentials.</p>
<p>Deciding site essential features is an absolutely necessary step to creating a successful site. Consider your site&#8217;s purpose, function, and most importantly, what makes it unique. Whatever makes it unique should be the most important feature you first include. Followed by what it does and its purpose. For example, I have created a blog here. So I would not make this site a giant forum and expect people to simply read my blog posts, but rather I setup the blog and add an RSS feed so people can subscribe and stay updated.</p>
<p>So more or less, when a user is trying to figure out what is necessary, those functions that make your site worth viewing are what you need to include. Then, if you feel you&#8217;ve forgotten something, add them in for later additions so people have yet another reason to keep coming back to your site! Remember, with the web changing literally every second, one needs to keep their content and sites updated frequently (hmm maybe I should follow my own advice, eh? :p).</p>
<p>Regards,<br />
Dennis M.</p>
]]></content:encoded>
			<wfw:commentRss>http://microsonic.org/2009/05/26/knowing-what-to-use-or-make-for-your-site/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>PHP Link Directory (phpLD)</title>
		<link>http://microsonic.org/2009/04/29/php-link-directory-phpld/</link>
		<comments>http://microsonic.org/2009/04/29/php-link-directory-phpld/#comments</comments>
		<pubDate>Wed, 29 Apr 2009 10:30:48 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Software Reviews]]></category>
		<category><![CDATA[directory]]></category>
		<category><![CDATA[link]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[phpld]]></category>

		<guid isPermaLink="false">http://microsonic.org/?p=122</guid>
		<description><![CDATA[Hey there guys. So my most recent project has been working with the PHP Link Directory, commonly known as phpLD. I&#8217;m working with versions v2.2.0 (free) and v3.3.0 (paid). I am creating various mods (unfortunately I cannot post them here, private project so the mods are to the buyer only) for the buyer and have [...]]]></description>
			<content:encoded><![CDATA[<p>Hey there guys. So my most recent project has been working with the PHP Link Directory, commonly known as <a title="phpLD" href="http://www.phplinkdirectory.com/articlescript/index.php" target="_blank">phpLD</a>. I&#8217;m working with versions v2.2.0 (free) and v3.3.0 (paid). I am creating various mods (unfortunately I cannot post them here, private project so the mods are to the buyer only) for the buyer and have looked through most of the script&#8217;s structure. So I&#8217;m giving a review.</p>
<p>It is natural for a programmer to look through source code of an open source program and decide for him or herself whether the program is efficient. For the most part, I must admit, phpLD is a great script. I will proceed by version in the next few paragraphs explaining the things I found.</p>
<p>In version v2.2.0 the script is very small. Simply the &#8220;barebone&#8221; basics of what you could call a program. Even though it gets the job done, there are very few modifications for this free version of phpLD and it makes it difficult to learn a lot about the version without looking through the source yourself. Now for people such as myself, we look through the source code anyway, but someone just taking a quick look to make a few changes, it could be quite difficult and cumbersome if they are unfamiliar with general programming. Normally this would not be the case because modding generally implies that you have a thorough understanding of how the code works in the first place, but sometimes I feel the file names could have been chosen better to describe their function&#8212;but then again, every developer has his or her preference. Other than that, there seem to be some minor security holes (haven&#8217;t spent too much time looking for large exploits as I&#8217;m just simply working on the mods) but this version is outdated, thus the reason it is free.</p>
<p>In version 3.4.0 I must say I&#8217;m highly impressed. At a glance, there are no apparent security holes or problems with this feature rich software. I think it actually makes shelling out the extra few bucks for this worth it. The already feature-rich link directory script also has many mods available for it. People who are &#8220;on the fence&#8221; so to speak about making their final purchase for this software, I recommend purchasing this version. If you&#8217;re looking to be a serious link directory and have the cash, this is the way to go. Now that is not to say you cannot have a successful link directory with v2.2.0, but this version is much easier to use and is much more admin friendly. It seems they crafted this version to be more geared toward the average use rather than the webmaster.</p>
<p>Some down falls in all of this is compatibility. I understand how versions work (x.x.x) major, minor, etc. on builds/releases, however, moving from v2.2.0 to v3.4.0 it looks like an entirely different program. Much of the source code from v2.2.0 has been completely outdated. If they are providing a free version, I personally think it should at least use a similar structure and not the primitive structure they use for it. Also, since the program is so widely used, it looks very generic if you do not theme it. Even then, with a custom theme the registration forms are identical on almost every site using it. So beware of losing a sense of &#8220;directory uniqueness&#8221; to this software.</p>
<p>So overall, the program, in either version, is a worthwhile program to at least take a look at. If you&#8217;re serious about creating a link directory and don&#8217;t want to, can&#8217;t, or don&#8217;t have time to create your own, phpLD is the way to go. Again, it may cause a problem that the directory script is so largely used that your site may lose any originality that it could have had otherwise. Also, the compatibility factor (if you start using the free v2.2.0) is horrendous. If you have a modded v2.2.0 and decide later you wish to upgrade to v3.4.0,  you may find great difficulty in transferring these mods over to the newer version. Other than those slumps, either version should suit most purposes well.</p>
<p>Regards,<br />
Dennis M.</p>
]]></content:encoded>
			<wfw:commentRss>http://microsonic.org/2009/04/29/php-link-directory-phpld/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
