<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Anyone Can Code</title>
	<atom:link href="http://jhalog.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://jhalog.wordpress.com</link>
	<description>Not everyone is a coder, but a coder can come from anywhere</description>
	<lastBuildDate>Thu, 01 Dec 2011 08:29:23 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='jhalog.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Anyone Can Code</title>
		<link>http://jhalog.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://jhalog.wordpress.com/osd.xml" title="Anyone Can Code" />
	<atom:link rel='hub' href='http://jhalog.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Git-svn, an SVN client that works like Git</title>
		<link>http://jhalog.wordpress.com/2011/06/16/git-svn-an-avn-client-for-git/</link>
		<comments>http://jhalog.wordpress.com/2011/06/16/git-svn-an-avn-client-for-git/#comments</comments>
		<pubDate>Thu, 16 Jun 2011 11:39:06 +0000</pubDate>
		<dc:creator>jhalak</dc:creator>
				<category><![CDATA[Git]]></category>

		<guid isPermaLink="false">http://jhalog.wordpress.com/?p=115</guid>
		<description><![CDATA[Who are using Git as the version control may face in a situation where there is no option but to use SVN. In that case you will have to learn SVN commands to continue. But the most important thing you are not getting the facility of using git over SVN. &#8220;git-svn&#8221; can help you in [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jhalog.wordpress.com&amp;blog=2482731&amp;post=115&amp;subd=jhalog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Who are using Git as the version control may face in a situation where there is no option but to use SVN. In that case you will have to learn SVN commands to continue. But the most important thing you are not getting the facility of using git over SVN. &#8220;git-svn&#8221; can help you in that case. Many of you who are using git may already know about it. But this post is for those who don&#8217;t know and for those who knows but haven&#8217;t tried till now. Here are the basic commands for manipulation: </p>
<p>&#8211; To install it run:<br />
<code><br />
$ yum install git-svn<br />
</code><br />
&#8211; To clone a repo just replace the &#8220;svn co&#8221;/&#8221;svn checkout&#8221; phrase with &#8220;git svn clone&#8221; phrase. e.g.<br />
<code><br />
$ git svn clone http://path/to/trank [project-name]<br />
or<br />
$ git svn clone svn+ssh://path/to./trunk [project-name]</p>
<p>$ cd project-name<br />
</code></p>
<p>Now you can use all the git commands like you normally do for a git repository including git add, git rm, git checkout, git commit. One thing to notice, git commit will commit your changes a git does normally. But to commit it in SVN repository you have to use:<br />
<code><br />
$ git svn dcommit<br />
</code><br />
This will commit all of your commit(s) that you have done using git in SVN repo as separate SVN commit(s). </p>
<p>To update your local version with server run:<br />
<code><br />
$ git svn rebase<br />
</code></p>
<p>So clone, rebase and commit &#8211; these are the three times that you need to interact with SVN repo. Other things before dcommit can be handled by your favorite GIT. </p>
<p>So have a try. Its really coooool!!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jhalog.wordpress.com/115/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jhalog.wordpress.com/115/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jhalog.wordpress.com/115/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jhalog.wordpress.com/115/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jhalog.wordpress.com/115/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jhalog.wordpress.com/115/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jhalog.wordpress.com/115/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jhalog.wordpress.com/115/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jhalog.wordpress.com/115/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jhalog.wordpress.com/115/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jhalog.wordpress.com/115/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jhalog.wordpress.com/115/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jhalog.wordpress.com/115/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jhalog.wordpress.com/115/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jhalog.wordpress.com&amp;blog=2482731&amp;post=115&amp;subd=jhalog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jhalog.wordpress.com/2011/06/16/git-svn-an-avn-client-for-git/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8d2f5122765f65e18ca5786891a0e902?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Jhalak</media:title>
		</media:content>
	</item>
		<item>
		<title>Installing Ruby On Rails in Fedora</title>
		<link>http://jhalog.wordpress.com/2011/06/16/installing-ruby-on-rails-in-fedora/</link>
		<comments>http://jhalog.wordpress.com/2011/06/16/installing-ruby-on-rails-in-fedora/#comments</comments>
		<pubDate>Thu, 16 Jun 2011 10:36:40 +0000</pubDate>
		<dc:creator>jhalak</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ruby On Rail]]></category>

		<guid isPermaLink="false">http://jhalog.wordpress.com/?p=105</guid>
		<description><![CDATA[After noticing the struggle to install Ruby on Rail in Fedora by some of my dear fellows near me and having a lot of push talk by our branch manager I am going to post the way that I used to install Ruby on Rails in Fedora. Of course you can find help online, but [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jhalog.wordpress.com&amp;blog=2482731&amp;post=105&amp;subd=jhalog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>After noticing the struggle to install Ruby on Rail in Fedora by some of my dear fellows near me and having a lot of push talk by our <a href="http://tohin.wordpress.com">branch manager</a> I am going to post the way that I used to install Ruby on Rails in Fedora. Of course you can find help online, but none of them are straight forward and many time you can fall in a situation like &#8220;now what to do&#8221; if you are a novice in ROR like me. (Actually I know the installation only. hehe&#8230;). Hope you find it useful.</p>
<pre style="font-size:12px;">
# yum install rubygem-rails ruby-mysql
===========================================================================================
 Package                                     Arch                        Version
===========================================================================================
Installing:
 ruby-mysql                                  i686                        2.8-4.fc12
 rubygem-rails                               noarch                      1:2.3.4-2.fc12
Installing for dependencies:
 ruby-irb                                    i686                        1.8.6.399-6.fc12
 ruby-rdoc                                   i686                        1.8.6.399-6.fc12
 rubygem-actionmailer                        noarch                      1:2.3.4-2.fc12
 rubygem-actionpack                          noarch                      1:2.3.4-3.fc12
 rubygem-activerecord                        noarch                      1:2.3.4-2.fc12
 rubygem-activeresource                      noarch                      1:2.3.4-2.fc12
 rubygem-activesupport                       noarch                      1:2.3.4-2.fc12
 rubygem-rack                                noarch                      1:1.0.0-3.fc12
 rubygem-rake                                noarch                      0.8.7-2.fc12
 rubygems                                    noarch                      1.3.7-1.fc12      

Transaction Summary
=============================================================================================
Install      12 Package(s)

# yum install rubygem-sqlite3-ruby

# yum install rubygem-mongrel*

# yum install rubygem-json
==========================================================================================
 Package                                 Arch                         Version
==========================================================================================
Installing:
 rubygem-json                            i686                         1.1.7-3.fc12
Installing for dependencies:
 ruby-atk                                i686                         0.19.4-1.fc12
 ruby-cairo                              i686                         1.10.0-3.fc12
 ruby-gdkpixbuf2                         i686                         0.19.4-1.fc12
 ruby-glib2                              i686                         0.19.4-1.fc12
 ruby-gtk2                               i686                         0.19.4-1.fc12
 ruby-pango                              i686                         0.19.4-1.fc12
 rubygem-cairo                           i686                         1.10.0-3.fc12          

Transaction Summary
===========================================================================================
Install       8 Package(s)

# yum install rubygem-git

(the following will not be needed if first command dont install these)
# yum install rubygem-actionmailer rubygem-activerecord rubygem-activesupport 

APACHE CONFIGURATION:
---------------------------
# yum install ruby-devel
# gem install passenger
# passenger-install-apache2-module

This will create an .so file in: /usr/lib/ruby/gems/1.8/gems/passenger-X.X.X/ext/apache2/mod_passenger.so and the shell will tell you to add some code in httpd.conf and create virtual host.
e.g.
Edit the httpd.conf and at the eld of LoadModules section add the lines:

LoadModule passenger_module /usr/lib/ruby/gems/1.8/gems/passenger-3.0.5/ext/apache2/mod_passenger.so
PassengerRoot /usr/lib/ruby/gems/1.8/gems/passenger-3.0.5
PassengerRuby /usr/bin/ruby

VHOST:

   ServerName relvurvey.jlk
   DocumentRoot /opt/www/relativesolutions-survey/public
   RailsEnv production

## Don't forget to edit the /etc/hosts file to reflect your newly created domain in conf

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++ Troubleshooting +++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

1) Application error....
The best way to locake the problem is to run the dispach.cgi. This will detect the problems that is causing problem running the application.
# cd to/public
# ./dispach.cgi
	Error A)
		/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': no such file to load -- pdfkit (LoadError)
		from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
		from ./../config/environment.rb:12
		from ./dispatch.cgi:3:in `require'
		from ./dispatch.cgi:3
	Sol: gem install pdfkit

2) Internal Server Eroor...:
   &gt;&gt; Your log file may not be writable by the web server. (log/*)
   &gt;&gt; Your database configuration may not be correct. (config/database.yml)
   &gt;&gt; May be you need to restart the apache server if you are in middle of any erver configuration. But have a try with it anyway.
</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jhalog.wordpress.com/105/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jhalog.wordpress.com/105/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jhalog.wordpress.com/105/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jhalog.wordpress.com/105/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jhalog.wordpress.com/105/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jhalog.wordpress.com/105/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jhalog.wordpress.com/105/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jhalog.wordpress.com/105/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jhalog.wordpress.com/105/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jhalog.wordpress.com/105/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jhalog.wordpress.com/105/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jhalog.wordpress.com/105/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jhalog.wordpress.com/105/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jhalog.wordpress.com/105/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jhalog.wordpress.com&amp;blog=2482731&amp;post=105&amp;subd=jhalog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jhalog.wordpress.com/2011/06/16/installing-ruby-on-rails-in-fedora/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8d2f5122765f65e18ca5786891a0e902?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Jhalak</media:title>
		</media:content>
	</item>
		<item>
		<title>Install ImageMagick in fedora with yum</title>
		<link>http://jhalog.wordpress.com/2010/11/09/install-imagemagick-in-fedora-with-yum/</link>
		<comments>http://jhalog.wordpress.com/2010/11/09/install-imagemagick-in-fedora-with-yum/#comments</comments>
		<pubDate>Tue, 09 Nov 2010 04:46:08 +0000</pubDate>
		<dc:creator>jhalak</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://jhalog.wordpress.com/?p=100</guid>
		<description><![CDATA[The easiest way to install imageMagick in Fedora is from yum and PECL. $ yum install ImageMagick $ yum install ImageMagick-devel $ yum install php-devel $ yum install php-pear $ pecl install imagick Then add &#8220;extension=imagick.so&#8221; to php.ini Restart apache<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jhalog.wordpress.com&amp;blog=2482731&amp;post=100&amp;subd=jhalog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The easiest way to install imageMagick in Fedora is from yum and PECL.</p>
<p><code><br />
$ yum install ImageMagick<br />
$ yum install ImageMagick-devel<br />
$ yum install php-devel<br />
$ yum install php-pear<br />
$ pecl install imagick<br />
</code><br />
Then add &#8220;extension=imagick.so&#8221; to php.ini<br />
Restart apache</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jhalog.wordpress.com/100/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jhalog.wordpress.com/100/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jhalog.wordpress.com/100/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jhalog.wordpress.com/100/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jhalog.wordpress.com/100/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jhalog.wordpress.com/100/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jhalog.wordpress.com/100/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jhalog.wordpress.com/100/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jhalog.wordpress.com/100/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jhalog.wordpress.com/100/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jhalog.wordpress.com/100/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jhalog.wordpress.com/100/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jhalog.wordpress.com/100/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jhalog.wordpress.com/100/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jhalog.wordpress.com&amp;blog=2482731&amp;post=100&amp;subd=jhalog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jhalog.wordpress.com/2010/11/09/install-imagemagick-in-fedora-with-yum/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8d2f5122765f65e18ca5786891a0e902?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Jhalak</media:title>
		</media:content>
	</item>
		<item>
		<title>Magento Installation Troubleshooting</title>
		<link>http://jhalog.wordpress.com/2009/05/06/magento-installation-troubleshooting/</link>
		<comments>http://jhalog.wordpress.com/2009/05/06/magento-installation-troubleshooting/#comments</comments>
		<pubDate>Wed, 06 May 2009 11:50:33 +0000</pubDate>
		<dc:creator>jhalak</dc:creator>
				<category><![CDATA[Magento]]></category>

		<guid isPermaLink="false">http://jhalog.wordpress.com/?p=86</guid>
		<description><![CDATA[In fedora Core 9 the during installing Magento I faced some problems. This can be solved by many ways b googling. But I did everything after googling. That didn&#8217;t work for me. Then I do the following thing and that worked: Problem: There was two extension of PHP were missing &#8212; mcrypt and dom. Solution: [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jhalog.wordpress.com&amp;blog=2482731&amp;post=86&amp;subd=jhalog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In fedora Core 9 the during installing Magento I faced some problems. This can be solved by many ways b googling. But I did everything after googling. That didn&#8217;t work for me. Then I do the following thing and that worked:</p>
<p><strong>Problem:</strong> There was two extension of PHP were missing &#8212; mcrypt and dom.</p>
<p>Solution:</p>
<p>At first I updated yum:<br />
$ yum update</p>
<p>Then I removed the php-mcrypt rpm:<br />
# rpm -e php-mcrypt</p>
<p>Then I again installed mcrypt with yum:<br />
#yum  install php-mcrypt</p>
<p>And also installed php-dom:<br />
#yum  install php-dom</p>
<p>Then after restarting the apache I could proceed to the istallation step of magento where I stucked.</p>
<p><strong>Problem: </strong>After installation of Magento in localhost I could not logged in to its admin panel.</p>
<p>Solution: After googling I found that you have to use the IP addressof your locall server instead of localhost. I mman you have to browse:<br />
http://192.168.0.1/magento instead of http://localhost/magento</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jhalog.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jhalog.wordpress.com/86/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jhalog.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jhalog.wordpress.com/86/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jhalog.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jhalog.wordpress.com/86/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jhalog.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jhalog.wordpress.com/86/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jhalog.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jhalog.wordpress.com/86/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jhalog.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jhalog.wordpress.com/86/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jhalog.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jhalog.wordpress.com/86/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jhalog.wordpress.com&amp;blog=2482731&amp;post=86&amp;subd=jhalog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jhalog.wordpress.com/2009/05/06/magento-installation-troubleshooting/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8d2f5122765f65e18ca5786891a0e902?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Jhalak</media:title>
		</media:content>
	</item>
		<item>
		<title>Image doesn&#8217;t show after cutting from PSD / JPEG in IE6</title>
		<link>http://jhalog.wordpress.com/2009/04/28/image-doesnt-show-after-cutting-from-psd-jpeg-in-ie6/</link>
		<comments>http://jhalog.wordpress.com/2009/04/28/image-doesnt-show-after-cutting-from-psd-jpeg-in-ie6/#comments</comments>
		<pubDate>Tue, 28 Apr 2009 09:46:49 +0000</pubDate>
		<dc:creator>jhalak</dc:creator>
				<category><![CDATA[Photoshop]]></category>

		<guid isPermaLink="false">http://jhalog.wordpress.com/?p=78</guid>
		<description><![CDATA[Problem: In most cased you are delivered a PSD file to convert it to HTML. After slicing you find that the images that you cut is working in all browsers but not in IE6. Cause: The image is in CMYK mode. Solution: Change the mode to RGB. To do it go to: image &#62; mode [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jhalog.wordpress.com&amp;blog=2482731&amp;post=78&amp;subd=jhalog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>Problem</strong>: In most cased you are delivered a PSD file to convert it to HTML. After slicing you find that the images that you cut is working in all browsers but not in IE6.</p>
<p><strong>Cause</strong>: The image is in CMYK mode.</p>
<p><strong>Solution</strong>: Change the mode to RGB. To do it go to:  image &gt; mode and then select RGB Color.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jhalog.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jhalog.wordpress.com/78/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jhalog.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jhalog.wordpress.com/78/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jhalog.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jhalog.wordpress.com/78/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jhalog.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jhalog.wordpress.com/78/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jhalog.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jhalog.wordpress.com/78/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jhalog.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jhalog.wordpress.com/78/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jhalog.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jhalog.wordpress.com/78/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jhalog.wordpress.com&amp;blog=2482731&amp;post=78&amp;subd=jhalog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jhalog.wordpress.com/2009/04/28/image-doesnt-show-after-cutting-from-psd-jpeg-in-ie6/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8d2f5122765f65e18ca5786891a0e902?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Jhalak</media:title>
		</media:content>
	</item>
		<item>
		<title>Opacity doesn&#8217;t work in IE</title>
		<link>http://jhalog.wordpress.com/2008/10/08/opacity-doesnt-work-in-ie/</link>
		<comments>http://jhalog.wordpress.com/2008/10/08/opacity-doesnt-work-in-ie/#comments</comments>
		<pubDate>Wed, 08 Oct 2008 05:52:10 +0000</pubDate>
		<dc:creator>jhalak</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://jhalog.wordpress.com/?p=30</guid>
		<description><![CDATA[opacity attribute of CSS doesn&#8217;t work for IE. if there is a class difined as: then it will work all browser other than IE. To make this class functional in IE also you have to add:<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jhalog.wordpress.com&amp;blog=2482731&amp;post=30&amp;subd=jhalog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>opacity attribute of CSS doesn&#8217;t work for IE. if there is a class difined as:</p>
<p><pre class="brush: css;">
.myclass{
opacity: 0.5;
}
</pre></p>
<p>then it will work all browser other than IE. To make this class functional in IE also you have to add:</p>
<p><pre class="brush: css;">
.myclass{
opacity: 0.5;
filter: Alpha(opacity='50')
}
</pre></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jhalog.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jhalog.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jhalog.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jhalog.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jhalog.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jhalog.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jhalog.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jhalog.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jhalog.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jhalog.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jhalog.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jhalog.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jhalog.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jhalog.wordpress.com/30/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jhalog.wordpress.com&amp;blog=2482731&amp;post=30&amp;subd=jhalog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jhalog.wordpress.com/2008/10/08/opacity-doesnt-work-in-ie/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8d2f5122765f65e18ca5786891a0e902?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Jhalak</media:title>
		</media:content>
	</item>
		<item>
		<title>Transperant png doesn&#8217;t show in IE.</title>
		<link>http://jhalog.wordpress.com/2008/09/19/transperent-png-doesnt-show-in-ie/</link>
		<comments>http://jhalog.wordpress.com/2008/09/19/transperent-png-doesnt-show-in-ie/#comments</comments>
		<pubDate>Fri, 19 Sep 2008 11:05:55 +0000</pubDate>
		<dc:creator>jhalak</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[IE issue]]></category>
		<category><![CDATA[transperent png]]></category>

		<guid isPermaLink="false">http://jhalog.wordpress.com/?p=26</guid>
		<description><![CDATA[In many cases we need to use transparent png image as background. But in IE, png files don&#8217;t show as transparent. To fix this problem follow the following procedure: 1) Say, the div in which u want ti use transparent image has a class named &#8220;trans_bg_class&#8221;. The class is defined as: 2) Now add another [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jhalog.wordpress.com&amp;blog=2482731&amp;post=26&amp;subd=jhalog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In many cases we need to use transparent png image as background. But in IE, png files don&#8217;t show as transparent. To fix this problem follow the following procedure:</p>
<p>1) Say, the div in which u want ti use transparent image has a class named &#8220;trans_bg_class&#8221;. The class is defined as:</p>
<p><pre class="brush: css;">
.trans_bg_class{
height:50px;
width:100px
background:url(images/transparent_image.png) repeat;
}
</pre></p>
<p>2) Now add another class named &#8220;trans_bg_class_IE&#8221;</p>
<p><pre class="brush: css;">
.trans_bg_class_IE{
height:50px;
width:100px
filter: progid : DXImageTransform.Microsoft.AlphaImageLoader(src='../images/transparency_page.png', sizingMethod='scale');
}
</pre></p>
<p>3) Create a javascript file named &#8220;transbgIEfix.js&#8221; and write the following code in it:</p>
<p><pre class="brush: jscript;">
var arVersion = navigator.appVersion.split(&quot;MSIE&quot;)
var version = parseFloat(arVersion[1])

if ((version &gt;= 5.5) &amp;&amp; (document.body.filters)){
var x = document.getElementsByTagName('div');
for (var i=0;i&lt;x.length;i++)
{
if (x[i].className == 'trans_bg_class'){
x[i].setAttribute('className', 'trans_bg_class_IE');
}
}
}
</pre></p>
<p>4)  Now add the javascript file in the head section of your HTML page as below:</p>
<p><pre class="brush: xml;">
&lt;!--[if lt IE 7.]&gt;
&lt;script defer type=&quot;text/javascript&quot; src=&quot;transbgIEfix.js&quot;&gt;&lt;/script&gt;
&lt;![endif]--&gt;
</pre></p>
<p>That is all. Now browse the page with IE and you will see the div with transperent image.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jhalog.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jhalog.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jhalog.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jhalog.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jhalog.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jhalog.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jhalog.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jhalog.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jhalog.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jhalog.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jhalog.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jhalog.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jhalog.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jhalog.wordpress.com/26/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jhalog.wordpress.com&amp;blog=2482731&amp;post=26&amp;subd=jhalog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jhalog.wordpress.com/2008/09/19/transperent-png-doesnt-show-in-ie/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8d2f5122765f65e18ca5786891a0e902?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Jhalak</media:title>
		</media:content>
	</item>
		<item>
		<title>HTML mail doesn&#8217;t show in Microsoft Outlook</title>
		<link>http://jhalog.wordpress.com/2008/07/25/html-mail-doesnt-show-in-microsoft-outlook/</link>
		<comments>http://jhalog.wordpress.com/2008/07/25/html-mail-doesnt-show-in-microsoft-outlook/#comments</comments>
		<pubDate>Fri, 25 Jul 2008 13:11:42 +0000</pubDate>
		<dc:creator>jhalak</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://jhalog.wordpress.com/?p=22</guid>
		<description><![CDATA[I have sent HTML mail with PHP but it shows in evolution / thunderbird in Linux but not in Outlook Express in Windows. To solve the problem use the following code: $boundary = &#8220;_e5YKJHKJHKH098090871893712893&#8243;; $message = &#8220;&#8211;$boundary\n&#8221;; $message .= &#8220;Content-disposition: inline\n&#8221;; $message .= &#8220;Content-type: text/html\n\n&#8221;; $message .= &#8220;&#60;html&#62;\n&#8221;; $message .= &#8220;&#60;head&#62;\n&#8221;; $message .= &#8220;&#60;title&#62;Your title&#60;/title&#62;\n&#8221;; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jhalog.wordpress.com&amp;blog=2482731&amp;post=22&amp;subd=jhalog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I have sent HTML mail with PHP but it shows in evolution / thunderbird in Linux but not in Outlook Express in Windows. To solve the problem use the following code:</p>
<p>$boundary = &#8220;_e5YKJHKJHKH098090871893712893&#8243;;<br />
$message = &#8220;&#8211;$boundary\n&#8221;;<br />
$message .= &#8220;Content-disposition: inline\n&#8221;;<br />
$message .= &#8220;Content-type: text/html\n\n&#8221;;<br />
$message .= &#8220;&lt;html&gt;\n&#8221;;<br />
$message .= &#8220;&lt;head&gt;\n&#8221;;<br />
$message .= &#8220;&lt;title&gt;Your title&lt;/title&gt;\n&#8221;;<br />
$message .= &#8220;&lt;/head&gt;\n&#8221;;<br />
$message .= &#8220;&lt;body&gt;\n&#8221;;<br />
$message .= &#8220;\n&#8221;;<br />
$message .= &#8220;&lt;TABLE width=600 border=0 cellpadding=4 cellspacing=1 bgcolor=#878676&gt;\n&#8221;;<br />
$message .= &#8220;    &lt;TR&gt;\n&#8221;;<br />
$message .= &#8220;        &lt;TD bgcolor=white nowrap&gt;Your text&lt;/TD&gt;\n&#8221;;<br />
$message .= &#8220;    &lt;/tr&gt;\n&#8221;;<br />
$message .= &#8220;&lt;/TABLE&gt;\n&#8221;;<br />
$message .= &#8220;&lt;/body&gt;\n&#8221;;<br />
$message .= &#8220;&lt;/html&gt;\n&#8221;;<br />
$message .= &#8220;\n&#8211;$boundary&#8211;\n&#8221;;<br />
$headers = &#8216;From:&#8217; .$author. &#8220;\r\n&#8221; . &#8216;Reply-To:&#8217; .$author;<br />
$headers .= &#8220;\nContent-type: multipart/alternative; boundary=\&#8221;$boundary\&#8221;\nMime-Version: 1.0&#8243;;</p>
<p>if (mail($mailto, $subject , $message, $headers)) echo &#8220;Mail sent successfully&#8221;;</p>
<p>else echo &#8220;Something problem !!!!!!!!!!!!!!!!&#8221;;</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/jhalog.wordpress.com/22/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/jhalog.wordpress.com/22/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jhalog.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jhalog.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jhalog.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jhalog.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jhalog.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jhalog.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jhalog.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jhalog.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jhalog.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jhalog.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jhalog.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jhalog.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jhalog.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jhalog.wordpress.com/22/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jhalog.wordpress.com&amp;blog=2482731&amp;post=22&amp;subd=jhalog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jhalog.wordpress.com/2008/07/25/html-mail-doesnt-show-in-microsoft-outlook/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8d2f5122765f65e18ca5786891a0e902?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Jhalak</media:title>
		</media:content>
	</item>
		<item>
		<title>Writing / Building widget: a simple approach</title>
		<link>http://jhalog.wordpress.com/2008/05/21/writing-building-widget-a-simple-approach/</link>
		<comments>http://jhalog.wordpress.com/2008/05/21/writing-building-widget-a-simple-approach/#comments</comments>
		<pubDate>Wed, 21 May 2008 13:58:11 +0000</pubDate>
		<dc:creator>jhalak</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://jhalog.wordpress.com/?p=15</guid>
		<description><![CDATA[1) There will be three files for this widget 1) style.css 2) script.js 3) widget.php style.css : This file contains your all styles regurding to view the page. Below is a sample of this page code: #someId{ border:1px solid #000000; } .someclass{ background-color: #cccccc; } script.js : this file contains your all javascript codes. Below [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jhalog.wordpress.com&amp;blog=2482731&amp;post=15&amp;subd=jhalog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>1) There will be three files for this widget<br />
1) style.css<br />
2) script.js<br />
3) widget.php</p>
<p><strong>style.css</strong> : This file contains your all styles regurding to view the page. Below is a sample of this page code:<br />
<span style="color:#008000;"> #someId{<br />
border:1px solid #000000;<br />
}<br />
.someclass{<br />
background-color: #cccccc;<br />
}</span></p>
<p><strong>script.js</strong> : this file contains your all javascript codes. Below is a sample of this page code:<br />
<span style="color:#008000;"> function someFunction(){<br />
// do something<br />
}</span></p>
<p><strong>widget.php</strong>: This is the main file that contains all of your html as well as php codes for the widget. Below is a sample of this page code:</p>
<p><span style="color:#339966;">document.write(&#8216; &lt;link rel=&#8221;stylesheet&#8221; href=&#8221;http://www.yourdomain.com/style.css&#8221; type=&#8221;text/css&#8221;  /&gt; &#8216;);<br />
document.write(&#8216; &lt;script language=&#8221;javascript&#8221; src=&#8221;http://www.yourdomain.com/script.js&#8221;&gt;&lt;/script&gt;&#8217;);<br />
document.write(&#8216; &lt;div id=&#8221;someid0&#8243; class=&#8221;someclass&#8221;&gt; &#8216;);<br />
document.write(&#8216;    &lt;div id=&#8221;tab&#8221;&gt; &#8216;);<br />
document.write(&#8216;      &lt;ul&gt; &#8216;);<br />
document.write(&#8216;        &lt;li&gt;&lt;span id=&#8221;someid1&#8243; style=&#8221;padding-left:3px;&#8221; onClick=&#8221;return someFunction1();&#8221;&gt;ABCD&lt;/span&gt;&lt;/li&gt;               &#8216;);<br />
document.write(&#8216;      &lt;/ul&gt;                                          &#8216;);<br />
document.write(&#8216; &lt;/div&gt;&#8217;);<br />
document.write(&#8216; &lt;div class=&#8221;someclass2&#8243;&gt;&#8217;);<br />
document.write(&#8216; &lt;div id=&#8221;someId4&#8243; style=&#8221;display:block&#8221; class=&#8221;someclass&#8221;&gt;  &#8216;);<br />
document.write(&#8216; &lt;?php<br />
$db_host = &#8220;yourhostname&#8221;;<br />
$db_user = &#8220;yourdbusername&#8221;;<br />
$db_pass = &#8220;yourdbpassword&#8221;;<br />
$db_name = &#8220;yourdbname&#8221;;<br />
$db_table_prifix = &#8220;yourdbtableprefix&#8221;;<br />
if (($conn = mysql_connect($db_host, $db_user, $db_pass)) != NULL){<br />
if (mysql_select_db($db_name,$conn)){<br />
$get_post_sql = &#8220;YOUR QUERY &#8220;;<br />
$get_post_res = mysql_query($get_post_sql);<br />
while ($row = mysql_fetch_array($get_post_res, MYSQL_ASSOC)){<br />
?&gt; &#8216;);<br />
document.write(&#8216; &lt;div class = &#8220;dataDiv&#8221;&gt; &#8216;);<br />
document.write(&#8216;    &lt;div class = &#8220;topdata&#8221;&gt; &#8216;);<br />
document.write(&#8216;        &lt;a href=&#8221;http://anydomain/index.php?Id=&lt;?php echo $row["col1"]; ?&gt;&#8221; target=&#8221;_blank&#8221;&gt; &#8216;);<br />
document.write(&#8216;         &lt;?php<br />
echo $row["col2"].&#8221;&#8230;&#8221;;<br />
echo &#8220;&lt;/a&gt;&#8221;;<br />
echo &#8220;&lt;/div&gt;&#8221;;<br />
?&gt; &#8216;);<br />
document.write(&#8216;          &lt;?php<br />
echo &#8220;&lt;/div&gt;&#8221;;<br />
}<br />
mysql_close($conn);<br />
}<br />
}<br />
else echo &#8220;No database connection&#8221;;<br />
?&gt;  &#8216;);<br />
document.write(&#8216;       &lt;/div&gt;&#8217;);<br />
document.write(&#8216;    &lt;/div&gt;&#8217;);<br />
document.write(&#8216; &lt;/div&gt;   &#8216;);<br />
document.write(&#8216;&lt;/div&gt;  &#8216;);</span></p>
<p>Now in any HTML file inside the body tag add the following line:<br />
<span style="color:#008000;"> &lt;script type=&#8221;text/javascript&#8221; src = &#8220;http://www.yourdomain.com/widget.php&#8221;&gt; &lt;/script&gt;</span></p>
<p>Thats all. Open this HTML file with any web browser. You will see the widget.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/jhalog.wordpress.com/15/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/jhalog.wordpress.com/15/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jhalog.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jhalog.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jhalog.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jhalog.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jhalog.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jhalog.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jhalog.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jhalog.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jhalog.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jhalog.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jhalog.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jhalog.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jhalog.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jhalog.wordpress.com/15/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jhalog.wordpress.com&amp;blog=2482731&amp;post=15&amp;subd=jhalog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jhalog.wordpress.com/2008/05/21/writing-building-widget-a-simple-approach/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8d2f5122765f65e18ca5786891a0e902?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Jhalak</media:title>
		</media:content>
	</item>
		<item>
		<title>How to upload large files in PHP</title>
		<link>http://jhalog.wordpress.com/2008/05/15/how-to-upload-large-files-in-php/</link>
		<comments>http://jhalog.wordpress.com/2008/05/15/how-to-upload-large-files-in-php/#comments</comments>
		<pubDate>Thu, 15 May 2008 15:10:51 +0000</pubDate>
		<dc:creator>jhalak</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://jhalog.wordpress.com/?p=13</guid>
		<description><![CDATA[Problem: File upload error (the uploaded file exceeds the upload_max_filesize directive in php.ini) Solution: 1) To update the php.ini file set upload_max_filesize = 20M (your desired size) post_max_size = 20M (your desired size) max_execution_time = 3000 (your desired time) 2) Add the following lines in the .htaccess file in the root directory of the server: [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jhalog.wordpress.com&amp;blog=2482731&amp;post=13&amp;subd=jhalog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Problem: File upload error (the uploaded file exceeds the upload_max_filesize directive in php.ini)</p>
<p>Solution:</p>
<p>1) To update the php.ini file  set</p>
<p>upload_max_filesize = 20M  (your desired size)</p>
<p>post_max_size = 20M (your desired size)</p>
<p>max_execution_time = 3000 (your desired time)</p>
<p>2) Add the following lines in the .htaccess file in the root directory of the server:</p>
<p>php_value upload_max_filesize 20M<br />
php_value post_max_size 20M<br />
php_value max_execution_time 200<br />
php_value max_input_time 200</p>
<p>3) In the php file including the following codes:</p>
<p>&lt;?php ini_set(&#8220;memory_limit&#8221;,&#8221;64M&#8221;); ?&gt;<br />
&lt;?php ini_set(&#8220;post_max_size&#8221;,&#8221;20M&#8221;); ?&gt;<br />
&lt;?php ini_set(&#8220;upload_max_filesize&#8221;,&#8221;20M&#8221;); ?&gt;</p>
<p>In HTML file from where the  file will be uploaded:</p>
<p>&lt;form &#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.&gt;</p>
<p>&lt;input type=&#8221;hidden&#8221; name=&#8221;MAX_FILE_SIZE&#8221; value=&#8221;200000000&#8243;&gt;</p>
<p>&lt;input type=&#8221;file&#8221;     &#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&gt;</p>
<p>&lt;/form&gt;<br />
The choice depends upon the situation.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/jhalog.wordpress.com/13/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/jhalog.wordpress.com/13/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jhalog.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jhalog.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jhalog.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jhalog.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jhalog.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jhalog.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jhalog.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jhalog.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jhalog.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jhalog.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jhalog.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jhalog.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jhalog.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jhalog.wordpress.com/13/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jhalog.wordpress.com&amp;blog=2482731&amp;post=13&amp;subd=jhalog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jhalog.wordpress.com/2008/05/15/how-to-upload-large-files-in-php/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8d2f5122765f65e18ca5786891a0e902?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Jhalak</media:title>
		</media:content>
	</item>
	</channel>
</rss>
