<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.0.4" -->
<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>ash.MVC Blog</title>
	<link>http://ash-mvc.org/blog</link>
	<description>A Simple PHP Programming Framework</description>
	<pubDate>Tue, 22 May 2007 12:32:57 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.4</generator>
	<language>en</language>
			<item>
		<title>Detailed Step-wise Instructions to Setup PHP Development Environment on Windows XP PC</title>
		<link>http://ash-mvc.org/blog/php-in-general/detailed-step-wise-instructions-to-setup-php-development-environment-on-windows-xp-pc/</link>
		<comments>http://ash-mvc.org/blog/php-in-general/detailed-step-wise-instructions-to-setup-php-development-environment-on-windows-xp-pc/#comments</comments>
		<pubDate>Thu, 26 Apr 2007 05:48:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
	<dc:subject>PHP in General</dc:subject>
		<guid isPermaLink="false">http://ash-mvc.org/blog/php-in-general/detailed-step-wise-instructions-to-setup-php-development-environment-on-windows-xp-pc/</guid>
		<description><![CDATA[Software must be installed in the following order:

MySQL 4.1.22
PHP 5.2.2
Apache HTTP Server 2.2.2
phpMyAdmin 2.6.4

Download MySQL 4.1.22 from http://dev.mysql.com/downloads/mysql/4.1.html#win32
Installing MySQL
Step I: Click Next

Step II: Select Setup Type and click Next

Step III: Click Install

Step IV: Select account type

Step V: Click Finish to exit and select Configure the MySQL Server now to configure MySQL

Step VI: Click Next to [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Software must be installed in the following order:</strong></p>
<ol>
<li>MySQL 4.1.22</li>
<li>PHP 5.2.2</li>
<li>Apache HTTP Server 2.2.2</li>
<li>phpMyAdmin 2.6.4</li>
</ol>
<p>Download MySQL 4.1.22 from <a title="http://dev.mysql.com/downloads/mysql/4.1.html#win32" href="http://dev.mysql.com/downloads/mysql/4.1.html#win32">http://dev.mysql.com/downloads/mysql/4.1.html#win32</a></p>
<p><strong>Installing MySQL</strong></p>
<p>Step I: Click Next</p>
<p><img title="MySQL Installation" alt="MySQL Installation" src="http://ash-mvc.org/media/Image/mysql1.gif" /></p>
<p>Step II: Select Setup Type and click Next</p>
<p><img title="MySQL Installation" alt="MySQL Installation" src="http://ash-mvc.org/media/Image/mysql2.gif" /></p>
<p>Step III: Click Install</p>
<p><img title="MySQL Installation" alt="MySQL Installation" src="http://ash-mvc.org/media/Image/mysql3.gif" /></p>
<p>Step IV: Select account type</p>
<p><img title="MySQL Installation" alt="MySQL Installation" src="http://ash-mvc.org/media/Image/mysql5.gif" /></p>
<p>Step V: Click Finish to exit and select Configure the MySQL Server now to configure MySQL</p>
<p><img title="MySQL Installation" alt="MySQL Installation" src="http://ash-mvc.org/media/Image/mysql10.gif" /></p>
<p>Step VI: Click Next to continue</p>
<p><img title="MySQL Installation" alt="MySQL Installation" src="http://ash-mvc.org/media/Image/mysql11.gif" /></p>
<p>Step VII: Select configuration type and click Next to continue</p>
<p><img title="MySQL Installation" alt="MySQL Installation" src="http://ash-mvc.org/media/Image/mysql13.gif" /></p>
<p>Step VIII: Select server type and click Next to continue</p>
<p><img title="MySQL Installation" alt="MySQL Installation" src="http://ash-mvc.org/media/Image/mysql14.gif" /></p>
<p>Step IX: Select database usage</p>
<p><img title="MySQL Installation" alt="MySQL Installation" src="http://ash-mvc.org/media/Image/mysql15.gif" /></p>
<p>Step X: Choose the drive and directory for the InnoDB datafile and click Next to continue</p>
<p><img title="MySQL Installation" alt="MySQL Installation" src="http://ash-mvc.org/media/Image/mysql16.gif" /></p>
<p>Step XI: Set the approximate number of concurrent connections to the server and click Next to continue</p>
<p><img title="MySQL Installation" alt="MySQL Installation" src="http://ash-mvc.org/media/Image/mysql17.gif" /></p>
<p>Step XII: Set the networking options and click Next</p>
<p><img title="MySQL Installation" alt="MySQL Installation" src="http://ash-mvc.org/media/Image/mysql18.gif" /></p>
<p>Step XIII: Select the default charset and click Next</p>
<p><img title="MySQL Installation" alt="MySQL Installation" src="http://ash-mvc.org/media/Image/mysql19.gif" /></p>
<p>Step XIV: Set the Windows options and click Next</p>
<p><img title="MySQL Installation" alt="MySQL Installation" src="http://ash-mvc.org/media/Image/mysql20.gif" /></p>
<p>Step XV: Enter the root password and click Next</p>
<p><img title="MySQL Installation" alt="MySQL Installation" src="http://ash-mvc.org/media/Image/mysql21.gif" /></p>
<p>Step XVI: Click Finish to close the Wizard</p>
<p><img title="MySQL Installation" alt="MySQL Installation" src="http://ash-mvc.org/media/Image/mysql23.gif" /></p>
<p>Download PHP 5.2.2 from <a title="http://www.php.net/downloads.php" href="http://www.php.net/downloads.php">http://www.php.net/downloads.php</a></p>
<p><strong>Installing PHP</strong></p>
<ol type="i">
<li>Create a directory php on your computer under “C:\”</li>
<li>Unzip the downloaded contents and put it all in “C:\php”</li>
</ol>
<p><strong>Configuring PHP</strong></p>
<ol type="i">
<li>After the contents have been unzipped,</li>
<ol type="a">
<li>Copy php5apache2.dll, php5ts.dll and libmysql.dll (available under “C:\php”) into your “C:\WINDOWS\system”</li>
<li>Copy php5ts.dll (available under “C:\php”) into your “C:\WINDOWS”</li>
</ol>
<li>Rename php.ini-recommended (available under “C:\php”) to php.ini and open it using an ASCII text editor such as Notepad</li>
<ol type="a">
<li>In line no. 513, change doc_root = to doc_root = “your directory”, the directory out of which you will serve your PHP pages.</li>
<li>In line no. 520, change extension_dir = to extension_dir = &#8220;C:\php\ext&#8221;, the directory in which the loadable extensions (modules) reside.</li>
<li>In line no. 651, uncomment extension=php_mysql.dll</li>
</ol>
</ol>
<p>Download Apache HTTP Server 2.2.2 from <a title="http://archive.apache.org/dist/httpd/binaries/win32/apache_2.2.2-win32-x86-no_ssl.msi" href="http://archive.apache.org/dist/httpd/binaries/win32/apache_2.2.2-win32-x86-no_ssl.msi">http://archive.apache.org/dist/httpd/binaries/win32/apache_2.2.2-win32-x86-no_ssl.msi</a></p>
<p><strong>Installing Apache</strong></p>
<p>Step I: Click Next</p>
<p><img title="Apache Installation" alt="Apache Installation" src="http://ash-mvc.org/media/Image/apache1.gif" /></p>
<p>Step II: Select &#8220;I accept the terms in the license agreement&#8221; and click Next</p>
<p><img title="Apache Installation" alt="Apache Installation" src="http://ash-mvc.org/media/Image/apache2.gif" /></p>
<p>Step III: Enter server information and click Next</p>
<p><img title="Apache Installation" alt="Apache Installation" src="http://ash-mvc.org/media/Image/apache4.gif" /></p>
<p>Step IV: Select setup type and click Next</p>
<p><img title="Apache Installation" alt="Apache Installation" src="http://ash-mvc.org/media/Image/apache5.gif" /></p>
<p>Step V: Select folder to install and click Next</p>
<p><img title="Apache Installation" alt="Apache Installation" src="http://ash-mvc.org/media/Image/apache6.gif" /></p>
<p>Step VI: Click Install to begin installation</p>
<p><img title="Apache Installation" alt="Apache Installation" src="http://ash-mvc.org/media/Image/apache7.gif" /></p>
<p>Step VII: Click Finish to exit the wizard</p>
<p><img title="Apache Installation" alt="Apache Installation" src="http://ash-mvc.org/media/Image/apache8.gif" /></p>
<p><strong>Configuring Apache</strong></p>
<ol type="i">
<li>Under “C:\Program Files\Apache Software Foundation\Apache2.2\conf” open httpd file (text document) using an ASCII text editor such as Notepad</li>
<ol type="a">
<li>In line no. 149, change DocumentRoot “” to DocumentRoot “your directory”, the directory out of which you will serve your documents.</li>
<li>In line no. 177, change Directory “” to Directory “directory already set in DocumentRoot”</li>
<li>Add the following code at the end of the file</li>
<p>LoadFile “C:/php/php5ts.dll”<br />
LoadModule php5_module “C:/php/php5apache2_2.dll”<br />
PHPIniDir &#8220;C:/php&#8221;<br />
AddType text/html .php .phps<br />
AddHandler application/x-httpd-php .php<br />
AddHandler application/x-httpd-php-source .phps</p>
<li>In line no. 212, add DirectoryIndex index.html index.php to make sure that index.php or index.html will be picked up automatically by the server at start-up.</li>
</ol>
</ol>
<p>Download phpMyAdmin 2.6.4 from <a title="http://www.oldapps.com/download.php?oldappsid=phpMyAdmin-2.6.4-pl4.zip" href="http://www.oldapps.com/download.php?oldappsid=phpMyAdmin-2.6.4-pl4.zip">http://www.oldapps.com/download.php?oldappsid=phpMyAdmin-2.6.4-pl4.zip</a> </p>
<p><strong>Installing phpMyAdmin</strong></p>
<ol type="i">
<li>Create a directory phpMyAdmin in your root directory</li>
<li>Unzip the downloaded contents put it all in phpMyAdmin directory</li>
</ol>
<p><strong>Configuring phpMyAdmin</strong></p>
<ol type="i">
<li>Under phpMyAdmin folder open config.inc.php file using an ASCII text editor such as Notepad.</li>
<ol type="a">
<li>In line no. 36, change $cfg[’PmaAbsoluteUri’] = ‘’; to $cfg[&#8217;PmaAbsoluteUri&#8217;] = &#8216;http://localhost/phpMyAdmin/&#8217;;</li>
<li>In line no. 75, change $cfg[’Servers’][$i][’password’]= ‘’; to $cfg[’Servers’][$i][’password’]= ‘Your Database Password’; i.e., MySQL password</li>
</ol>
</ol>
<p>Add “C:\Program Files\MySQL\MySQL Server 4.1\bin;C:\php” to the Variable value</p>
<p>Steps to go to Variable value</p>
<ol type="i">
<li>Right click My Computer icon</li>
<li>Click Properties from the list shown</li>
<li>Click Advanced tab</li>
<li>Click Environment Variables</li>
<li>Click Path and then Edit under the list of System variables shown</li>
<li>Then add “C:\Program Files\MySQL\MySQL Server 4.1\bin;C:\php” in Variable value and click Ok</li>
</ol>
<p>Before testing restart your computer. Create a PHP file with phpinfo(); as a function. Save the file as “phpinfo.php” into your root directory. Restart your Apache server so that it can read the new configuration directives you placed into httpd file (text document). Open your browser and type &#8220;http://localhost/phpinfo.php&#8221;. You should see information about your PHP setup.</p>
<p>Applications helpful to install are</p>
<ol>
<li>FF 2.0 .Download from <a title="http://www.firefox2.com/en/" href="http://www.firefox2.com/en/">http://www.firefox2.com/en/</a></li>
<li>OpenOffice 2.2 .Download from <a title="http://download.openoffice.org/index.html" href="http://download.openoffice.org/index.html">http://download.openoffice.org/index.html</a></li>
<li>FileZilla .Download from <a title="http://sourceforge.net/projects/filezilla/" href="http://sourceforge.net/projects/filezilla/">http://sourceforge.net/projects/filezilla/</a></li>
<li>Putty SSH 0.59 .Download from <a title="http://www.softpedia.com/progDownload/PuTTY-Download-1001.html" href="http://www.softpedia.com/progDownload/PuTTY-Download-1001.html">http://www.softpedia.com/progDownload/PuTTY-Download-1001.html</a></li>
<li>Crimson Editor 3.70 .Download from <a title="http://www.crimsoneditor.com/english/download.html" href="http://www.crimsoneditor.com/english/download.html">http://www.crimsoneditor.com/english/download.html</a></li>
<ol /></ol>
No Tags]]></content:encoded>
			<wfw:commentRSS>http://ash-mvc.org/blog/php-in-general/detailed-step-wise-instructions-to-setup-php-development-environment-on-windows-xp-pc/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>Printing a webpage</title>
		<link>http://ash-mvc.org/blog/php-framework/printing-a-webpage/</link>
		<comments>http://ash-mvc.org/blog/php-framework/printing-a-webpage/#comments</comments>
		<pubDate>Wed, 06 Dec 2006 14:51:03 +0000</pubDate>
		<dc:creator>Manish</dc:creator>
		
	<dc:subject>PHP Framework</dc:subject><dc:subject>JavaScript</dc:subject><dc:subject>print function</dc:subject>
		<guid isPermaLink="false">http://ash-mvc.org/blog/web-applications-with-ash-mvc/printing-a-webpage/</guid>
		<description><![CDATA[Webpage can be printed using window.print(). Here is the code:
&#60;a onclick=&#34;window.print(); return false&#34; href=&#34;http://ash-mvc.org/blog/webpage.html&#34;&#62;Print This Page&#60;/a&#62;
&#8220;return false&#8221; cancels the link to &#8220;webpage.html&#8221;.
When the hyperlink &#8220;Print This Page&#8221; is clicked, the page is printed if the printer is already installed.

JavaScript  print functionJavaScript, print function]]></description>
			<content:encoded><![CDATA[<p>Webpage can be printed using window.print(). Here is the code:</p>
<p>&lt;a onclick=&quot;window.print(); return false&quot; href=&quot;http://ash-mvc.org/blog/webpage.html&quot;&gt;Print This Page&lt;/a&gt;</p>
<p>&#8220;return false&#8221; cancels the link to &#8220;webpage.html&#8221;.</p>
<p>When the hyperlink &#8220;Print This Page&#8221; is clicked, the page is printed if the printer is already installed.
</p>
<a href="http://ash-mvc.org/blog/index.php?tag=javascript" rel="tag">JavaScript</a>  <a href="http://ash-mvc.org/blog/index.php?tag=print-function" rel="tag">print function</a><a href="http://ash-mvc.org/blog/index.php?tag=javascript" rel="tag">JavaScript</a>, <a href="http://ash-mvc.org/blog/index.php?tag=print-function" rel="tag">print function</a>]]></content:encoded>
			<wfw:commentRSS>http://ash-mvc.org/blog/php-framework/printing-a-webpage/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>Assign PHP array content to a JavaScript array</title>
		<link>http://ash-mvc.org/blog/web-scripting/assign-php-array-content-to-a-javascript-array/</link>
		<comments>http://ash-mvc.org/blog/web-scripting/assign-php-array-content-to-a-javascript-array/#comments</comments>
		<pubDate>Wed, 06 Dec 2006 14:50:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
	<dc:subject>Web Scripting</dc:subject><dc:subject>Array</dc:subject><dc:subject>JavaScript</dc:subject><dc:subject>php</dc:subject>
		<guid isPermaLink="false">http://ash-mvc.org/blog/html-css-javascripts/assign-php-array-content-to-a-javascript-array/</guid>
		<description><![CDATA[Sometimes we need to transfer the server side data to client side. Means we may need to transfer PHP variable or array values to Javascript variable or values. The following script will solve this problem very well.

$aDatas = array();
$aTitles = array();
$iMaxCount = 10;
for($iCount=0; $iCount< $iMaxCount; $iCount++)
{
 $aDatas[$iCount] = $iCount +10;
 $aTitles[$iCount] = 'Title'. $iCount;
}
?>
Make sure that you have [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes we need to transfer the server side data to client side. Means we may need to transfer PHP variable or array values to Javascript variable or values. The following script will solve this problem very well.</p>
<p><!--p<--></p>
<p>$aDatas = array();<br />
$aTitles = array();<br />
$iMaxCount = 10;<br />
for($iCount=0; $iCount< $iMaxCount; $iCount++)<br />
{<br />
 $aDatas[$iCount] = $iCount +10;<br />
 $aTitles[$iCount] = 'Title'. $iCount;<br />
}</p>
<p>?></p>
<p>Make sure that you have given single quote before and after PHP tag, while assigning STRING values from PHP variables to JS.
</p>
<a href="http://ash-mvc.org/blog/index.php?tag=array" rel="tag">Array</a>  <a href="http://ash-mvc.org/blog/index.php?tag=javascript" rel="tag">JavaScript</a>  <a href="http://ash-mvc.org/blog/index.php?tag=php" rel="tag">php</a><a href="http://ash-mvc.org/blog/index.php?tag=array" rel="tag">Array</a>, <a href="http://ash-mvc.org/blog/index.php?tag=javascript" rel="tag">JavaScript</a>, <a href="http://ash-mvc.org/blog/index.php?tag=php" rel="tag">php</a>]]></content:encoded>
			<wfw:commentRSS>http://ash-mvc.org/blog/web-scripting/assign-php-array-content-to-a-javascript-array/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>Why a web page needs to be XHTML &#038; CSS validated?</title>
		<link>http://ash-mvc.org/blog/web-scripting/why-a-web-page-needs-to-be-xhtml-css-validated/</link>
		<comments>http://ash-mvc.org/blog/web-scripting/why-a-web-page-needs-to-be-xhtml-css-validated/#comments</comments>
		<pubDate>Sat, 11 Nov 2006 13:29:49 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
	<dc:subject>Web Scripting</dc:subject><dc:subject>CSS</dc:subject><dc:subject>html</dc:subject><dc:subject>JavaScript</dc:subject><dc:subject>W3C Compliance</dc:subject><dc:subject>XHTML</dc:subject>
		<guid isPermaLink="false">http://ash-mvc.org/blog/web-applications-with-ash-mvc/why-a-web-page-needs-to-be-xhtml-css-validated/</guid>
		<description><![CDATA[While developing a web page, we normally go for XHTML (preferably, Strict 1.0)  &#038; CSS2 validation. This is due to the following reasons:

All browsers are competing to comply to the W3 standards. Suppose, for example, an updated version of a browser is released. Our web page may not look as expected if the page does not comply to [...]]]></description>
			<content:encoded><![CDATA[<p>While developing a web page, we normally go for XHTML (preferably, Strict 1.0)  &#038; CSS2 validation. This is due to the following reasons:</p>
<ul>
<li>All browsers are competing to comply to the W3 standards. Suppose, for example, an updated version of a browser is released. Our web page may not look as expected if the page does not comply to w3 standards. If we have validated it then it will look fine in the new versions of browsers without making any further changes to the source code.</li>
<li>There are lot of browsers in web world. While developing a web page we don&#8217;t get chance or time to test our pages in all browsers. But if we have made our page XHTML &#038; CSS validated then we can well be assured that the web page will retain most of its original look &#038; feel in all browsers.</li>
<li>Search bots find complied (or validated) pages easy to index.</li>
</ul>
<p>We can check our web page against XHTML validation at:</p>
<ol>
<li>XHTML: <a href="http://validator.w3.org/">http://validator.w3.org/</a></li>
<li>CSS: <a href="http://jigsaw.w3.org/css-validator/">http://jigsaw.w3.org/css-validator/</a></li>
</ol>
<p> 
</p>
<a href="http://ash-mvc.org/blog/index.php?tag=css" rel="tag">CSS</a>  <a href="http://ash-mvc.org/blog/index.php?tag=html" rel="tag">html</a>  <a href="http://ash-mvc.org/blog/index.php?tag=javascript" rel="tag">JavaScript</a>  <a href="http://ash-mvc.org/blog/index.php?tag=w3c-compliance" rel="tag">W3C Compliance</a>  <a href="http://ash-mvc.org/blog/index.php?tag=xhtml" rel="tag">XHTML</a><a href="http://ash-mvc.org/blog/index.php?tag=css" rel="tag">CSS</a>, <a href="http://ash-mvc.org/blog/index.php?tag=html" rel="tag">html</a>, <a href="http://ash-mvc.org/blog/index.php?tag=javascript" rel="tag">JavaScript</a>, <a href="http://ash-mvc.org/blog/index.php?tag=w3c-compliance" rel="tag">W3C Compliance</a>, <a href="http://ash-mvc.org/blog/index.php?tag=xhtml" rel="tag">XHTML</a>]]></content:encoded>
			<wfw:commentRSS>http://ash-mvc.org/blog/web-scripting/why-a-web-page-needs-to-be-xhtml-css-validated/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>Underline on mouse rollover</title>
		<link>http://ash-mvc.org/blog/web-scripting/underline-on-mouse-rollover/</link>
		<comments>http://ash-mvc.org/blog/web-scripting/underline-on-mouse-rollover/#comments</comments>
		<pubDate>Thu, 09 Nov 2006 05:13:36 +0000</pubDate>
		<dc:creator>Manish</dc:creator>
		
	<dc:subject>Web Scripting</dc:subject><dc:subject>JavaScript</dc:subject><dc:subject>mouse roll over</dc:subject>
		<guid isPermaLink="false">http://ash-mvc.org/blog/html-css-javascripts/underline-on-mouse-rollover/</guid>
		<description><![CDATA[Underline on mouse rollover
There are two ways of achieving this functionality
1. Javascript
2. CSS
Javascript:
By using &#8220;onmouseover&#8221; and &#8220;onmouseout&#8221; events which calls two user defined functions &#8220;blockStyle(&#8217;param&#8217;)&#8221; and &#8220;displayStyle(&#8217;param&#8217;)&#8221;,where param is a unique id for that hyperlink when the event occurs.
Eg. &#60;a onmouseout=&#8221;blockStyle(&#8217;link&#8217;)&#8221; onmouseover=&#8221;displayStyle(&#8217;link&#8217;)&#8221; href=&#8221; &#8221; mce_href=&#8221; &#8221; &#62;click here&#60;/a&#62;
CSS:
By using hover.
Write this source code in the css file.
 a:hover
 {
      text-decoration:underline;
  color: [...]]]></description>
			<content:encoded><![CDATA[<p>Underline on mouse rollover</p>
<p>There are two ways of achieving this functionality</p>
<p>1. Javascript<br />
2. CSS</p>
<p><strong>Javascript:<br />
</strong>By using &#8220;onmouseover&#8221; and &#8220;onmouseout&#8221; events which calls two user defined functions &#8220;blockStyle(&#8217;param&#8217;)&#8221; and &#8220;displayStyle(&#8217;param&#8217;)&#8221;,where param is a unique id for that hyperlink when the event occurs.<br />
Eg. &lt;a onmouseout=&#8221;blockStyle(&#8217;link&#8217;)&#8221; onmouseover=&#8221;displayStyle(&#8217;link&#8217;)&#8221; href=&#8221; &#8221; mce_href=&#8221; &#8221; &gt;click here&lt;/a&gt;</p>
<p><strong>CSS:</strong><br />
By using hover.<br />
Write this source code in the css file.<br />
 a:hover<br />
 {<br />
      text-decoration:underline;<br />
  color: blue;<br />
 }<br />
This above code will affect all the hyperlinks(anchor tag) in the same webpage.
</p>
<a href="http://ash-mvc.org/blog/index.php?tag=javascript" rel="tag">JavaScript</a>  <a href="http://ash-mvc.org/blog/index.php?tag=mouse-roll-over" rel="tag">mouse roll over</a><a href="http://ash-mvc.org/blog/index.php?tag=javascript" rel="tag">JavaScript</a>, <a href="http://ash-mvc.org/blog/index.php?tag=mouse-roll-over" rel="tag">mouse roll over</a>]]></content:encoded>
			<wfw:commentRSS>http://ash-mvc.org/blog/web-scripting/underline-on-mouse-rollover/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>Trim function applied to Javascript</title>
		<link>http://ash-mvc.org/blog/web-scripting/trim-function-applied-to-java-script/</link>
		<comments>http://ash-mvc.org/blog/web-scripting/trim-function-applied-to-java-script/#comments</comments>
		<pubDate>Tue, 07 Nov 2006 05:50:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
	<dc:subject>Web Scripting</dc:subject><dc:subject>JavaScript</dc:subject><dc:subject>Trim function</dc:subject>
		<guid isPermaLink="false">http://ash-mvc.org/blog/web-applications-with-ash-mvc/trim-function-applied-to-java-script/</guid>
		<description><![CDATA[The following code will help to apply &#8220;Trim&#8221; function in javascript. Here is an example where we are retriving data from a prompt message box then applying &#8220;Ltrim&#8221; &#038; &#8220;RTrim&#8221; like functions. 
var sData = prompt(&#8221;Enter The Name&#8221;,&#8221;");           // Receives data from user
 var sLeft = /\s*((\S+\s*)*)/;
 var sRight = /((\s*\S+)*)\s*/;
 sData = sData.replace(sLeft, &#8220;$1&#8243;);              // Removes blank spaces [...]]]></description>
			<content:encoded><![CDATA[<p>The following code will help to apply &#8220;Trim&#8221; function in javascript. Here is an example where we are retriving data from a prompt message box then applying &#8220;Ltrim&#8221; &#038; &#8220;RTrim&#8221; like functions. </p>
<p>var sData = prompt(&#8221;Enter The Name&#8221;,&#8221;");           // Receives data from user<br />
 var sLeft = /\s*((\S+\s*)*)/;<br />
 var sRight = /((\s*\S+)*)\s*/;<br />
 sData = sData.replace(sLeft, &#8220;$1&#8243;);              // Removes blank spaces from left<br />
 sData = sData.replace(sRight, &#8220;$1&#8243;);           //  Removes blank spaces from right
</p>
<a href="http://ash-mvc.org/blog/index.php?tag=javascript" rel="tag">JavaScript</a>  <a href="http://ash-mvc.org/blog/index.php?tag=trim-function" rel="tag">Trim function</a><a href="http://ash-mvc.org/blog/index.php?tag=javascript" rel="tag">JavaScript</a>, <a href="http://ash-mvc.org/blog/index.php?tag=trim-function" rel="tag">Trim function</a>]]></content:encoded>
			<wfw:commentRSS>http://ash-mvc.org/blog/web-scripting/trim-function-applied-to-java-script/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>Time calculation of various Timezones</title>
		<link>http://ash-mvc.org/blog/web-scripting/time-calculation-of-various-timezones/</link>
		<comments>http://ash-mvc.org/blog/web-scripting/time-calculation-of-various-timezones/#comments</comments>
		<pubDate>Tue, 07 Nov 2006 05:48:04 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
	<dc:subject>Web Scripting</dc:subject><dc:subject>JavaScript</dc:subject><dc:subject>time</dc:subject><dc:subject>timezone</dc:subject>
		<guid isPermaLink="false">http://ash-mvc.org/blog/web-applications-with-ash-mvc/time-calculation-of-various-timezones/</guid>
		<description><![CDATA[function calcTime(sCity, offset)
{
    // create Date object for current location
    d = new Date();
   
    // convert to msec
    // add local time zone offset
    // get UTC time in msec
    utc = d.getTime() + (d.getTimezoneOffset() * 60000);
   
    // create new Date object for different city
    // using supplied offset
    nd = new Date(utc + (3600000*offset));
   
    [...]]]></description>
			<content:encoded><![CDATA[<p>function calcTime(sCity, offset)<br />
{</p>
<p>    // create Date object for current location<br />
    d = new Date();<br />
   <br />
    // convert to msec<br />
    // add local time zone offset<br />
    // get UTC time in msec<br />
    utc = d.getTime() + (d.getTimezoneOffset() * 60000);<br />
   <br />
    // create new Date object for different city<br />
    // using supplied offset<br />
    nd = new Date(utc + (3600000*offset));<br />
   <br />
    // return time as a string<br />
    sDateTime = nd.toLocaleString();   // It is total datetime format<br />
    <br />
    document.write(sCity+&#8221; : &#8220;+sDateTime);    <br />
   <br />
}</p>
<p>// Set the time for countries<br />
calcTime(&#8217;London&#8217;, &#8216;+0.0&#8242;);              // &#8216;+0.00&#8242; is the standard timezone of London<br />
calcTime(&#8217;Sydney&#8217;, &#8216;+10.0&#8242;);<br />
calcTime(&#8217;New York&#8217;, &#8216;-5.0&#8242;);
</p>
<a href="http://ash-mvc.org/blog/index.php?tag=javascript" rel="tag">JavaScript</a>  <a href="http://ash-mvc.org/blog/index.php?tag=time" rel="tag">time</a>  <a href="http://ash-mvc.org/blog/index.php?tag=timezone" rel="tag">timezone</a><a href="http://ash-mvc.org/blog/index.php?tag=javascript" rel="tag">JavaScript</a>, <a href="http://ash-mvc.org/blog/index.php?tag=time" rel="tag">time</a>, <a href="http://ash-mvc.org/blog/index.php?tag=timezone" rel="tag">timezone</a>]]></content:encoded>
			<wfw:commentRSS>http://ash-mvc.org/blog/web-scripting/time-calculation-of-various-timezones/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>Refresh the parent browser when the popup is closed</title>
		<link>http://ash-mvc.org/blog/web-scripting/refresh-the-parent-browser-when-the-popup-is-closed/</link>
		<comments>http://ash-mvc.org/blog/web-scripting/refresh-the-parent-browser-when-the-popup-is-closed/#comments</comments>
		<pubDate>Tue, 07 Nov 2006 05:44:19 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
	<dc:subject>Web Scripting</dc:subject><dc:subject>browser</dc:subject><dc:subject>JavaScript</dc:subject>
		<guid isPermaLink="false">http://ash-mvc.org/blog/web-applications-with-ash-mvc/refresh-the-parent-browser-when-the-popup-is-closed/</guid>
		<description><![CDATA[When you click on a hyperlink on the popup window the popup closed &#038; the parent window needs to be refreshed.
 To satisfy this need you have to write the following code in the hyperlink (&#8221;close window&#8221;) of popup window.
javascript:self.close();         // closes the current window (Popup).
opener.location.reload();     // Reloads the content of the parent window.

browser  JavaScriptbrowser, [...]]]></description>
			<content:encoded><![CDATA[<p>When you click on a hyperlink on the popup window the popup closed &#038; the parent window needs to be refreshed.</p>
<p> To satisfy this need you have to write the following code in the hyperlink (&#8221;close window&#8221;) of popup window.</p>
<p>javascript:self.close();         // closes the current window (Popup).</p>
<p>opener.location.reload();     // Reloads the content of the parent window.
</p>
<a href="http://ash-mvc.org/blog/index.php?tag=browser" rel="tag">browser</a>  <a href="http://ash-mvc.org/blog/index.php?tag=javascript" rel="tag">JavaScript</a><a href="http://ash-mvc.org/blog/index.php?tag=browser" rel="tag">browser</a>, <a href="http://ash-mvc.org/blog/index.php?tag=javascript" rel="tag">JavaScript</a>]]></content:encoded>
			<wfw:commentRSS>http://ash-mvc.org/blog/web-scripting/refresh-the-parent-browser-when-the-popup-is-closed/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>Security in PHP Applications</title>
		<link>http://ash-mvc.org/blog/php-in-general/security-in-php-applications/</link>
		<comments>http://ash-mvc.org/blog/php-in-general/security-in-php-applications/#comments</comments>
		<pubDate>Sun, 05 Nov 2006 22:52:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
	<dc:subject>PHP in General</dc:subject><dc:subject>php</dc:subject><dc:subject>security</dc:subject><dc:subject>web application</dc:subject>
		<guid isPermaLink="false">http://ash-mvc.org/blog/ash-mvc-framework/security-in-php-applications/</guid>
		<description><![CDATA[Some of the important links are:

http://phpsec.org/ &#8211; PHP Security Consortium
PHP Security Mistakes
PHP Security
Top 7 security Blunder while using PHP

First one is the most important one.

php  security  web applicationphp, security, web application]]></description>
			<content:encoded><![CDATA[<p>Some of the important links are:</p>
<ol>
<li><a href="http://phpsec.org/">http://phpsec.org/</a> &#8211; PHP Security Consortium</li>
<li><a title="PHP Security Mistakes" href="http://www.devshed.com/c/a/PHP/PHP-Security-Mistakes/" target="_blank">PHP Security Mistakes</a></li>
<li><a title="PHP Security" href="http://www.onlamp.com/pub/a/php/2003/07/31/php_foundations.html" target="_blank">PHP Security</a></li>
<li><a title="Top 7 Security Blunder while using PHP" href="http://www.sitepoint.com/article/php-security-blunders" target="_blank">Top 7 security Blunder while using PHP</a></li>
</ol>
<p>First one is the most important one.
</p>
<a href="http://ash-mvc.org/blog/index.php?tag=php" rel="tag">php</a>  <a href="http://ash-mvc.org/blog/index.php?tag=security" rel="tag">security</a>  <a href="http://ash-mvc.org/blog/index.php?tag=web-application" rel="tag">web application</a><a href="http://ash-mvc.org/blog/index.php?tag=php" rel="tag">php</a>, <a href="http://ash-mvc.org/blog/index.php?tag=security" rel="tag">security</a>, <a href="http://ash-mvc.org/blog/index.php?tag=web-application" rel="tag">web application</a>]]></content:encoded>
			<wfw:commentRSS>http://ash-mvc.org/blog/php-in-general/security-in-php-applications/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>Programming Mistakes And Avoid Them</title>
		<link>http://ash-mvc.org/blog/php-in-general/programming-mistakes-and-avoid-them/</link>
		<comments>http://ash-mvc.org/blog/php-in-general/programming-mistakes-and-avoid-them/#comments</comments>
		<pubDate>Sun, 05 Nov 2006 22:48:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
	<dc:subject>PHP in General</dc:subject><dc:subject>php</dc:subject><dc:subject>security</dc:subject><dc:subject>web application</dc:subject>
		<guid isPermaLink="false">http://ash-mvc.org/blog/php-application-security/programming-mistakes-and-avoid-them/</guid>
		<description><![CDATA[Three important articles:

http://www.zend.com/zend/art/mistake.php
http://www.zend.com/zend/art/mistake1.php
http://www.zend.com/zend/art/mistake2.php

 

php  security  web applicationphp, security, web application]]></description>
			<content:encoded><![CDATA[<p>Three important articles:</p>
<ol>
<li><a href="http://www.zend.com/zend/art/mistake.php">http://www.zend.com/zend/art/mistake.php</a></li>
<li><a href="http://www.zend.com/zend/art/mistake1.php">http://www.zend.com/zend/art/mistake1.php</a></li>
<li><a href="http://www.zend.com/zend/art/mistake2.php">http://www.zend.com/zend/art/mistake2.php</a></li>
</ol>
<p> 
</p>
<a href="http://ash-mvc.org/blog/index.php?tag=php" rel="tag">php</a>  <a href="http://ash-mvc.org/blog/index.php?tag=security" rel="tag">security</a>  <a href="http://ash-mvc.org/blog/index.php?tag=web-application" rel="tag">web application</a><a href="http://ash-mvc.org/blog/index.php?tag=php" rel="tag">php</a>, <a href="http://ash-mvc.org/blog/index.php?tag=security" rel="tag">security</a>, <a href="http://ash-mvc.org/blog/index.php?tag=web-application" rel="tag">web application</a>]]></content:encoded>
			<wfw:commentRSS>http://ash-mvc.org/blog/php-in-general/programming-mistakes-and-avoid-them/feed/</wfw:commentRSS>
		</item>
	</channel>
</rss>
