Archive

Archive for September, 2008

Strange IE! Show Blank Page for Wrong Closing Tag</a></h2> <div class="info"> <span class="date">Sep 30th, 2008</span> <div class="fixed"></div> </div> <div class="content"> <!-- satya--> <p>Internet Explorer is really strange browser. It was showing me blank page when my <title> tag was not properly closed. I need to change the title tag, and some other HTML tag, dynamically for a cached page. In the script, instead of using variable for closing <title> tag, I pasted wrong variable. When you double [...]</p> <div class="fixed"></div> </div> <div class="under"> </div> </div> <div class="post" id="post-296"> <h2><a class="title" href="http://www.satya-weblog.com/2008/09/open-csv-comma-separated-value-file-ms.html" rel="bookmark">Open CSV (Comma Separated Value) File in MS Word</a></h2> <div class="info"> <span class="date">Sep 28th, 2008</span> <div class="fixed"></div> </div> <div class="content"> <!-- satya--> <p>CSV file is a text file, so this type of file can easily be opened in MS Word. Just use your MS Word Menu File->Open. Or right click on file and use “Open With…”. Select “Microsoft Word for Window”.<br /> CSV file data can easily be converted into table structure in MS Word application. For converting [...]</p> <div class="fixed"></div> </div> <div class="under"> </div> </div> <div class="post" id="post-294"> <h2><a class="title" href="http://www.satya-weblog.com/2008/09/hide-ad-from-home-page-and-show-your.html" rel="bookmark">Hide ad from home page and show your advertisement (any content) on other pages</a></h2> <div class="info"> <span class="date">Sep 27th, 2008</span> <div class="fixed"></div> </div> <div class="content"> <!-- satya--> <p>I have to hide ad coming on the home page but wanted to show that on other page. As my home page has a list of three posts/items there will no adsense ad on the left side because already three ads will there below each posts. So, what I did is – I went to [...]</p> <div class="fixed"></div> </div> <div class="under"> </div> </div> <div class="post" id="post-293"> <h2><a class="title" href="http://www.satya-weblog.com/2008/09/customize-your-new-blogger-blogspot.html" rel="bookmark">Customize your New Blogger’s (blogspot) Blog Title</a></h2> <div class="info"> <span class="date">Sep 23rd, 2008</span> <div class="fixed"></div> </div> <div class="content"> <!-- satya--> <p>You can customize your blogger’s (blogspot) blog title the way you want. On the home page you will display your blog title and on other pages you can display page’s title as of your post heading. </p> <p><head></p> <p><title><b:if cond=’data:blog.url==data:blog.homepageUrl’><data:blog.pageTitle/><b:else/><data:blog.pageName/> | <data:blog.title/></b:if></title></p> <p></head></p> <p>The above code will display your Blog Name on home page and on other pages it [...]</p> <div class="fixed"></div> </div> <div class="under"> </div> </div> <div class="post" id="post-292"> <h2><a class="title" href="http://www.satya-weblog.com/2008/09/php-application-variable.html" rel="bookmark">Application Variable in PHP</a></h2> <div class="info"> <span class="date">Sep 16th, 2008</span> <div class="fixed"></div> </div> <div class="content"> <!-- satya--> <p>Are you missing Application Variable in PHP. Many who comes from ASP will look for it.<br /> There is no application variable in PHP. PHP have only session variable. You need to do little extra work for application session variable in PHP.<br /> Application variable is used to pass information among different session. Unlike session, application variable can be [...]</p> <div class="fixed"></div> </div> <div class="under"> </div> </div> <div class="post" id="post-291"> <h2><a class="title" href="http://www.satya-weblog.com/2008/09/remove-default-escaping-in-php.html" rel="bookmark">PHP Security: Remove Default Escaping In PHP</a></h2> <div class="info"> <span class="date">Sep 14th, 2008</span> <div class="fixed"></div> </div> <div class="content"> <!-- satya--> <p>Reading this post first may be helpful!<br /> Remove default PHP escaping and apply your own at runtime. This way you are safe at client’s setting of magic quote in their php.ini.<br /> PHP has default escaping functionality. It escapes all incoming data.<br /> It is preferred not to use default magic quote ‘On’ in PHP. In PHP 6.0.0 it will [...]</p> <div class="fixed"></div> </div> <div class="under"> </div> </div> <script type="text/javascript"> // <![CDATA[ (function() { document.write('<script charset="utf-8" type="text/javascript" src="http://webscripting.disqus.com/get_num_replies_from_wpid.js?v=2.2&t=span&wpid0=297&wpid1=296&wpid2=294&wpid3=293&wpid4=292&wpid5=291"><' + '/script>'); })(); //]]> </script> <div id="pagenavi"> <span class="newer"></span> <span class="older"></span> <div class="fixed"></div> </div> <!-- google_ad_section_end --> </div> <!-- main END --> <!-- sidebar START --> <div id="sidebar"> <!-- sidebar north START --> <div id="northsidebar" class="sidebar"> <!-- showcase --> <div id="akpc-widget-11" class="widget akpc-widget"><div class="sideheader">Recently Popular (90 days)</div> <div class="akpc_report" rel=""> <ol> <li><span>17%</span><a href="http://www.satya-weblog.com/2010/07/eclipse-error-failed-to-load-the-jni-shared-library-cprogram-files-x86javajre6binclientjvm-dll.html">Eclipse Error - Failed to load the JNI shared library "C:\Program Files (x86)\Java\jre6\bin\client\jvm.dll"</a></li><li><span>7%</span><a href="http://www.satya-weblog.com/2010/05/html-symbol-for-check-mark-and-others.html">HTML Symbol for Check Mark and Others</a></li><li><span>6%</span><a href="http://www.satya-weblog.com/2010/05/javascript-dynamically-attach-event-handler-html-element.html">JavaScript: Dynamically Attach Event Handler to any HTML Element</a></li><li><span>5%</span><a href="http://www.satya-weblog.com/2010/06/google-font-api-font-viewer-2.html">Google Font API: Fonts Viewer - Preview all available Fonts in Google Directory</a></li><li><span>2%</span><a href="http://www.satya-weblog.com/2010/06/wordpress-3-0-benefits-custom-fields.html">Wordpress 3.0 Benefits: Custom Fields</a></li><li><span>2%</span><a href="http://www.satya-weblog.com/2010/06/google-font-api-font-viewer-1.html">Google Font API: Why it exists and How it is useful!</a></li><li><span>1%</span><a href="http://www.satya-weblog.com/2010/06/remove-form-elements-page-using-javascript.html">Remove Form Elements or any Element from Web Page (DOM) using JavaScript</a></li><li><span>1%</span><a href="http://www.satya-weblog.com/2010/05/how-to-clear-browser-cache.html">How to Clear Browser Cache ?</a></li><li><span>1%</span><a href="http://www.satya-weblog.com/2010/06/junk-character-problem-iso-8859-1-latin1-encoding.html">Junk Character Problem with ISO-8859-1 (Latin1) Encoding</a></li><li><span>1%</span><a href="http://www.satya-weblog.com/2010/05/translate-and-text-to-speech-hindi-tool.html">Translate and Text-to-Speech Hindi Tool by Google</a></li> </ol> </div> </div></div> <!-- sidebar north END --> <!-- sidebar south START --> <div id="southsidebar" class="sidebar"> <div id="text-12" class="widget widget_text"><div class="sideheader">Join on Facebook</div> <div class="textwidget"><div style="height:60px;"><iframe src="http://www.facebook.com/plugins/likebox.php?id=176350059435&width=292&connections=0&stream=false&header=true&height=60" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:292px; height:60px;" allowTransparency="true"></iframe></div></div> </div><div id="ad-sidebar300250" class="widget �lambda_4"><div style="text-align:left"> <script type="text/javascript"><!-- google_ad_client = "pub-4441905138518539"; /* 300x250, tech1/31/10 */ google_ad_slot = "8422749194"; google_ad_width = 300; google_ad_height = 250; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> </div></div><div id="text-6" class="widget widget_text"> <div class="textwidget"><script type="text/javascript"> var jobthread_widget_title = " "; var jobthread_widget_outer_style = "width:310px;"; var jobthread_widget_inner_style = "background-color:#ffffff"; var jobthread_widget_title_style = "display:none"; var jobthread_widget_link_style = "color:#2970A6;text-decoration:none;border:none;"; var jobthread_widget_top_style = "padding-top:0px;"; var jobthread_widget_bottom_style = "padding-bottom:0px;"; document.write(unescape('%3Cdiv class="sideheader"%3EJobs%3C/div%3E')); document.write(unescape("%3Cscript src='http://syndication.jobthread.com/widget/?id=e8c78e&num_jobs=8' type='text/javascript'%3E%3C/script%3E")); </script></div> </div><div id="simpletags-3" class="widget widget-simpletags"><div class="sideheader">Tags cloud</div> <!-- Generated by Simple Tags 1.7.4.4 - http://wordpress.org/extend/plugins/simple-tags --> <div class="st-tag-cloud"> <a href="http://www.satya-weblog.com/tag/feed" id="tag-link-218" class="st-tags t1" title="6 topics" style="font-size:8pt; color:#999999;">feed</a> <a href="http://www.satya-weblog.com/tag/table" id="tag-link-114" class="st-tags t1" title="5 topics" style="font-size:8pt; color:#999999;">table</a> <a href="http://www.satya-weblog.com/tag/array" id="tag-link-126" class="st-tags t1" title="8 topics" style="font-size:8pt; color:#999999;">array</a> <a href="http://www.satya-weblog.com/tag/blog" id="tag-link-177" class="st-tags t1" title="10 topics" style="font-size:8pt; color:#999999;">blog</a> <a href="http://www.satya-weblog.com/tag/linux" id="tag-link-30" class="st-tags t1" title="9 topics" style="font-size:8pt; color:#999999;">Linux</a> <a href="http://www.satya-weblog.com/tag/plugin" id="tag-link-125" class="st-tags t1" title="10 topics" style="font-size:8pt; color:#999999;">plugin</a> <a href="http://www.satya-weblog.com/tag/ajax" id="tag-link-14" class="st-tags t1" title="7 topics" style="font-size:8pt; color:#999999;">Ajax</a> <a href="http://www.satya-weblog.com/tag/browser" id="tag-link-64" class="st-tags t1" title="13 topics" style="font-size:8pt; color:#999999;">browser</a> <a href="http://www.satya-weblog.com/tag/template" id="tag-link-15" class="st-tags t1" title="8 topics" style="font-size:8pt; color:#999999;">Template</a> <a href="http://www.satya-weblog.com/tag/tips-tricks" id="tag-link-8" class="st-tags t5" title="47 topics" style="font-size:12.44pt; color:#555555;">Tips/Tricks</a> <a href="http://www.satya-weblog.com/tag/design" id="tag-link-141" class="st-tags t1" title="8 topics" style="font-size:8pt; color:#999999;">design</a> <a href="http://www.satya-weblog.com/tag/config" id="tag-link-20" class="st-tags t1" title="10 topics" style="font-size:8pt; color:#999999;">Config</a> <a href="http://www.satya-weblog.com/tag/font" id="tag-link-72" class="st-tags t1" title="5 topics" style="font-size:8pt; color:#999999;">font</a> <a href="http://www.satya-weblog.com/tag/seo" id="tag-link-24" class="st-tags t2" title="15 topics" style="font-size:9.11pt; color:#888888;">SEO</a> <a href="http://www.satya-weblog.com/tag/chrome" id="tag-link-119" class="st-tags t1" title="6 topics" style="font-size:8pt; color:#999999;">chrome</a> <a href="http://www.satya-weblog.com/tag/mysql" id="tag-link-22" class="st-tags t1" title="9 topics" style="font-size:8pt; color:#999999;">MySQL</a> <a href="http://www.satya-weblog.com/tag/symfony" id="tag-link-159" class="st-tags t1" title="7 topics" style="font-size:8pt; color:#999999;">symfony</a> <a href="http://www.satya-weblog.com/tag/php-script" id="tag-link-4" class="st-tags t5" title="45 topics" style="font-size:12.44pt; color:#555555;">PHP Script</a> <a href="http://www.satya-weblog.com/tag/ie" id="tag-link-62" class="st-tags t1" title="6 topics" style="font-size:8pt; color:#999999;">IE</a> <a href="http://www.satya-weblog.com/tag/javascript" id="tag-link-12" class="st-tags t5" title="49 topics" style="font-size:12.44pt; color:#555555;">Javascript</a> <a href="http://www.satya-weblog.com/tag/framework" id="tag-link-26" class="st-tags t1" title="13 topics" style="font-size:8pt; color:#999999;">framework</a> <a href="http://www.satya-weblog.com/tag/encode" id="tag-link-37" class="st-tags t1" title="5 topics" style="font-size:8pt; color:#999999;">encode</a> <a href="http://www.satya-weblog.com/tag/file" id="tag-link-147" class="st-tags t1" title="6 topics" style="font-size:8pt; color:#999999;">file</a> <a href="http://www.satya-weblog.com/tag/cache" id="tag-link-17" class="st-tags t1" title="7 topics" style="font-size:8pt; color:#999999;">Cache</a> <a href="http://www.satya-weblog.com/tag/css" id="tag-link-5" class="st-tags t1" title="12 topics" style="font-size:8pt; color:#999999;">CSS</a> <a href="http://www.satya-weblog.com/tag/form" id="tag-link-32" class="st-tags t1" title="7 topics" style="font-size:8pt; color:#999999;">form</a> <a href="http://www.satya-weblog.com/tag/php" id="tag-link-18" class="st-tags t10" title="86 topics" style="font-size:18pt; color:#000000;">PHP</a> <a href="http://www.satya-weblog.com/tag/social" id="tag-link-135" class="st-tags t1" title="9 topics" style="font-size:8pt; color:#999999;">social</a> <a href="http://www.satya-weblog.com/tag/comparison" id="tag-link-66" class="st-tags t1" title="6 topics" style="font-size:8pt; color:#999999;">comparison</a> <a href="http://www.satya-weblog.com/tag/redirect" id="tag-link-59" class="st-tags t1" title="6 topics" style="font-size:8pt; color:#999999;">redirect</a> <a href="http://www.satya-weblog.com/tag/twitter" id="tag-link-34" class="st-tags t1" title="6 topics" style="font-size:8pt; color:#999999;">twitter</a> <a href="http://www.satya-weblog.com/tag/firefox" id="tag-link-61" class="st-tags t1" title="8 topics" style="font-size:8pt; color:#999999;">firefox</a> <a href="http://www.satya-weblog.com/tag/ranking" id="tag-link-113" class="st-tags t1" title="6 topics" style="font-size:8pt; color:#999999;">ranking</a> <a href="http://www.satya-weblog.com/tag/speed" id="tag-link-179" class="st-tags t1" title="7 topics" style="font-size:8pt; color:#999999;">speed</a> <a href="http://www.satya-weblog.com/tag/tool" id="tag-link-196" class="st-tags t2" title="14 topics" style="font-size:9.11pt; color:#888888;">tool</a> <a href="http://www.satya-weblog.com/tag/beginners" id="tag-link-3" class="st-tags t1" title="7 topics" style="font-size:8pt; color:#999999;">Beginners</a> <a href="http://www.satya-weblog.com/tag/apache" id="tag-link-21" class="st-tags t1" title="5 topics" style="font-size:8pt; color:#999999;">Apache</a> <a href="http://www.satya-weblog.com/tag/editor" id="tag-link-67" class="st-tags t1" title="6 topics" style="font-size:8pt; color:#999999;">editor</a> <a href="http://www.satya-weblog.com/tag/search" id="tag-link-48" class="st-tags t1" title="13 topics" style="font-size:8pt; color:#999999;">search</a> <a href="http://www.satya-weblog.com/tag/google" id="tag-link-33" class="st-tags t3" title="25 topics" style="font-size:10.22pt; color:#777777;">google</a> <a href="http://www.satya-weblog.com/tag/utf-8" id="tag-link-39" class="st-tags t1" title="5 topics" style="font-size:8pt; color:#999999;">utf-8</a> <a href="http://www.satya-weblog.com/tag/website" id="tag-link-158" class="st-tags t2" title="15 topics" style="font-size:9.11pt; color:#888888;">website</a> <a href="http://www.satya-weblog.com/tag/wordpress" id="tag-link-122" class="st-tags t3" title="24 topics" style="font-size:10.22pt; color:#777777;">wordpress</a> <a href="http://www.satya-weblog.com/tag/security" id="tag-link-9" class="st-tags t1" title="9 topics" style="font-size:8pt; color:#999999;">Security</a> <a href="http://www.satya-weblog.com/tag/html" id="tag-link-6" class="st-tags t4" title="40 topics" style="font-size:11.33pt; color:#666666;">HTML</a></div> </div></div> <!-- sidebar south END --> </div> <!-- sidebar END --> <div class="fixed"></div> </div> <!-- content END --> <!-- footer START --> <div id="footer"> <!-- google_ad_section_start(weight=ignore) --> <a id="gotop" href="#" onclick="MGJS.goTop();return false;">Top</a> <div id="fo-box1"> <p><b class="hc">Blog Stat.</b> </p> <p> <i><div class="generalstats-refreshable-output">Posts:283   Comments:389   </div></i> </p> <p> <a href="http://www.satya-weblog.com/2010/07/blog-stats.html">More on stats</a> </p> <p><b>Other links:</b></p> <p><a href="http://www.managednetworks.co.uk/it-support/regional-it-support/north-west/manchester/" title="UK support, IT management, and hosted desktop services" rel="external" target="_blank">IT Support Manchester</a></p> <p><a href="http://only-your-views.blogspot.com/" rel="external" target="_blank">My another blog</a></p> </div> <div id="fo-box2"> <p><b class="hc">Blogroll</b></p> <p><a href="http://www.sitepoint.com/" target="_blank" rel="external">Sitepoint</a></p> <p><a href="http://php.net/" target="_blank" rel="external">PHP official Site</a></p> <p><a href="http://www.devarticles.com/" target="_blank" rel="external">Dev Articles</a></p> <p><a href="http://www.labnol.org/" target="_blank" rel="external">Digital Inspiration</a></p> <p><a href="http://dev.mysql.com/" target="_blank" rel="external">MySQL Dev Zone</a></p> <p><a href="http://httpd.apache.org/docs/1.3/mod/directives.html" target="_blank" rel="external">Apache Docs</a></p> <p><a href="http://www.satya-weblog.com/blogroll" >more...</a></p> </div> <div id="fo-box3"> <b class="hc">Categories</b>:<br /> <a href="http://www.satya-weblog.com/category/blogger" title="Blogspot, wordpress, related to blogging">Blogger/WP</a> (38)<br /> <a href="http://www.satya-weblog.com/category/lamp" title="PHP, MySQL, Apache and Linux">LAMP</a> (88)<br /> <a href="http://www.satya-weblog.com/category/security" title="about security, client side, server side">Security</a> (9)<br /> <a href="http://www.satya-weblog.com/category/seo" title="search engine optimization">SEO</a> (15)<br /> <a href="http://www.satya-weblog.com/category/tech-talk" title="tech news, new events etc">Tech Talk</a> (94)<br /> <a href="http://www.satya-weblog.com/category/tools" title="any kind of web development related tools">Tools</a> (15)<br /> <a href="http://www.satya-weblog.com/category/web-2" title="web2/3 or newer related technologies ">Web 2</a> (9)<br /> <a href="http://www.satya-weblog.com/category/web-design" title="HTML, JavaScript, and CSS">Web Design</a> (69)<br /> <a href="http://www.satya-weblog.com/category/xml" title="XML and related technologies">XML</a> (5)<br /> </div> <div id="fo-box4"> <p><b class="hc">Information</b></p> <p><a href="/about">About</a></p> <p><a href="/feedback">Contact/Feedback</a></p> <p><a href="/ws_privacy_policies.php">Privacy</a></p> <p><a href="/terms-and-conditions">T & C</a></p> <p> <a href="/disclaimer">Disclaimer</a></p> </div> <div id="fo-box5"> <!-- < p> < a href="http://feeds.feedburner.com/satya-weblog/scripting"><img src="http://feeds.feedburner.com/~fc/satya-weblog/scripting?bg=99ccff&fg=333333&anim=0" height="26" width="88" style="border:0" alt="" /></a> < /p> --> <p> <a href="http://www.facebook.com/pages/Web-Scripting/176350059435"><img src="http://lh3.ggpht.com/_Ve5n9uU6iBI/TC4LUlM-CkI/AAAAAAAABEA/uGTebjpOU3M/s800/fb-facebook88-31.gif" alt="FB page" width="88px" height="31px" border="0"/></a> </p> <p> <a href="https://www.google.com/adplanner/site_profile?s=satya-weblog.com&b=1"><img src="http://www.gstatic.com/ads/branding/adplanner/adp80_15.gif" border=none width="80" height="15" border="0" title="Find my site on Google Ad Planner"></a> </p> </div> <div style="clear:both"></div> <div style="position:absolute;bottom:11px;left:15px;vertical-align:bottom;"> <a href="/sitemap.xml">Sitemap</a> | <a id="powered" href="http://wordpress.org/">Powered by WordPress</a> | Copyright © 2005-2010  <a href="http://www.satya-weblog.com/satya-prakash">Satya Prakash</a> </div> <!-- google_ad_section_end --> </div> <!-- footer END --> </div> <!-- container END --> </div> <!-- wrap END --> <script class="javascript" src="http://blog.satya-weblog.com/ws/g_sytx/shCore.js" ></script> <script class="javascript" src="http://blog.satya-weblog.com/ws/g_sytx/shBrush_min.js" ></script> <script class="javascript"> dp.SyntaxHighlighter.ClipboardSwf = 'http://blog.satya-weblog.com/ws/g_sytx/clipboard.swf'; dp.SyntaxHighlighter.HighlightAll('code'); </script> <script type="text/javascript"> jQuery(function() { jQuery.post("index.php",{ak_action:"api_record_view", ids: AKPC_IDS, type:"archive"}, false, "json"); }); </script> <script type="text/javascript"> /* Outgoing link tracking */ jQuery(function() { jQuery("a[href^=http]").not('a[href*="satya-weblog.com"]').click(function() { _gaq.push(['_trackEvent', 'outgoing', 'Links' ,"'" + this.href + "'"]); }); }); /* GA original code */ (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(ga); })(); </script> </body> </html>