<?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>My Notepad</title>
	<atom:link href="http://digitzone.net/press/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://digitzone.net/press</link>
	<description></description>
	<lastBuildDate>Tue, 27 Sep 2011 20:48:42 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>How to: Load My Configuration Data</title>
		<link>http://digitzone.net/press/?p=34</link>
		<comments>http://digitzone.net/press/?p=34#comments</comments>
		<pubDate>Tue, 27 Sep 2011 20:48:05 +0000</pubDate>
		<dc:creator>ac1982</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://digitzone.net/press/?p=34</guid>
		<description><![CDATA[What is the best way to load your web application configuration? All web applications today have at least a single configuration file or multiple ones. What is the best way to load your configuration file? from database, from an XML file, &#8230; <a href="http://digitzone.net/press/?p=34">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>What is the best way to load your web application configuration? All web applications today have at least a single configuration file or multiple ones. What is the best way to load your configuration file? from database, from an XML file, from INI file or from SESSIONS??? To find out which method is the best I decided to run a few tests for each method and to see the time that a method required to be executed and how much memory it needed.</p>
<p>My conclusions where that as many times as I run the tests saving configuration data in sessions is the fastest way with a slightly difference in memory usage which increases a bit compares to loading from the INI file. Loading the configuration settings of your application in sessions or INI file saves resources and improves performance. I thing that a good practice is to have configuration in INI file and when ever the file updates to load the configuration for each visitor in its sessions instead of reading from INI. But at what cost?</p>
<p>Below you can see the results generated on the fly. <a href="http://digitzone.net/classes/PerformanceTests/">http://digitzone.net/classes/PerformanceTests/</a></p>
<div class="tweetthis" style="text-align:left;"><p> <a target="_blank" rel="nofollow" class="tt" href="http://twitter.com/intent/tweet?text=How+to%3A+Load+My+Configuration+Data+http%3A%2F%2Fdigitzone.net%2Fpress%2F%3Fp%3D34" title="Post to Twitter"><img class="nothumb" src="http://digitzone.net/press/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter.png" alt="Post to Twitter" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://twitter.com/intent/tweet?text=How+to%3A+Load+My+Configuration+Data+http%3A%2F%2Fdigitzone.net%2Fpress%2F%3Fp%3D34" title="Post to Twitter">Tweet This Post</a></p></div>]]></content:encoded>
			<wfw:commentRss>http://digitzone.net/press/?feed=rss2&#038;p=34</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Write &amp; Read UTF-8 from Mysql</title>
		<link>http://digitzone.net/press/?p=29</link>
		<comments>http://digitzone.net/press/?p=29#comments</comments>
		<pubDate>Tue, 09 Nov 2010 21:26:58 +0000</pubDate>
		<dc:creator>ac1982</dc:creator>
				<category><![CDATA[Databases]]></category>
		<category><![CDATA[Mysql]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://digitzone.net/press/?p=29</guid>
		<description><![CDATA[The following php script shows how we can write and read Greek characters in a mysql database. Before starting check the encoding of your file. If you are using Zend studio go to Edit-&#62;Set Encoding and select Other: utf-8. Now &#8230; <a href="http://digitzone.net/press/?p=29">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>The following php script shows how we can write and read Greek  characters in a mysql database. Before starting check the encoding of  your file. If you are using Zend studio go to Edit-&gt;Set Encoding and  select Other: utf-8. Now in your php script after establishing a  connection to the database type the following queries in order to set  the names and characters equal to utf-8 for the specified connection,  for me is just one connection so I do not use the resource as a  parameter.</p>
<p>mysql_query(&#8220;SET NAMES &#8216;utf8&#8242;&#8221;);<br />
mysql_query(&#8220;SET CHARACTER SET &#8216;utf8&#8242;&#8221;);</p>
<p><strong>Next you can type you insert query:</strong></p>
<p>$query = sprintf(&#8216;INSERT INTO test (text) VALUES (&#8220;%s&#8221;)&#8217;, &#8216;write greek text here&#8217;);<br />
mysql_query($query);</p>
<p><strong>And finally you can start reading from your database:</strong></p>
<p>$q = mysql_query(&#8220;select text  from test order by text&#8221;");<br />
$row = mysql_fetch_object($q);</p>
<p>while($row){<br />
echo $row-&gt;text;<br />
$row = mysql_fetch_object($q);<br />
}</p>
<p>This small piece of information can save you a lot of time when trying to handle utf-8 characters. Good luck.</p>
<div class="tweetthis" style="text-align:left;"><p> <a target="_blank" rel="nofollow" class="tt" href="http://twitter.com/intent/tweet?text=Write+%26+Read+UTF-8+from+Mysql+http%3A%2F%2Fdigitzone.net%2Fpress%2F%3Fp%3D29" title="Post to Twitter"><img class="nothumb" src="http://digitzone.net/press/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter.png" alt="Post to Twitter" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://twitter.com/intent/tweet?text=Write+%26+Read+UTF-8+from+Mysql+http%3A%2F%2Fdigitzone.net%2Fpress%2F%3Fp%3D29" title="Post to Twitter">Tweet This Post</a></p></div>]]></content:encoded>
			<wfw:commentRss>http://digitzone.net/press/?feed=rss2&#038;p=29</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Clean-Up your code!</title>
		<link>http://digitzone.net/press/?p=24</link>
		<comments>http://digitzone.net/press/?p=24#comments</comments>
		<pubDate>Tue, 09 Nov 2010 21:23:29 +0000</pubDate>
		<dc:creator>ac1982</dc:creator>
				<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://digitzone.net/press/?p=24</guid>
		<description><![CDATA[Clean code means readable code by anyone, no duplications, faster performance and the best thing of all is you can edit that code easier. JAVASCRIPT : a very good website that can tide up your code especially if is a &#8230; <a href="http://digitzone.net/press/?p=24">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Clean code means readable code by anyone, no duplications, faster  performance and the best thing of all is you can edit that code easier.</p>
<p><strong>JAVASCRIPT</strong> : a very good website that can tide up your code especially if is a big mess and you cannot read or edit the code use: <a href="http://javascript.about.com/library/blformat.htm" target="_blank">About.com &#8211; Javascript Formatter</a>. Just copy and paste your javascript code inside the textarea and press clean.</p>
<p><strong>CSS</strong> : cascading style sheets. No more having the same class more than once or classes that do the same thing. By using the<br />
<a href="http://jigsaw.w3.org/css-validator/" target="_blank">W3C CSS Validation Tool</a> 1st it will validate your code and 2nd generate for you a clean version<br />
of your css code nice and tide.</p>
<p><strong>PrettyPrinter.de</strong></p>
<p>If you would like a more sophisticate source code formatter I believe PrettyPrinter is the best I used so far. <a href="http://www.prettyprinter.de/module.php?name=PrettyPrinter" target="_blank">Visit Site</a>.  The reason is that this site enables the user to customize the code  format according to its needs. The following parameters can be applied:</p>
<ul>
<li>Add new lines after &#8220;{&#8221; and before &#8220;}&#8221;</li>
<li>Add new lines before &#8220;{&#8220;</li>
<li>Remove empty lines.</li>
<li>Add comment lines before function.</li>
<li>Add new lines after &#8220;;&#8221;</li>
<li>Add new lines after &#8220;}&#8221; (For .css) (Thanks David)</li>
<li>Remove new lines (useful only if you add them again with the other functions above)</li>
<li>Add new lines after &#8220;;&#8221; but not in for loops (Don&#8217;t check &#8220;Remove  new lines&#8221; but do check &#8220;Remove empty lines&#8221;)(Thanks Chris)  (Experimental, uses a heuristic that might fail )</li>
<li>Add new lines after &#8220;;&#8221; but not in for loops and skip quotes (Don&#8217;t  check &#8220;Remove new lines&#8221; but do check &#8220;Remove empty lines&#8221;) (Thanks  Chris) (Experimental, uses a heuristic that might fail )</li>
<li>Reduce whitespace</li>
<li>Put the code again in the input box above after submit.</li>
<li>Skip HTML, give me plain code! (Use Save-As function of your browser)</li>
</ul>
<div class="tweetthis" style="text-align:left;"><p> <a target="_blank" rel="nofollow" class="tt" href="http://twitter.com/intent/tweet?text=Clean-Up+your+code%21+http%3A%2F%2Fdigitzone.net%2Fpress%2F%3Fp%3D24" title="Post to Twitter"><img class="nothumb" src="http://digitzone.net/press/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter.png" alt="Post to Twitter" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://twitter.com/intent/tweet?text=Clean-Up+your+code%21+http%3A%2F%2Fdigitzone.net%2Fpress%2F%3Fp%3D24" title="Post to Twitter">Tweet This Post</a></p></div>]]></content:encoded>
			<wfw:commentRss>http://digitzone.net/press/?feed=rss2&#038;p=24</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My nomination on DebugTool</title>
		<link>http://digitzone.net/press/?p=19</link>
		<comments>http://digitzone.net/press/?p=19#comments</comments>
		<pubDate>Tue, 09 Nov 2010 21:20:31 +0000</pubDate>
		<dc:creator>ac1982</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://digitzone.net/press/?p=19</guid>
		<description><![CDATA[DebugTool v1.0 becomes my first nominated php project by PHP Classes. debugTools By Andreas Christodoulou September 2008 Number 3 I would like to thank php classes for approving my project in PHP Programming Innovation Award. Tweet This Post]]></description>
			<content:encoded><![CDATA[<p>DebugTool v1.0 becomes my first nominated php project by <a href="http://www.phpclasses.org/">PHP Classes</a>.</p>
<table border="1">
<tbody>
<tr>
<td style="text-align: center;"><a href="http://www.phpclasses.org/"><img src="http://files.phpclasses.org/themes/igd01/graphics/logo-small-phpclasses.png" border="0" alt="PHP Classes" width="75" height="15" /></a></p>
<hr /><strong><a href="http://www.phpclasses.org/package/4822-PHP-Display-PHP-execution-information-in-a-page.html">debugTools</a><br />
By <a href="http://www.phpclasses.org/browse/author/458434.html">Andreas Christodoulou</a></strong><br />
<a href="http://www.phpclasses.org/award/innovation/"><img title="PHP Programming Innovation award nominee" src="http://www.phpclasses.org/award/innovation/nominee.gif" border="0" alt="PHP Programming Innovation award nominee" width="89" height="89" /></a><br />
<span><strong>September 2008<br />
Number 3</strong></span></td>
</tr>
</tbody>
</table>
<p>I would like to thank php classes for approving my project in PHP Programming Innovation Award.</p>
<div class="tweetthis" style="text-align:left;"><p> <a target="_blank" rel="nofollow" class="tt" href="http://twitter.com/intent/tweet?text=My+nomination+on+DebugTool+http%3A%2F%2Fdigitzone.net%2Fpress%2F%3Fp%3D19" title="Post to Twitter"><img class="nothumb" src="http://digitzone.net/press/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter.png" alt="Post to Twitter" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://twitter.com/intent/tweet?text=My+nomination+on+DebugTool+http%3A%2F%2Fdigitzone.net%2Fpress%2F%3Fp%3D19" title="Post to Twitter">Tweet This Post</a></p></div>]]></content:encoded>
			<wfw:commentRss>http://digitzone.net/press/?feed=rss2&#038;p=19</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PN Generator (Pagination)</title>
		<link>http://digitzone.net/press/?p=15</link>
		<comments>http://digitzone.net/press/?p=15#comments</comments>
		<pubDate>Tue, 09 Nov 2010 21:18:24 +0000</pubDate>
		<dc:creator>ac1982</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://digitzone.net/press/?p=15</guid>
		<description><![CDATA[This class can be used to generate links to browse MySQL database query results split in multiple pages. It takes as parameters an SQL query and a limit number of results to display per page. The class executes the query &#8230; <a href="http://digitzone.net/press/?p=15">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>This class can be used to generate links to browse MySQL database query results split in multiple pages.</p>
<p>It takes as parameters an SQL query and a limit number of results to display per page.</p>
<p>The class executes the query to obtain the total number of results and  generates HTML links to browse to the next, previous and other pages  over which the query results will be displayed.</p>
<p><a name="more"></a>Inside the zip file there is a file called example1.php which you need to configure first by setting up your <span style="text-decoration: underline;">database connection strings</span>, <span style="text-decoration: underline;">your query</span> and <span style="text-decoration: underline;">how many results to display in each page</span>.</p>
<ul>
<li>You can download the class file <a href="http://www.digitzone.net/classes/pn_generator/pnGenerator_01.zip"><strong>here</strong></a>.</li>
</ul>
<div class="tweetthis" style="text-align:left;"><p> <a target="_blank" rel="nofollow" class="tt" href="http://twitter.com/intent/tweet?text=PN+Generator+%28Pagination%29+http%3A%2F%2Fdigitzone.net%2Fpress%2F%3Fp%3D15" title="Post to Twitter"><img class="nothumb" src="http://digitzone.net/press/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter.png" alt="Post to Twitter" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://twitter.com/intent/tweet?text=PN+Generator+%28Pagination%29+http%3A%2F%2Fdigitzone.net%2Fpress%2F%3Fp%3D15" title="Post to Twitter">Tweet This Post</a></p></div>]]></content:encoded>
			<wfw:commentRss>http://digitzone.net/press/?feed=rss2&#038;p=15</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SEO &#8211; The basics</title>
		<link>http://digitzone.net/press/?p=9</link>
		<comments>http://digitzone.net/press/?p=9#comments</comments>
		<pubDate>Tue, 09 Nov 2010 21:10:00 +0000</pubDate>
		<dc:creator>ac1982</dc:creator>
				<category><![CDATA[Search Engine Optimization]]></category>

		<guid isPermaLink="false">http://digitzone.net/press/?p=9</guid>
		<description><![CDATA[SEO which stands for Search Engine Optimization is a must for every site that is been made. If you would like your site to get a good ranking into different search engines like Google, Yahoo and other you must follow &#8230; <a href="http://digitzone.net/press/?p=9">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>SEO which stands for Search Engine Optimization is a must for every site  that is been made. If you would like your site to get a good ranking  into different search engines like Google, Yahoo and other you must  follow some basic rules. I believe that even a novice user can do SEO  its website without the knowledge of how to program for a start. The  following are some rules that I wrote down that I came across for my  convenience and yours to help keep a site consistent and adhere to the  latest standards of <a href="http://www.w3.org/" target="_blank">W3C</a>.</p>
<p><a name="more"></a>01. Specify a DOCTYPE at the top of your page. An example of a DOCTYPE is:</p>
<p><img title="DOCTYPE" src="../../blog/media/1/20080912-doc.gif" alt="DOCTYPE" width="500" height="100" /></p>
<p>02. The following must be present inside the head of your page:</p>
<p><img title="HTML HEAD" src="../../blog/media/1/20080912-html.gif" alt="HTML HEAD" width="351" height="226" /></p>
<p>03. The Url &amp; Title of your website are very important and you must give it some thought first.</p>
<p>04. Sizes:</p>
<p>- Title size 80  chars,<br />
- Keywords size 20 chars,<br />
- Description size 250 chars related to site content<br />
and for each page individually</p>
<p>05. The H1, H2 tags are very important as it shows the importance of your content.</p>
<p>06. Tide up your code to help crawler crawl your site easier and faster.</p>
<p>07. Join multiple CSS file into one for faster loading</p>
<p>08. Remove unnecessary CSS classes or id&#8217;s, js functions or files, php functions or files.</p>
<p>09. IMAGES</p>
<p>- check all images if exists<br />
- check images size, create thumbnails for better performance<br />
- check out transparent images how they look in different browsers (old browsers)<br />
- create alt tags for each image !very important</p>
<p>10. Check your site into different browsers for compatibility issues.</p>
<p>11. Address on Page: Putting your business address at the footer (or  header) on every page of your site is a great way to help the engines to  identify your location.</p>
<p>12. WEBSITE VALIDATION: Go to the following site and check your site to see if it adheres to the latest standards.</p>
<p>- XHTML VALIDATION: http://validator.w3.org/<br />
- LINKS VALIDATION: http://validator.w3.org/checklink<br />
- CSS VALIDATION  : http://jigsaw.w3.org/css-validator/</p>
<p>13.Optionally you can check for broken links by using an application like <a href="http://home.snafu.de/tilman/XENU.ZIP">XENU</a></p>
<p>14. ADD your site to different search engines like Google, Yahoo. You can start from <a href="http://www.addme.com/" target="_blank">addme.com</a></p>
<p>15. You can use Google Analytic s is an online facility for obtaining  traffic analysis of your website and how is your site doing.</p>
<p>16. Add you URL into different sites (back links) get more traffic.</p>
<p>17.<a href="http://www.seomoz.org" target="_blank">SEOMOZ: </a> in this site you can find different seo tools to help you get started.</p>
<div class="tweetthis" style="text-align:left;"><p> <a target="_blank" rel="nofollow" class="tt" href="http://twitter.com/intent/tweet?text=SEO+%E2%80%93+The+basics+http%3A%2F%2Fdigitzone.net%2Fpress%2F%3Fp%3D9" title="Post to Twitter"><img class="nothumb" src="http://digitzone.net/press/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter.png" alt="Post to Twitter" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://twitter.com/intent/tweet?text=SEO+%E2%80%93+The+basics+http%3A%2F%2Fdigitzone.net%2Fpress%2F%3Fp%3D9" title="Post to Twitter">Tweet This Post</a></p></div>]]></content:encoded>
			<wfw:commentRss>http://digitzone.net/press/?feed=rss2&#038;p=9</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP: debugTool</title>
		<link>http://digitzone.net/press/?p=7</link>
		<comments>http://digitzone.net/press/?p=7#comments</comments>
		<pubDate>Tue, 09 Nov 2010 21:08:01 +0000</pubDate>
		<dc:creator>ac1982</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://digitzone.net/press/?p=7</guid>
		<description><![CDATA[DebugTool v1.0 is a new project that will help php developers to use it on the fly to check if their website is working right. Using this tool it will save them time from trying to figure out why something &#8230; <a href="http://digitzone.net/press/?p=7">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>DebugTool v1.0 is a new project that will help php developers to use it on the fly to check if their website is working right. Using this tool it will save them time from trying to figure out why something is not working, are my variables set, clean session and request variables on the fly without closing your browser every time.</p>
<p>Snapshot of debugTool:</p>
<p><img src="http://www.digitzone.net/classes/debugTool/screenshots/debugTool.png" alt="" /></p>
<p>Snapshot of debugTool with comments:</p>
<p><a href="http://www.digitzone.net/classes/debugTool/screenshots/screenshot.jpg" target="_blank"><br />
<img src="http://www.digitzone.net/classes/debugTool/screenshots/debugTool.-1png.jpg" alt="" width="300" /><br />
</a></p>
<ul>
<li>A Demo for this project can be found <a href="http://www.digitzone.net/classes/debugTool/" target="_blank"><strong>here</strong></a>.</li>
<li>Download project debugTool v1.0 <a href="http://www.digitzone.net/classes/debugTool/zip/debugTool.zip"><strong>here</strong></a>.</li>
</ul>
<div class="tweetthis" style="text-align:left;"><p> <a target="_blank" rel="nofollow" class="tt" href="http://twitter.com/intent/tweet?text=PHP%3A+debugTool+http%3A%2F%2Fdigitzone.net%2Fpress%2F%3Fp%3D7" title="Post to Twitter"><img class="nothumb" src="http://digitzone.net/press/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter.png" alt="Post to Twitter" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://twitter.com/intent/tweet?text=PHP%3A+debugTool+http%3A%2F%2Fdigitzone.net%2Fpress%2F%3Fp%3D7" title="Post to Twitter">Tweet This Post</a></p></div>]]></content:encoded>
			<wfw:commentRss>http://digitzone.net/press/?feed=rss2&#038;p=7</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

