<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.7.2" -->
<rss version="2.0">
    <channel>
        <title>Lowyat.NET: Latest topics by Fazz</title>
        <description></description>
        <link>http://forum.lowyat.net/</link>
        <lastBuildDate>Sun, 07 Jun 2026 00:40:30 +0800</lastBuildDate>
        <generator>FeedCreator 1.7.2</generator>
        <item>
            <title>hook_form_alter</title>
            <link>http://forum.lowyat.net/topic/3513144</link>
            <description>Hi coders,&lt;br /&gt;Got a litlle issue on Drupal site here. I&amp;#39;m altering register form by setting the form element&amp;#39;s #required set to FALSE and hide the original field, but form submission still consider it as required.&lt;br /&gt;Below is my code:&lt;br /&gt; &lt;!--c1--&gt;&lt;div class='codetop'&gt;CODE&lt;/div&gt;&lt;div class='codemain'&gt;&lt;!--ec1--&gt; function hook_form_alter&amp;#40;&amp;amp;&amp;#036;form, &amp;amp;&amp;#036;form_state, &amp;#036;form_id&amp;#41; {&lt;br /&gt; &amp;nbsp; &amp;nbsp;if &amp;#40;&amp;#036;form_id == &amp;#39;user_register_form&amp;#39;&amp;#41; {&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;#036;form&amp;#91;&amp;#39;account&amp;#39;&amp;#93;&amp;#91;&amp;#39;name&amp;#39;&amp;#93; = array&amp;#40;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;#39;#type&amp;#39; =&amp;#62; &amp;#39;hidden&amp;#39;,&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;#39;#required&amp;#39; =&amp;#62; FALSE,&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;#41;;&lt;br /&gt;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;#036;form&amp;#91;&amp;#39;account&amp;#39;&amp;#93;&amp;#91;&amp;#39;mail&amp;#39;&amp;#93; = array&amp;#40;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;#39;#type&amp;#39; =&amp;#62; &amp;#39;hidden&amp;#39;,&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;#39;#required&amp;#39; =&amp;#62; FALSE,&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;#41;;&lt;br /&gt;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;#036;form&amp;#91;&amp;#39;subs&amp;#39;&amp;#93;&amp;#91;&amp;#39;username&amp;#39;&amp;#93; = array&amp;#40;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;#39;#type&amp;#39; =&amp;#62; &amp;#39;textfield&amp;#39;, &lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;#39;#title&amp;#39; =&amp;#62; &amp;#39;Nama pengguna&amp;#39;,&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;#39;#description&amp;#39; =&amp;#62; &amp;#39;Ruang antara huruf dibenarkan, tanda baca yang boleh hanyalah noktah, sengkang, koma bertitik, sengkang bawah.&amp;#39;,&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;#39;#size&amp;#39; =&amp;#62; 10,&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;#39;#maxlength&amp;#39; =&amp;#62; 50,&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;#41;;&lt;br /&gt;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;#036;form&amp;#91;&amp;#39;subs&amp;#39;&amp;#93;&amp;#91;&amp;#39;email&amp;#39;&amp;#93; = array&amp;#40;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;#39;#type&amp;#39; =&amp;#62; &amp;#39;textfield&amp;#39;, &lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;#39;#title&amp;#39; =&amp;#62; &amp;#39;Alamat E-mail&amp;#39;,&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;#39;#description&amp;#39; =&amp;#62; &amp;#39;Alamat e-mel yang sah. Semua e-mel akan dihantar menggunakan alamat e-mel ini.&amp;#39;,&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;#39;#size&amp;#39; =&amp;#62; 10,&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;#39;#maxlength&amp;#39; =&amp;#62; 50,&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;#41;;&lt;br /&gt;&lt;br /&gt;&lt;!--c2--&gt;&lt;/div&gt;&lt;!--ec2--&gt;&lt;br /&gt;What do I miss?</description>
            <author>Fazz</author>
            <category>Codemasters</category>
            <pubDate>Wed, 04 Mar 2015 17:59:48 +0800</pubDate>
        </item>
        <item>
            <title>Curl not retrieving image properly</title>
            <link>http://forum.lowyat.net/topic/3201611</link>
            <description>Hi guys,&lt;br /&gt;&lt;br /&gt;Need help on cURL: I try to download remote images using cURL because that&amp;#39;s the only script that allowing me to push thru private internal server.&lt;br /&gt;But instead of the whole 20 MB file, a file with only 1 byte value were created.&lt;br /&gt;&lt;br /&gt;Here is the function I coded:&lt;br /&gt;&lt;br /&gt;&lt;!--c1--&gt;&lt;div class='codetop'&gt;CODE&lt;/div&gt;&lt;div class='codemain'&gt;&lt;!--ec1--&gt;function download_remote_file&amp;#40;&amp;#036;file_url, &amp;#036;save_to&amp;#41; { &lt;br /&gt; &amp;nbsp; &amp;nbsp;if&amp;#40;function_exists&amp;#40;&amp;#39;curl_init&amp;#39;&amp;#41;&amp;#41; {&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;#036;ch = curl_init&amp;#40;&amp;#41;;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;curl_setopt&amp;#40;&amp;#036;ch, CURLOPT_TIMEOUT, 30000&amp;#41;;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;curl_setopt&amp;#40;&amp;#036;ch, CURLOPT_POST, 0&amp;#41;; &lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;curl_setopt&amp;#40;&amp;#036;ch, CURLOPT_URL, &amp;#036;file_url&amp;#41;;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;curl_setopt&amp;#40;&amp;#036;ch, CURLOPT_HEADER, 1&amp;#41;;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;curl_setopt&amp;#40;&amp;#036;ch, CURLOPT_RETURNTRANSFER, 1&amp;#41;;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;curl_setopt&amp;#40;&amp;#036;ch, CURLOPT_BINARYTRANSFER, 1&amp;#41;;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;curl_setopt&amp;#40;&amp;#036;ch, CURLOPT_FILE, fopen&amp;#40;&amp;#036;save_to, &amp;#39;w&amp;#39;&amp;#41;&amp;#41;;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;#036;file_content = curl_exec&amp;#40;&amp;#036;ch&amp;#41;; &lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;curl_getinfo&amp;#40;&amp;#036;ch&amp;#41;;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;curl_close&amp;#40;&amp;#036;ch&amp;#41;;&lt;br /&gt;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if&amp;#40;&amp;#036;file_content === false&amp;#41; {&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;drupal_set_message&amp;#40;&amp;#39;load file failed&amp;#39;&amp;#41;;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return false;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;br /&gt;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if&amp;#40;&amp;#036;downloaded_file = fopen&amp;#40;&amp;#036;save_to, &amp;#39;wb&amp;#39;&amp;#41;&amp;#41; {&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;fwrite&amp;#40;&amp;#036;downloaded_file, &amp;#036;file_content&amp;#41;; &lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;fclose&amp;#40;&amp;#036;downloaded_file&amp;#41;;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}else {&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return false;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;br /&gt;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return &amp;#036;downloaded_file;&lt;br /&gt; &amp;nbsp; &amp;nbsp;}&lt;br /&gt;}&lt;!--c2--&gt;&lt;/div&gt;&lt;!--ec2--&gt;&lt;br /&gt;&lt;br /&gt;Which part is wrong?&lt;br /&gt;</description>
            <author>Fazz</author>
            <category>Codemasters</category>
            <pubDate>Tue, 22 Apr 2014 13:02:53 +0800</pubDate>
        </item>
        <item>
            <title>[Drupal]Add product variation</title>
            <link>http://forum.lowyat.net/topic/3166174</link>
            <description>Hi guys, using commerce kickstart, I want to add a new variation of a product sold on my site using code. &lt;br /&gt;All I found thru the internet is the instruction using the CMS but I want to create the variation thru code only.&lt;br /&gt;&lt;br /&gt;I already done the code below to create a new product:&lt;br /&gt;&lt;!--c1--&gt;&lt;div class='codetop'&gt;CODE&lt;/div&gt;&lt;div class='codemain'&gt;&lt;!--ec1--&gt;            &amp;#036;new_product = commerce_product_new&amp;#40;&amp;#39;books&amp;#39;&amp;#41;;&lt;br /&gt;            &amp;#036;new_product-&amp;#62;is_new = TRUE;&lt;br /&gt;            &amp;#036;new_product-&amp;#62;revision_id = NULL;&lt;br /&gt;            &amp;#036;new_product-&amp;#62;uid = 1;&lt;br /&gt;            &amp;#036;new_product-&amp;#62;status = 1;&lt;br /&gt;            &amp;#036;new_product-&amp;#62;created = &amp;#036;new_product-&amp;#62;changed = time&amp;#40;&amp;#41;;&lt;br /&gt;            &amp;#036;new_product-&amp;#62;sku = &amp;#036;image&amp;#91;&amp;#39;dc_unique&amp;#39;&amp;#93;.&amp;#39; - Digital&amp;#39;;&lt;br /&gt;            &amp;#036;new_product-&amp;#62;title = &amp;#036;image&amp;#91;&amp;#39;dc_id&amp;#39;&amp;#93;;&lt;br /&gt;            &amp;#036;new_product-&amp;#62;language = LANGUAGE_NONE;&lt;br /&gt;            &amp;#036;new_product-&amp;#62;commerce_price = array&amp;#40;LANGUAGE_NONE =&amp;#62; array&amp;#40; 0 =&amp;#62; array&amp;#40;&lt;br /&gt;                &amp;#39;amount&amp;#39; =&amp;#62; 1000,&lt;br /&gt;                &amp;#39;currency_code&amp;#39; =&amp;#62; commerce_default_currency&amp;#40;&amp;#41;,&lt;br /&gt;            &amp;#41;&amp;#41;&amp;#41;;&lt;br /&gt;            commerce_product_save&amp;#40;&amp;#036;new_product&amp;#41;;&lt;br /&gt;&lt;!--c2--&gt;&lt;/div&gt;&lt;!--ec2--&gt;&lt;br /&gt;&lt;br /&gt;As notice in the code, the product created is a Digital version. &lt;br /&gt;&lt;!--c1--&gt;&lt;div class='codetop'&gt;CODE&lt;/div&gt;&lt;div class='codemain'&gt;&lt;!--ec1--&gt;            &amp;#036;new_product-&amp;#62;sku = &amp;#036;image&amp;#91;&amp;#39;dc_unique&amp;#39;&amp;#93;.&amp;#39; - Digital&amp;#39;;&lt;br /&gt;&lt;!--c2--&gt;&lt;/div&gt;&lt;!--ec2--&gt;&lt;br /&gt;&lt;br /&gt;Now I want to add a variation of the same product but in print. Like this:&lt;br /&gt;&lt;!--c1--&gt;&lt;div class='codetop'&gt;CODE&lt;/div&gt;&lt;div class='codemain'&gt;&lt;!--ec1--&gt;            &amp;#036;new_product-&amp;#62;sku = &amp;#036;image&amp;#91;&amp;#39;dc_unique&amp;#39;&amp;#93;.&amp;#39; - Print&amp;#39;;&lt;br /&gt;&lt;!--c2--&gt;&lt;/div&gt;&lt;!--ec2--&gt;&lt;br /&gt;&lt;br /&gt;Do any of you have ideas/experience on this?&lt;br /&gt;Or is there a link I can refer to?&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Thanks.</description>
            <author>Fazz</author>
            <category>Codemasters</category>
            <pubDate>Wed, 19 Mar 2014 15:36:58 +0800</pubDate>
        </item>
        <item>
            <title>How to use rear AUX?</title>
            <link>http://forum.lowyat.net/topic/2741575</link>
            <description>hi guys,&lt;br /&gt;&lt;br /&gt;need to know how to actually use the AUX mode from the rear of OEM HU unit in my gen2.&lt;br /&gt;it already got the blue 8-pin connector,&lt;br /&gt;but i find it hard to find an AUX cable that can fit in it.&lt;br /&gt;&lt;br /&gt;i oledi asked many car audio accessories, audio video &amp;amp; computer shop.&lt;br /&gt;they don have it.&lt;br /&gt;&lt;br /&gt;so, how to actually use it?&lt;br /&gt;or if u guys can give any guide or shop that have it.&lt;br /&gt;&lt;br /&gt;thanks.</description>
            <author>Fazz</author>
            <category>ICE</category>
            <pubDate>Tue, 19 Mar 2013 09:58:35 +0800</pubDate>
        </item>
        <item>
            <title>[WTB] Panda Internet Security 2013 for 3 users</title>
            <link>http://forum.lowyat.net/topic/2720185</link>
            <description>&lt;b&gt;Item(s):&lt;/b&gt; Panda Internet Security 2013 for 3 users&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Package includes:&lt;/b&gt; complete set retail box&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Dealing method:&lt;/b&gt; COD prefered&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Location:&lt;/b&gt; Klang Valley&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Contact method/details:&lt;/b&gt; PM&lt;br /&gt;&lt;br /&gt;nobody is selling box set for 3 users here as i search. so, requesting if there is someone who knows someone who sells them or you yourself sell them.&lt;br /&gt;prefer COD unless you are reputable here.&lt;br /&gt;&lt;br /&gt;thanks.</description>
            <author>Fazz</author>
            <category>Garage Sales Archive</category>
            <pubDate>Fri, 01 Mar 2013 15:13:29 +0800</pubDate>
        </item>
        <item>
            <title>enhanced on-access anti-malware protection</title>
            <link>http://forum.lowyat.net/topic/768420</link>
            <description>I try to googled this and it doen&amp;#39;t help, and to make it worst, no reply mail from technical support at Panda Security.&lt;br /&gt;&lt;br /&gt;I am using &lt;b&gt;Panda Antivirus + Firewall 2008&lt;/b&gt; with &lt;b&gt;Vista Ultimate&lt;/b&gt; and an application crash keep happening everytime I am on9.&lt;br /&gt;My computer freezes for more than 4 minutes.&lt;br /&gt;It is said to come from avengine.exe and gives off msg &amp;quot;enhanced on-access anti-malware protection has stop working&amp;quot;  &lt;!--emo&amp;:(--&gt;&lt;img src='http://static.lowyat.net/style_emoticons/default/sad.gif' border='0' style='vertical-align:middle' alt='sad.gif' /&gt;&lt;!--endemo--&gt; &lt;br /&gt;&lt;br /&gt;Before this,I&amp;#39;m using Panda Antivirus 2007 and it works fine.&lt;br /&gt;I requested help from Panda Security Malaysia but they only reply something like this:&lt;br /&gt;----------start mail----------------&lt;br /&gt;Hi fazz, sorry for the late reply. First thing that need u need to do with with vista is to disable windows defender and windows firewall. please do give us a call if u need more information. 03 21668984.&lt;br /&gt;--- Sent with System SEVEN - the new generation of mobile messaging&lt;br /&gt;-----------end mail----------------&lt;br /&gt;Horrible writing... &lt;!--emo&amp;:stars:--&gt;&lt;img src='http://static.lowyat.net/style_emoticons/default/rclxub.gif' border='0' style='vertical-align:middle' alt='rclxub.gif' /&gt;&lt;!--endemo--&gt; &lt;br /&gt;&lt;br /&gt;I&amp;#39;m brilliant enough to turn off windows defender &amp;amp; firewall when installing other antivirus, &lt;br /&gt;so requested another help from panda but till today, no reply.&lt;br /&gt;I tried calling but can&amp;#39;t always get through, stup answering machine.&lt;br /&gt;&lt;br /&gt;So,does anyone here know how to fix this?&lt;br /&gt;it&amp;#39;s nerves wrecking now since I always need the net.&lt;br /&gt;&lt;br /&gt;*Panda Antivirus + Firewall 2008 doesn&amp;#39;t seem to hav prob in XP.</description>
            <author>Fazz</author>
            <category>Security &amp;amp; Privacy</category>
            <pubDate>Sat, 16 Aug 2008 22:21:23 +0800</pubDate>
        </item>
        <item>
            <title>Calendar Script</title>
            <link>http://forum.lowyat.net/topic/742532</link>
            <description>Sorry if there is a similar topic, if there is, please point me.&lt;br /&gt;&lt;br /&gt;I got problem to view the calendar script that I created.&lt;br /&gt;&lt;!--SPOILER BEGIN--&gt;&lt;div class=&quot;spoilertop&quot; onClick=&quot;openClose('5fa43653c5db11d5e07845f242b7fd94')&quot; style=&quot;font-weight: bold&quot;&gt;&lt;u&gt;&amp;raquo; Click to show Spoiler - click again to hide... &amp;laquo;&lt;/u&gt;&lt;/div&gt;&lt;div class=&quot;spoilermain&quot; id=&quot;5fa43653c5db11d5e07845f242b7fd94&quot; style=&quot;display:none&quot;&gt;&lt;!--SPOILER END--&gt;&lt;!--c1--&gt;&lt;div class='codetop'&gt;CODE&lt;/div&gt;&lt;div class='codemain'&gt;&lt;!--ec1--&gt;&lt;br /&gt;&amp;#60;html&amp;#62;&lt;br /&gt;    &amp;#60;head&amp;#62;&amp;#60;/head&amp;#62;&lt;br /&gt;    &amp;#60;script language=&amp;#34;javascript&amp;#34;&amp;#62;&lt;br /&gt;        function day&amp;#40;day_name&amp;#41;{&lt;br /&gt;            document.write&amp;#40;&amp;#34;&amp;#60;td align=center width=25&amp;#62;&amp;#34;+day_name+&amp;#34;&amp;#60;/td&amp;#62;&amp;#34;&amp;#41;;&lt;br /&gt;        }&lt;br /&gt;        function count_day&amp;#40;length&amp;#41;{&lt;br /&gt;            for&amp;#40;var i=1;i&amp;#60;start_day;i++&amp;#41;{ //print the day that wasn&amp;#39;t on the calendar for the month&lt;br /&gt;                document.write&amp;#40;&amp;#34;&amp;#60;td&amp;#62; &amp;amp;nbsp;&amp;#34;&amp;#41;;&lt;br /&gt;            }&lt;br /&gt;            day = 1;&lt;br /&gt;            for&amp;#40;var i=start_day;i&amp;#60;length+2;i++&amp;#41;{ //print the day start from the month&amp;#39;s day&lt;br /&gt;                document.write&amp;#40;&amp;#34;&amp;#60;td align=center&amp;#62;&amp;#34;+day+&amp;#34;&amp;#60;/td&amp;#62;&amp;#34;&amp;#41;;&lt;br /&gt;                day++;&lt;br /&gt;            }&lt;br /&gt;            /*end = start_day + length;&lt;br /&gt;            for&amp;#40;var i=end;i&amp;#60;43;i++&amp;#41;{ //print the day that wasn&amp;#39;t on the calendar for the month&lt;br /&gt;                document.write&amp;#40;&amp;#34;&amp;#60;td&amp;#62; &amp;amp;nbsp;&amp;#34;&amp;#41;;&lt;br /&gt;            }*/&lt;br /&gt;        }&lt;br /&gt;        function month&amp;#40;month_name,month_length&amp;#41;{&lt;br /&gt;            /* determine which day the month start */&lt;br /&gt;            today = new Date&amp;#40;month_name+&amp;#34; 1, &amp;#34;+year&amp;#41;;&lt;br /&gt;            start_day = today.getDay&amp;#40;&amp;#41;;&lt;br /&gt;&lt;br /&gt;            document.write&amp;#40;&amp;#34;&amp;#60;tr valign=top&amp;#62;&amp;#60;td align=right&amp;#62;&amp;#60;b&amp;#62;&amp;#34;+month_name+&amp;#34;&amp;#60;/b&amp;#62;&amp;#60;/td&amp;#62;&amp;#34;&amp;#41;;&lt;br /&gt;            if&amp;#40;month_name &amp;#33;= null&amp;#41;{&lt;br /&gt;                count_day&amp;#40;month_length&amp;#41;;&lt;br /&gt;            }&lt;br /&gt;        }&lt;br /&gt;        function calendar&amp;#40;year&amp;#41;{&lt;br /&gt;            document.write&amp;#40;&amp;#34;&amp;#60;table border=2&amp;#62;&amp;#60;tr&amp;#62;&amp;#60;td colspan=5 align=center&amp;#62;&amp;#34;&amp;#41;;&lt;br /&gt;            document.write&amp;#40;&amp;#34;&amp;#60;b&amp;#62;&amp;#34; + year + &amp;#34;&amp;#60;/b&amp;#62;&amp;#60;/td&amp;#62;&amp;#60;/tr&amp;#62;&amp;#60;tr&amp;#62;&amp;#34;&amp;#41;;&lt;br /&gt;            document.write&amp;#40;&amp;#34;&amp;#60;td align=right&amp;#62;&amp;#60;b&amp;#62;Month&amp;#60;/b&amp;#62;&amp;#60;/td&amp;#62;&amp;#34;&amp;#41;;           &lt;br /&gt;            for &amp;#40;var i=1; i &amp;#60; 7 /*n value*/; i++&amp;#41;{ //print day on top; n = multiply by n&lt;br /&gt;                day&amp;#40;&amp;#34;M&amp;#34;&amp;#41;;&lt;br /&gt;                day&amp;#40;&amp;#34;T&amp;#34;&amp;#41;;&lt;br /&gt;                day&amp;#40;&amp;#34;W&amp;#34;&amp;#41;;&lt;br /&gt;                day&amp;#40;&amp;#34;T&amp;#34;&amp;#41;;&lt;br /&gt;                day&amp;#40;&amp;#34;F&amp;#34;&amp;#41;;&lt;br /&gt;                day&amp;#40;&amp;#34;S&amp;#34;&amp;#41;;&lt;br /&gt;                day&amp;#40;&amp;#34;S&amp;#34;&amp;#41;;&lt;br /&gt;            }&lt;br /&gt;            document.write&amp;#40;&amp;#34;&amp;#60;/tr&amp;#62;&amp;#60;tr&amp;#62;&amp;#34;&amp;#41;;&lt;br /&gt;            for &amp;#40;var i=1; i &amp;#60;= 1; i++&amp;#41;{&lt;br /&gt;                month&amp;#40;&amp;#34;January&amp;#34;,31&amp;#41;;&lt;br /&gt;                if &amp;#40;&amp;#40;&amp;#40;year % 4&amp;#41;==0&amp;#41; &amp;amp;&amp;amp; &amp;#40;&amp;#40;year % 100&amp;#41;&amp;#33;=0&amp;#41; || &amp;#40;&amp;#40;year % 400&amp;#41;==0&amp;#41;&amp;#41;{&lt;br /&gt;                    month&amp;#40;&amp;#34;February&amp;#34;, 29&amp;#41;;&lt;br /&gt;                } else { month&amp;#40;&amp;#34;February&amp;#34;, 28&amp;#41;; }&lt;br /&gt;                month&amp;#40;&amp;#34;March&amp;#34;,31&amp;#41;;&lt;br /&gt;                month&amp;#40;&amp;#34;April&amp;#34;,30&amp;#41;;&lt;br /&gt;                month&amp;#40;&amp;#34;May&amp;#34;,31&amp;#41;;&lt;br /&gt;                month&amp;#40;&amp;#34;June&amp;#34;,30&amp;#41;;&lt;br /&gt;                month&amp;#40;&amp;#34;July&amp;#34;,31&amp;#41;;&lt;br /&gt;                month&amp;#40;&amp;#34;August&amp;#34;,31&amp;#41;;&lt;br /&gt;                month&amp;#40;&amp;#34;September&amp;#34;,30&amp;#41;;&lt;br /&gt;                month&amp;#40;&amp;#34;October&amp;#34;,31&amp;#41;;&lt;br /&gt;                month&amp;#40;&amp;#34;November&amp;#34;,30&amp;#41;;&lt;br /&gt;                month&amp;#40;&amp;#34;Disember&amp;#34;,31&amp;#41;;&lt;br /&gt;            }&lt;br /&gt;            document.write&amp;#40;&amp;#34;&amp;#60;/tr&amp;#62;&amp;#34;&amp;#41;;&lt;br /&gt;        }&lt;br /&gt;    &amp;#60;/script&amp;#62;&lt;br /&gt;    &amp;#60;body&amp;#62;&lt;br /&gt;        &amp;#60;script language=&amp;#34;javascript&amp;#34;&amp;#62;&lt;br /&gt;            today = new Date&amp;#40;&amp;#41;;&lt;br /&gt;            year = today.getYear&amp;#40;&amp;#41;;&lt;br /&gt;            if &amp;#40;year &amp;#60; 2000&amp;#41;&lt;br /&gt;                year = year + 1900;&lt;br /&gt;            &lt;br /&gt;            /* calling calendar function */&lt;br /&gt;            calendar&amp;#40;year&amp;#41;;&lt;br /&gt;        &amp;#60;/script&amp;#62;&lt;br /&gt;    &amp;#60;/body&amp;#62;&lt;br /&gt;&amp;#60;/html&amp;#62;&lt;br /&gt;&lt;!--c2--&gt;&lt;/div&gt;&lt;!--ec2--&gt;&lt;!--SPOILER DIV--&gt;&lt;/div&gt;&lt;!--SPOILER DIV--&gt;&lt;br /&gt;This is the view&lt;br /&gt;&lt;!--SPOILER BEGIN--&gt;&lt;div class=&quot;spoilertop&quot; onClick=&quot;openClose('bb78bf5c6b8554792143f01e8346ab40')&quot; style=&quot;font-weight: bold&quot;&gt;&lt;u&gt;&amp;raquo; Click to show Spoiler - click again to hide... &amp;laquo;&lt;/u&gt;&lt;/div&gt;&lt;div class=&quot;spoilermain&quot; id=&quot;bb78bf5c6b8554792143f01e8346ab40&quot; style=&quot;display:none&quot;&gt;&lt;!--SPOILER END--&gt;&lt;br /&gt;&lt;img src='http://i6.photobucket.com/albums/y220/axetribe/Calendar.jpg' border='0' alt='user posted image' /&gt;&lt;br /&gt;&lt;!--SPOILER DIV--&gt;&lt;/div&gt;&lt;!--SPOILER DIV--&gt;&lt;br /&gt;As u can see, the date of the month doesn&amp;#39;t appeared as I want, either less or more. It is only limited till to thursday only.&lt;br /&gt;Seems like it followed the January only and Disember&amp;#39;s date doesn&amp;#39;t appear.&lt;br /&gt;&lt;br /&gt;This is just to share, I still got time to think, if it just a matter of logic. Maybe after it is completed, I&amp;#39;ll post it here.&lt;br /&gt;Pleased to hear experts or learners views here:</description>
            <author>Fazz</author>
            <category>Codemasters</category>
            <pubDate>Tue, 15 Jul 2008 00:33:02 +0800</pubDate>
        </item>
    </channel>
</rss>
