<?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>EZ IT Fixes!! &#187; Programming</title>
	<atom:link href="http://www.ezitfixes.com/answers/category/programming/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ezitfixes.com/answers</link>
	<description>Easy solutions to IT related issues</description>
	<lastBuildDate>Thu, 07 Jan 2010 00:03:30 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Display HTML code on a website</title>
		<link>http://www.ezitfixes.com/answers/display-html-code-on-a-website/</link>
		<comments>http://www.ezitfixes.com/answers/display-html-code-on-a-website/#comments</comments>
		<pubDate>Mon, 09 Jun 2008 23:37:49 +0000</pubDate>
		<dc:creator>Daman Dang</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://itfixes.wordpress.com/?p=22</guid>
		<description><![CDATA[HTML is used to design a website but what if you want to display a sample HTML code in a website?? The browser will consider your sample code just as the rest of the HTML code and parse it in a similar way, removing all the tags before it displays the content on the website.
To [...]]]></description>
			<content:encoded><![CDATA[<p>HTML is used to design a website but what if you want to display a sample HTML code in a website?? The browser will consider your sample code just as the rest of the HTML code and parse it in a similar way, removing all the tags before it displays the content on the website.</p>
<p>To display some HTML code, you need to use escape characters for all the special characters defined in HTML. The following link has a HTML Encoder/Decoder which can generate the code that should be inserted to achieve the desired HTML code form as output.</p>
<p><a href="http://www.opinionatedgeek.com/DotNet/Tools/HTMLEncode/Encode.aspx" target="_blank">HTML Encoder</a></p>
<p>Just input the code you desire to display and copy paste the encoded code in your HTML file.</p>
<p>Enjoy !!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ezitfixes.com/answers/display-html-code-on-a-website/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Configuring PHP and MySql on IIS (For Windows XP)</title>
		<link>http://www.ezitfixes.com/answers/configuring-php-and-mysql-on-iis-for-windows-xp/</link>
		<comments>http://www.ezitfixes.com/answers/configuring-php-and-mysql-on-iis-for-windows-xp/#comments</comments>
		<pubDate>Mon, 09 Jun 2008 02:15:32 +0000</pubDate>
		<dc:creator>Daman Dang</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://itfixes.wordpress.com/?p=14</guid>
		<description><![CDATA[I was once asked to develop a web based database project which I had to do either using PHP or Java and I was not familiar with either of them. I searched on Google and felt that PHP is easy to learn and use. So I started learning PHP using the tutorials available online and [...]]]></description>
			<content:encoded><![CDATA[<p>I was once asked to develop a web based database project which I had to do either using PHP or Java and I was not familiar with either of them. I searched on Google and felt that PHP is easy to learn and use. So I started learning PHP using the tutorials available online and building my project on the same time. Today I feel PHP has everything that one may need for any kind of web application which may require a back end database.</p>
<p>Installing PHP can be a mess so here are the instructions are for the following versions: PHP 5.2.3, MySql 5.0 and IIS 6.0</p>
<p>Steps may change a little with other versions.</p>
<p><strong><br />
Installing PHP</strong></p>
<p><strong>Step 1:</strong> Create a folder on C: called &#8220;PHP&#8221; and unzip the files from the PHP download into that folder.</p>
<p><strong>Step 2: </strong>Open IIS6 Manager Right Click -&gt; Default Website -&gt; Properties -&gt; Select Home Directory -&gt; Select Configuration. On Application configuration check to see if .php is in list. If not click &#8220;Add&#8221;. For executable browse to &#8220;c:\php&#8221; folder and select &#8220;php5isapi.dll&#8221;. Click &#8220;OK&#8221; and then &#8220;OK&#8221; again.</p>
<p><strong>Step 3:</strong> In the &#8220;C:\PHP&#8221; folder copy the file &#8220;php.ini-recommended&#8221; to your C:\WINDOWS folder. Rename this file to &#8220;php.ini&#8221;</p>
<p><strong>Step 4:</strong> Create a test file in the root of your web folder called &#8220;phpinfo.php&#8221; and insert the code below:</p>
<p>&lt;php<br />
phpinfo();<br />
?&gt;</p>
<p><strong>Step 5:</strong> Click Start &#8211;&gt; Run and type IISRESET and press enter.</p>
<p><strong>Step 6:</strong> Open Internet Explorer and type &#8220;http://127.0.0.1/phpinfo.php&#8221; and you should see it give you information about the PHP version.</p>
<p>If you see a page with all sorts of information about your PHP version that means your installation was successful.</p>
<p><strong>Configuring MySQL Server<br />
</strong></p>
<p>While running the setup you will need to configur an Instance. You can choose the following options while following the wizard.</p>
<p>MySQL Server Instance Configuration Wizard &#8211;&gt; Detailed Configuration &#8211;&gt; Developer Machine &#8211;&gt; Non-Transactional Database Only &#8211;&gt; Decision Support (DSS)/OLAP &#8211;&gt; Check Enable TCPIP Netwokring &#8211;&gt; Port 3306 &#8211;&gt; Standard Character Set &#8211;&gt; Install as a Windows Service &#8211;&gt; Give it a password &#8211;&gt; Execute!!<br />
<strong><br />
Configuring PHP for MySQL</strong></p>
<p><strong>Step 1:</strong> In the C:\PHP folder copy the file &#8220;libmysql.dll&#8221; to your C:\WINDOWS\SYSTEM32 folder. Make sure you don&#8217;t overwrite any existing file in this folder. If file exists, first rename it so you can go back.</p>
<p><strong>Step 2:</strong> In the C:\PHP folder copy the file &#8220;php.ini-recommended&#8221; to your C:\WINDOWS folder. Rename this file to &#8220;php.ini&#8221; (You already did this.)</p>
<p><strong>Step 3:</strong> Edit this file &#8220;php.ini&#8221; using a text editor like notepad. Find the line where it says &#8220;extension_dir = ***&#8221;. Uncomment this line by removing the preceding semi-colon. and set it to:</p>
<p>extension_dir=&#8221;c:\php\ext&#8221;</p>
<p><strong>Step 4:</strong> In the same file &#8220;php.ini&#8221; also un-comment out 2 other where it says: extension=php_mysql.dll and extension=php_mysqli.dll by removing the semi-colon.</p>
<p><strong>Step 5:</strong> Click Start &#8211;&gt; Run and type IISRESET and press enter.</p>
<p>You are good to go!!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ezitfixes.com/answers/configuring-php-and-mysql-on-iis-for-windows-xp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dynamic IFRAME Resizing</title>
		<link>http://www.ezitfixes.com/answers/dynamic-iframe-resizing/</link>
		<comments>http://www.ezitfixes.com/answers/dynamic-iframe-resizing/#comments</comments>
		<pubDate>Mon, 09 Jun 2008 01:09:56 +0000</pubDate>
		<dc:creator>Daman Dang</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://itfixes.wordpress.com/?p=12</guid>
		<description><![CDATA[IFRAMEs are generally not considered a good idea to use but sometimes it really helps. But resizing an IFRAME as per the content is a big issue and I found a piece of code after some search which can resolve this issue.
In the head of your document enter the following JavaScript code:
&#60;script language="JavaScript"&#62;
&#60;!--
function calcHeight()
{
//find the [...]]]></description>
			<content:encoded><![CDATA[<p>IFRAMEs are generally not considered a good idea to use but sometimes it really helps. But resizing an IFRAME as per the content is a big issue and I found a piece of code after some search which can resolve this issue.</p>
<p>In the head of your document enter the following JavaScript code:</p>
<pre>&lt;script language="JavaScript"&gt;
&lt;!--
function calcHeight()
{
//find the height of the internal page
var the_height=
document.getElementById('the_iframe').contentWindow.
document.body.scrollHeight;

//change the height of the iframe
document.getElementById('the_iframe').height=
the_height;
}
//--&gt;
&lt;/script&gt;</pre>
<p>and in the body create the iframe tag:</p>
<pre>&lt;iframe width="700" id="the_iframe"
onLoad="calcHeight();"
src="testing_page.shtml"
scrolling="NO"
frameborder="1"
height="1"&gt;
&lt;/iframe&gt;</pre>
<p>This will create an IFRAME of width=700 and the height will depend on the content it stores.</p>
<p>Reference:  <a href="http://guymal.com/mycode/iframe_size/" target="_blank">Guymal Code</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ezitfixes.com/answers/dynamic-iframe-resizing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
