<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-2227766549193082651</id><updated>2011-11-28T07:51:18.905+07:00</updated><category term='snippet'/><category term='csv'/><category term='cron'/><category term='javascript'/><category term='java'/><category term='mysql'/><category term='php'/><category term='ajax'/><category term='cpanel'/><title type='text'>jaw Collection</title><subtitle type='html'>PHP, Javascript, AJAX, MySQL snippet
&lt;br&gt;
simple, easy to understand and ready to use for your website development...</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://jawaad.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2227766549193082651/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://jawaad.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Jawaad Alkaff</name><uri>http://www.blogger.com/profile/14957119931235646302</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://photos.friendster.com/photos/72/51/8231527/667917375m.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>26</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2227766549193082651.post-7521621232620468172</id><published>2008-08-22T00:24:00.004+07:00</published><updated>2008-08-22T00:52:19.732+07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='csv'/><category scheme='http://www.blogger.com/atom/ns#' term='mysql'/><category scheme='http://www.blogger.com/atom/ns#' term='php'/><title type='text'>CSV2MySQL convert from CSV file into MySQL database</title><content type='html'>How to convert from CSV file into MySQL database using PHP?&lt;br /&gt;Plus how to create a table and fields into database with PHP?&lt;br /&gt;Here it is..&lt;br /&gt;We need 3 files php, and 2 file jpg (the jpg is just for menu).&lt;br /&gt;&lt;br /&gt;index.php&lt;br /&gt;&lt;a href="http://jawaad.pastebin.com/f6399baf4"&gt;http://jawaad.pastebin.com/f6399baf4&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;upload_csv.php&lt;br /&gt;&lt;a href="http://jawaad.pastebin.com/f2c7bdbee"&gt;http://jawaad.pastebin.com/f2c7bdbee&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;create_table.php&lt;br /&gt;&lt;a href="http://jawaad.pastebin.com/f64b250cc"&gt;http://jawaad.pastebin.com/f64b250cc&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;And image files:&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_WpumbHjqSSY/SK2qfrVg-JI/AAAAAAAABbA/bZ22yw6EsMU/s1600-h/tableftJ.gif"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;" src="http://2.bp.blogspot.com/_WpumbHjqSSY/SK2qfrVg-JI/AAAAAAAABbA/bZ22yw6EsMU/s320/tableftJ.gif" border="0" alt=""id="BLOGGER_PHOTO_ID_5237029402887387282" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_WpumbHjqSSY/SK2qf6SksgI/AAAAAAAABbI/xQwHvGI6poA/s1600-h/tabrightJ.gif"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;" src="http://3.bp.blogspot.com/_WpumbHjqSSY/SK2qf6SksgI/AAAAAAAABbI/xQwHvGI6poA/s320/tabrightJ.gif" border="0" alt=""id="BLOGGER_PHOTO_ID_5237029406901580290" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2227766549193082651-7521621232620468172?l=jawaad.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jawaad.blogspot.com/feeds/7521621232620468172/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2227766549193082651&amp;postID=7521621232620468172' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2227766549193082651/posts/default/7521621232620468172'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2227766549193082651/posts/default/7521621232620468172'/><link rel='alternate' type='text/html' href='http://jawaad.blogspot.com/2008/08/csv2mysql-convert-from-csv-file-into.html' title='CSV2MySQL convert from CSV file into MySQL database'/><author><name>Jawaad Alkaff</name><uri>http://www.blogger.com/profile/14957119931235646302</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://photos.friendster.com/photos/72/51/8231527/667917375m.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_WpumbHjqSSY/SK2qfrVg-JI/AAAAAAAABbA/bZ22yw6EsMU/s72-c/tableftJ.gif' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2227766549193082651.post-8720381523505143293</id><published>2007-12-28T04:21:00.000+07:00</published><updated>2007-12-28T04:24:15.114+07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><title type='text'>Java hex2text convert</title><content type='html'>Here is the code for converting hex into a normal char.&lt;br /&gt;JAVA CODE:&lt;br /&gt;&lt;pre class="source"&gt;public static String hex2Text(String str){&lt;br /&gt;          if(str == null || str.trim().length() == 0)&lt;br /&gt;            return "";&lt;br /&gt;          str = str.trim();&lt;br /&gt;                  str = str.toLowerCase();  //ensures all input is lower case&lt;br /&gt;          if(str.matches("[^0-9a-f\\s]")){&lt;br /&gt;                /*&lt;br /&gt;                  User needs to be warned that their input is invalid&lt;br /&gt;                  Method must terminate&lt;br /&gt;                */&lt;br /&gt;                return "";  //Until proper exception can be written&lt;br /&gt;          }&lt;br /&gt;          StringTokenizer tokenizedStr = new StringTokenizer(str);&lt;br /&gt;          StringBuffer text = new StringBuffer();&lt;br /&gt;          while(tokenizedStr.hasMoreTokens()){&lt;br /&gt;                String hexString = tokenizedStr.nextToken();&lt;br /&gt;                int bytelen = hexString.length();&lt;br /&gt;                if(bytelen &gt; 4){&lt;br /&gt;                 //User needs to be told input is not valid&lt;br /&gt;                 return ""; //Until exception can be written.&lt;br /&gt;                }&lt;br /&gt;                int  decimal = hex2decimal(hexString);&lt;br /&gt;                int intValue = 0;&lt;br /&gt;                for(int i = 0;i &lt; strlen;++i){&lt;br /&gt;                  int oneOrZero = decimal % 10;&lt;br /&gt;                  decimal /= 10;&lt;br /&gt;                  intValue += Math.pow(2,i) * oneOrZero;&lt;br /&gt;                }//end for&lt;br /&gt;                char textEquivalent = (char) intValue;&lt;br /&gt;                text.append(textEquivalent);&lt;br /&gt;          }//end while&lt;br /&gt;          return text.toString();&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;        private static int hex2decimal(String hex){&lt;br /&gt;          int decimal = 0;&lt;br /&gt;          for(int i = hex.length() - 1;i &gt;= 0;--i){&lt;br /&gt;                int asciiValue = hex.charAt(i);&lt;br /&gt;                if(asciiValue &gt;= '0' &amp;&amp; asciiValue &lt;= '9')&lt;br /&gt;                  asciiValue -= 48;&lt;br /&gt;                else{&lt;br /&gt;                  asciiValue -= 87;&lt;br /&gt;            }&lt;br /&gt;                decimal += Math.pow(16,i) * asciiValue;&lt;br /&gt;          }//end for&lt;br /&gt;          return decimal;&lt;br /&gt;        }//end hex2decimal()&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2227766549193082651-8720381523505143293?l=jawaad.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jawaad.blogspot.com/feeds/8720381523505143293/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2227766549193082651&amp;postID=8720381523505143293' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2227766549193082651/posts/default/8720381523505143293'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2227766549193082651/posts/default/8720381523505143293'/><link rel='alternate' type='text/html' href='http://jawaad.blogspot.com/2007/12/java-hex2text-convert.html' title='Java hex2text convert'/><author><name>Jawaad Alkaff</name><uri>http://www.blogger.com/profile/14957119931235646302</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://photos.friendster.com/photos/72/51/8231527/667917375m.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2227766549193082651.post-2165150301631996130</id><published>2007-12-28T04:15:00.001+07:00</published><updated>2007-12-28T04:19:10.631+07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='php'/><title type='text'>Convert HEX2TEXT</title><content type='html'>Converting hex into a text or normal string.&lt;br /&gt;PHP CODE&lt;br /&gt;&lt;pre class="source"&gt;function hex2text($hexstr) {&lt;br /&gt; $hex = explode('%',$hexstr);&lt;br /&gt; array_shift($hex);&lt;br /&gt;    $str = '';&lt;br /&gt;    foreach($hex as $hexcode) {&lt;br /&gt;     $str .= chr(base_convert($hexcode, 16, 10));&lt;br /&gt;    }&lt;br /&gt;    return $str; &lt;br /&gt;}&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2227766549193082651-2165150301631996130?l=jawaad.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jawaad.blogspot.com/feeds/2165150301631996130/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2227766549193082651&amp;postID=2165150301631996130' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2227766549193082651/posts/default/2165150301631996130'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2227766549193082651/posts/default/2165150301631996130'/><link rel='alternate' type='text/html' href='http://jawaad.blogspot.com/2007/12/convert-hex2text.html' title='Convert HEX2TEXT'/><author><name>Jawaad Alkaff</name><uri>http://www.blogger.com/profile/14957119931235646302</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://photos.friendster.com/photos/72/51/8231527/667917375m.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2227766549193082651.post-3329674178107365444</id><published>2007-12-17T15:05:00.000+07:00</published><updated>2007-12-17T15:18:42.671+07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mysql'/><category scheme='http://www.blogger.com/atom/ns#' term='php'/><title type='text'>PHP insert blob and update blob MySQL</title><content type='html'>Here is how to insert file BLOB MySQL.&lt;br /&gt;PHP CODE:&lt;br /&gt;&lt;pre class="source"&gt;if($_POST[submit]){&lt;br /&gt;    $file_name = $_FILES['file']['name'];&lt;br /&gt;    $tmp_name  = $_FILES['file']['tmp_name'];&lt;br /&gt;    $file_size = $_FILES['file']['size'];&lt;br /&gt;    $file_type = $_FILES['file']['type'];&lt;br /&gt;    $fp = fopen($tmp_name, 'r');&lt;br /&gt;    $file_content = fread($fp, $file_size) or die("Error: cannot read file");&lt;br /&gt;    $file_content = mysql_real_escape_string($file_content) or die("Error: cannot read file");&lt;br /&gt;    fclose($fp);&lt;br /&gt;    // INSERT&lt;br /&gt;    $qu = "INSERT INTO `file`&lt;br /&gt;                (`file_content`,`file_name`,`file_type`,`file_size`)&lt;br /&gt;                VALUES&lt;br /&gt;                ('$content','$file_name','$file_type','$file_size')";&lt;br /&gt; $re = mysql_query($qu) or die ("Sorry Cant insert db!");&lt;br /&gt; echo $file_name." inserted succesfully to database";&lt;br /&gt;}&lt;br /&gt;echo "&lt; form method=\"post\" name=\"form1\" enctype=\"multipart/form-data\"&gt;";&lt;br /&gt;echo " &lt; input name=\"file\" type=\"file\"&gt;";&lt;br /&gt;echo " &lt; input name=\"submit\" type=\"submit\" value=\"Upload\"&gt;";&lt;br /&gt;echo "&lt; /form&gt;";&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2227766549193082651-3329674178107365444?l=jawaad.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jawaad.blogspot.com/feeds/3329674178107365444/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2227766549193082651&amp;postID=3329674178107365444' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2227766549193082651/posts/default/3329674178107365444'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2227766549193082651/posts/default/3329674178107365444'/><link rel='alternate' type='text/html' href='http://jawaad.blogspot.com/2007/12/php-insert-blob-and-update-blob-mysql.html' title='PHP insert blob and update blob MySQL'/><author><name>Jawaad Alkaff</name><uri>http://www.blogger.com/profile/14957119931235646302</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://photos.friendster.com/photos/72/51/8231527/667917375m.jpg'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2227766549193082651.post-3260751352516776235</id><published>2007-12-14T02:25:00.000+07:00</published><updated>2007-12-14T02:37:33.049+07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='snippet'/><category scheme='http://www.blogger.com/atom/ns#' term='mysql'/><category scheme='http://www.blogger.com/atom/ns#' term='php'/><title type='text'>How to Protect from double posting insert MySQL</title><content type='html'>Submit once even the visitor is refresh the page from browser.&lt;br /&gt;Here is the way to protect.&lt;br /&gt;Use a SESSION.&lt;br /&gt;1. Set a session in the form page&lt;br /&gt;&lt;pre class="source"&gt;session_start();&lt;br /&gt;$_SESSION[post_only_once] = 1;&lt;br /&gt;echo "&lt;br /&gt; &lt; form method=\"post\"&gt;&lt;br /&gt;  Name &lt; input type=\"text\" name=\"name\"&gt;&lt;br /&gt;  &lt; input type=\"submit\" value=\"submit\" name=\"submit\"&gt;&lt;br /&gt; &lt; /form&gt;&lt;br /&gt;";&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;2. Check the session before doing INSERT into MySQL.&lt;br /&gt;&lt;pre class="source"&gt;session_start();&lt;br /&gt;if($_SESSION[post_only_once] == 1) {&lt;br /&gt;  // here doing insert to mysql&lt;br /&gt;}&lt;br /&gt;unset($_SESSION[post_only_once]); // remove the session after insert&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2227766549193082651-3260751352516776235?l=jawaad.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jawaad.blogspot.com/feeds/3260751352516776235/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2227766549193082651&amp;postID=3260751352516776235' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2227766549193082651/posts/default/3260751352516776235'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2227766549193082651/posts/default/3260751352516776235'/><link rel='alternate' type='text/html' href='http://jawaad.blogspot.com/2007/12/how-to-protect-from-double-posting.html' title='How to Protect from double posting insert MySQL'/><author><name>Jawaad Alkaff</name><uri>http://www.blogger.com/profile/14957119931235646302</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://photos.friendster.com/photos/72/51/8231527/667917375m.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2227766549193082651.post-7336553464952736135</id><published>2007-12-14T00:22:00.001+07:00</published><updated>2007-12-14T00:22:40.359+07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='snippet'/><category scheme='http://www.blogger.com/atom/ns#' term='mysql'/><category scheme='http://www.blogger.com/atom/ns#' term='php'/><title type='text'>How to connect MySQL from PHP</title><content type='html'>&lt;pre class="source"&gt;$link = mysql_connect('localhost', 'mysql_user', 'mysql_password');&lt;br /&gt;if (!$link) {&lt;br /&gt;    die('Could not connect: ' . mysql_error());&lt;br /&gt;}&lt;br /&gt;echo 'Connected successfully';&lt;br /&gt;mysql_close($link);&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2227766549193082651-7336553464952736135?l=jawaad.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jawaad.blogspot.com/feeds/7336553464952736135/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2227766549193082651&amp;postID=7336553464952736135' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2227766549193082651/posts/default/7336553464952736135'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2227766549193082651/posts/default/7336553464952736135'/><link rel='alternate' type='text/html' href='http://jawaad.blogspot.com/2007/12/how-to-connect-mysql-from-php.html' title='How to connect MySQL from PHP'/><author><name>Jawaad Alkaff</name><uri>http://www.blogger.com/profile/14957119931235646302</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://photos.friendster.com/photos/72/51/8231527/667917375m.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2227766549193082651.post-7527418720962483160</id><published>2007-12-13T00:17:00.000+07:00</published><updated>2007-12-13T00:52:30.558+07:00</updated><title type='text'>PHP br2nl function</title><content type='html'>PHP CODE&lt;br /&gt;&lt;textarea cols="100%" rows=2 class="source" readonly&gt;function br2nl($text) {    return  preg_replace('/&lt;br\\s*?\/??&gt;/i', '', $text);}&lt;/textarea&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2227766549193082651-7527418720962483160?l=jawaad.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jawaad.blogspot.com/feeds/7527418720962483160/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2227766549193082651&amp;postID=7527418720962483160' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2227766549193082651/posts/default/7527418720962483160'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2227766549193082651/posts/default/7527418720962483160'/><link rel='alternate' type='text/html' href='http://jawaad.blogspot.com/2007/12/php-br2nl-function.html' title='PHP br2nl function'/><author><name>Jawaad Alkaff</name><uri>http://www.blogger.com/profile/14957119931235646302</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://photos.friendster.com/photos/72/51/8231527/667917375m.jpg'/></author><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2227766549193082651.post-8549296418261891209</id><published>2007-12-12T23:47:00.000+07:00</published><updated>2007-12-13T00:53:00.064+07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='javascript'/><title type='text'>How to detect browser no flash give alternate with gif</title><content type='html'>Let see, we have one file .swf and one file .gif and we want display the flash file first, and if the browser doesn't support, it will display the .gif version.&lt;br /&gt;Here is the code.&lt;br /&gt;&lt;br /&gt;JAVASCRIPT CODE:&lt;br /&gt;&lt;textarea class="source" cols="100%" rows=20 readonly&gt;&lt;br /&gt;&lt;object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://active.macromedia.com/flash/cabs/swflash.cab#version=3,0,0,11" name="sw" id="sw" height="164" width="165"&gt;&lt;br /&gt;&lt;param name="movie" value="file.swf"&gt;&lt;br /&gt;&lt;param name="quality" value="high"&gt;&lt;br /&gt;&lt;param name="Loop" value="true"&gt;&lt;br /&gt;&lt;param name="play" value="true"&gt;&lt;br /&gt;&lt;param name="wmode" value="opaque"&gt;&lt;br /&gt;&lt;param name="allowScriptAccess" value="sameDomain"&gt;&lt;br /&gt;&lt;param name="bgcolor" value="#000000"&gt;&lt;br /&gt;&lt;br /&gt;&lt;!-- begin the JavaScript --&gt;&lt;br /&gt;&lt;script language="JavaScript"&gt;&lt;br /&gt;&lt;br /&gt;//If this browser understands the mimeTypes property and recognizes the MIME Type //"application/x-shockwave-flash"...&lt;br /&gt;if (navigator.mimeTypes &amp;&amp; navigator.mimeTypes["application/x-shockwave-flash"]){&lt;br /&gt;&lt;br /&gt;   //...write out the following &lt;EMBED&gt; tag into the document.&lt;br /&gt;   document.write('&lt;embed src="file.swf" quality="high" bgcolor="#000000" width="165" height="164" name="pmi_flash" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" LOOP="true" PLAY="true"  wmode="opaque" /&gt;');&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;//Otherwise,...&lt;br /&gt;else {&lt;br /&gt;&lt;br /&gt;   //...write out the following &lt;IMG&gt; tag into the document. The image need&lt;br /&gt;   //not be the same size as the Flash Player movie, but it may help you lay out the&lt;br /&gt;   //page if you can predict the size of the object reliably.&lt;br /&gt;   document.write('&lt;IMG SRC="file.gif" &gt;');&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/script&gt;&lt;embed src="file.swf" quality="high" bgcolor="#000000" name="pmi_flash" allowscriptaccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" loop="true" play="true" wmode="opaque" align="middle" height="164" width="165"&gt;&lt;br /&gt;&lt;br /&gt;&lt;!-- Close the OBJECT tag. --&gt; &lt;br /&gt;&lt;/object&gt;&lt;br /&gt;&lt;/textarea&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2227766549193082651-8549296418261891209?l=jawaad.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jawaad.blogspot.com/feeds/8549296418261891209/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2227766549193082651&amp;postID=8549296418261891209' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2227766549193082651/posts/default/8549296418261891209'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2227766549193082651/posts/default/8549296418261891209'/><link rel='alternate' type='text/html' href='http://jawaad.blogspot.com/2007/12/how-to-detect-browser-no-flash-give.html' title='How to detect browser no flash give alternate with gif'/><author><name>Jawaad Alkaff</name><uri>http://www.blogger.com/profile/14957119931235646302</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://photos.friendster.com/photos/72/51/8231527/667917375m.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2227766549193082651.post-4723308724218802233</id><published>2007-12-12T02:10:00.000+07:00</published><updated>2007-12-13T00:55:23.760+07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='php'/><title type='text'>How to pick a complex string from MySQL</title><content type='html'>We can pick a string from MySQL database with various style.&lt;br /&gt;Example, the value from database is &lt;span style="font-weight:bold;"&gt;NCABZ-2007&lt;/span&gt;&lt;br /&gt;And we want only view &lt;span style="font-weight:bold;"&gt;ABZ&lt;/span&gt;&lt;br /&gt;Here is the CODE.&lt;br /&gt;PHP CODE:&lt;br /&gt;&lt;code class="prettyprint" id="PHP"&gt;&lt;pre class="source"&gt;$data = "NCABZ-2007";&lt;br /&gt;$new_data = substr($data, 2 , 3);&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;Explain:&lt;br /&gt;2 = number of data from the left (N=0, C=1, A=2, B=3, etc.)&lt;br /&gt;3 = how much char we want to display&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2227766549193082651-4723308724218802233?l=jawaad.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jawaad.blogspot.com/feeds/4723308724218802233/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2227766549193082651&amp;postID=4723308724218802233' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2227766549193082651/posts/default/4723308724218802233'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2227766549193082651/posts/default/4723308724218802233'/><link rel='alternate' type='text/html' href='http://jawaad.blogspot.com/2007/12/how-to-pick-complex-string-from-mysql.html' title='How to pick a complex string from MySQL'/><author><name>Jawaad Alkaff</name><uri>http://www.blogger.com/profile/14957119931235646302</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://photos.friendster.com/photos/72/51/8231527/667917375m.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2227766549193082651.post-3903653216710804771</id><published>2007-12-11T22:29:00.000+07:00</published><updated>2007-12-12T01:12:44.266+07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='snippet'/><category scheme='http://www.blogger.com/atom/ns#' term='php'/><title type='text'>PHP Cut string from MySQL</title><content type='html'>Shorting or cutting the text string from long char into new max lenght.&lt;br /&gt;Here is the code.&lt;br /&gt;PHP CODE&lt;br /&gt;&lt;pre class="source"&gt;function short_string ($var, $len){    &lt;br /&gt; if (strlen ($var) &lt; $len) {&lt;br /&gt;  return $var;&lt;br /&gt; }&lt;br /&gt; if (preg_match ("/(.{1,$len})\s/", $var, $match)) {&lt;br /&gt;  return $match [1] . "..";&lt;br /&gt; } else {&lt;br /&gt;  return substr ($var, 0, $len) . ".."; &lt;br /&gt; }&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;How to use?&lt;br /&gt;PHPCODE&lt;br /&gt;&lt;pre class="source"&gt;short_string ("Very very long text is here blablabla", 14);&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;The Result is:&lt;br /&gt;&lt;pre class="source"&gt;Very very long..&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2227766549193082651-3903653216710804771?l=jawaad.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jawaad.blogspot.com/feeds/3903653216710804771/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2227766549193082651&amp;postID=3903653216710804771' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2227766549193082651/posts/default/3903653216710804771'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2227766549193082651/posts/default/3903653216710804771'/><link rel='alternate' type='text/html' href='http://jawaad.blogspot.com/2007/12/php-short-string-from-mysql.html' title='PHP Cut string from MySQL'/><author><name>Jawaad Alkaff</name><uri>http://www.blogger.com/profile/14957119931235646302</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://photos.friendster.com/photos/72/51/8231527/667917375m.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2227766549193082651.post-5299969869404292590</id><published>2007-12-11T20:43:00.000+07:00</published><updated>2007-12-11T21:53:59.800+07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='snippet'/><category scheme='http://www.blogger.com/atom/ns#' term='mysql'/><category scheme='http://www.blogger.com/atom/ns#' term='php'/><title type='text'>Insert and Select doing in MySQL from SQL Injection</title><content type='html'>Here is the save way from RSS Attack SQL Injection.&lt;br /&gt;Get all variable $_POST or $_GET or $_REQUEST or $_SESSION convert into mysql_real_escape string filter, you do not need one by one for all type variable.&lt;br /&gt;here is code.&lt;br /&gt;PHP CODE&lt;br /&gt;&lt;pre class="source"&gt;$_POST  = array_map('mysql_real_escape_string', $_POST);&lt;br /&gt;$_SESSION  = array_map('mysql_real_escape_string', $_SESSION);&lt;br /&gt;$_COOKIE  = array_map('mysql_real_escape_string', $_COOKIE);&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;And here is to view back or mysql_unescape_string or mysql_real_unescpae_string or whatever you want to.&lt;br /&gt;PHP CODE&lt;br /&gt;&lt;pre class="source"&gt;function mysql_real_unescape_string($string){&lt;br /&gt;$string=trim($string);&lt;br /&gt;$string=str_replace("\\","",str_replace("\$","",$string));&lt;br /&gt;   return $string;&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2227766549193082651-5299969869404292590?l=jawaad.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jawaad.blogspot.com/feeds/5299969869404292590/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2227766549193082651&amp;postID=5299969869404292590' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2227766549193082651/posts/default/5299969869404292590'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2227766549193082651/posts/default/5299969869404292590'/><link rel='alternate' type='text/html' href='http://jawaad.blogspot.com/2007/12/save-and-vie-doing-in-mysql-from-sql.html' title='Insert and Select doing in MySQL from SQL Injection'/><author><name>Jawaad Alkaff</name><uri>http://www.blogger.com/profile/14957119931235646302</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://photos.friendster.com/photos/72/51/8231527/667917375m.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2227766549193082651.post-7509788561808775174</id><published>2007-12-11T19:26:00.000+07:00</published><updated>2007-12-11T20:58:23.832+07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='snippet'/><category scheme='http://www.blogger.com/atom/ns#' term='php'/><title type='text'>Convert TEXT2HEX</title><content type='html'>Here is a php script snippet to convert string text to hex decimal code.&lt;br /&gt;PHP CODE&lt;br /&gt;&lt;pre class="source"&gt;function text2hex($string) {&lt;br /&gt; $hex = '';&lt;br /&gt; $len =&lt;br /&gt; strlen($string) ;&lt;br /&gt; for ($i = 0; $i &lt; $len; $i++) {&lt;br /&gt;  $hex .=&lt;br /&gt;  str_pad(dechex(ord($string[$i])), 2, 0, STR_PAD_LEFT);&lt;br /&gt; }&lt;br /&gt; return $hex;&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2227766549193082651-7509788561808775174?l=jawaad.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jawaad.blogspot.com/feeds/7509788561808775174/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2227766549193082651&amp;postID=7509788561808775174' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2227766549193082651/posts/default/7509788561808775174'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2227766549193082651/posts/default/7509788561808775174'/><link rel='alternate' type='text/html' href='http://jawaad.blogspot.com/2007/12/convert-text2hex.html' title='Convert TEXT2HEX'/><author><name>Jawaad Alkaff</name><uri>http://www.blogger.com/profile/14957119931235646302</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://photos.friendster.com/photos/72/51/8231527/667917375m.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2227766549193082651.post-1383041726586300408</id><published>2007-11-13T18:04:00.000+07:00</published><updated>2008-12-09T12:59:36.945+07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='php'/><title type='text'>QuiXplorer - web-based file-management</title><content type='html'>The best Filemanagement system PHP what i choose is QuiXplorer.&lt;br /&gt;Here is the detail from contributor:&lt;br /&gt;&lt;br /&gt;QuiXplorer is a multi-user, web-based file-manager.&lt;br /&gt;It allows you to manage and/or share files over the internet,       or an intranet.&lt;br /&gt;&lt;br /&gt;      The latest version provides the following functionality:       &lt;ul&gt;&lt;li&gt;Browsing directories; showing names, file sizes,&lt;br /&gt;file types, modification times and permissions&lt;/li&gt;&lt;li&gt;Copying, moving and deleting files&lt;/li&gt;&lt;li&gt;Searching for files and directories&lt;/li&gt;&lt;li&gt;Uploading and downloading files&lt;/li&gt;&lt;li&gt;Editing text files&lt;/li&gt;&lt;li&gt;Creating new files and directories&lt;/li&gt;&lt;li&gt;Changing file permissions&lt;/li&gt;&lt;/ul&gt;             In multi-user mode:       &lt;ul&gt;&lt;li&gt;Users are authenticated.&lt;/li&gt;&lt;li&gt;Administrators can manage users.&lt;/li&gt;&lt;li&gt;Each user has his/her own settings.&lt;/li&gt;&lt;/ul&gt;        QuiXplorer is currently available in       English, Dutch, German, French, Spanish and Russian.&lt;br /&gt;&lt;br /&gt;Screenshoot:&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_WpumbHjqSSY/RzmFtQu8VKI/AAAAAAAABYg/njwhcpJpViM/s1600-h/screenshot.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://1.bp.blogspot.com/_WpumbHjqSSY/RzmFtQu8VKI/AAAAAAAABYg/njwhcpJpViM/s320/screenshot.jpg" alt="" id="BLOGGER_PHOTO_ID_5132280262997857442" border="0" /&gt;&lt;/a&gt;Source: &lt;a href="http://quixplorer.sourceforge.net/"&gt;http://quixplorer.sourceforge.net&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2227766549193082651-1383041726586300408?l=jawaad.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jawaad.blogspot.com/feeds/1383041726586300408/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2227766549193082651&amp;postID=1383041726586300408' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2227766549193082651/posts/default/1383041726586300408'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2227766549193082651/posts/default/1383041726586300408'/><link rel='alternate' type='text/html' href='http://jawaad.blogspot.com/2007/11/quixplorer-web-based-file-management.html' title='QuiXplorer - web-based file-management'/><author><name>Jawaad Alkaff</name><uri>http://www.blogger.com/profile/14957119931235646302</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://photos.friendster.com/photos/72/51/8231527/667917375m.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_WpumbHjqSSY/RzmFtQu8VKI/AAAAAAAABYg/njwhcpJpViM/s72-c/screenshot.jpg' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2227766549193082651.post-5999250531314107952</id><published>2007-11-13T17:26:00.000+07:00</published><updated>2007-11-13T17:33:04.704+07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='javascript'/><category scheme='http://www.blogger.com/atom/ns#' term='php'/><title type='text'>TinyMCPUK - TinyMCE with file/image manager</title><content type='html'>&lt;div class="level1"&gt;  &lt;p&gt;The Best WYSIWYG now for me is TinyMCPUK.&lt;br /&gt;Reason:&lt;br /&gt;1. Small file size&lt;br /&gt;2. Complete Editor&lt;br /&gt;3. Image Manager and Image Editor&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Here is the detail information from the contributor:&lt;br /&gt;&lt;/p&gt;&lt;p&gt;TinyMCPUK brings you the powerful TinyMCE plus the MCPUK file manager and ImageManager strictly integrated together. &lt;/p&gt;  &lt;/div&gt;  &lt;h2&gt;&lt;a name="details" id="details"&gt;Details&lt;/a&gt;&lt;/h2&gt; &lt;div class="level2"&gt;  &lt;p&gt;  TinyFCK package contains: &lt;/p&gt; &lt;ul&gt;&lt;li class="level1"&gt;&lt;div class="li"&gt; a TinyMCE release (absolutely not patched, this is the original TinyMCE)&lt;/div&gt; &lt;/li&gt;&lt;li class="level1"&gt;&lt;div class="li"&gt; a patched version of Martin Kronstad’s MCPUK/ImageManager integration&lt;/div&gt; &lt;/li&gt;&lt;li class="level1"&gt;&lt;div class="li"&gt; an example documenting configuration&lt;/div&gt; &lt;/li&gt;&lt;/ul&gt;  &lt;p&gt;   TinyKCPUK is only available for &lt;acronym title="Hypertext Preprocessor"&gt;PHP&lt;/acronym&gt;. &lt;/p&gt;  &lt;/div&gt;  &lt;h2&gt;&lt;a name="screenshots" id="screenshots"&gt;Screenshots&lt;/a&gt;&lt;/h2&gt; &lt;div class="level2"&gt;  &lt;p&gt;  &lt;a target="_blank" href="http://p4a.crealabsfoundation.org/_media/tinyfck:tinymcpuk1.png?id=tinymcpuk&amp;amp;cache=cache" class="media" title="tinyfck:tinymcpuk1.png"&gt;&lt;img src="http://p4a.crealabsfoundation.org/_media/tinyfck:tinymcpuk1.png?w=200&amp;amp;h=&amp;amp;cache=cache" class="media" alt="" width="200" /&gt;&lt;/a&gt; &lt;a target="_blank" href="http://p4a.crealabsfoundation.org/_media/tinyfck:tinymcpuk2.png?id=tinymcpuk&amp;amp;cache=cache" class="media" title="tinyfck:tinymcpuk2.png"&gt;&lt;img src="http://p4a.crealabsfoundation.org/_media/tinyfck:tinymcpuk2.png?w=200&amp;amp;h=&amp;amp;cache=cache" class="media" alt="" width="200" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;/div&gt;  &lt;h2&gt;&lt;a name="download" id="download"&gt;Download&lt;/a&gt;&lt;/h2&gt; &lt;div class="level2"&gt;  &lt;p&gt;  TinyMCPUK 0.1 is updated with TinyMCE 2.0.6.1.  &lt;/p&gt; &lt;ul&gt;&lt;li class="level1"&gt;&lt;div class="li"&gt; &lt;a target="_blank" href="http://prdownloads.sourceforge.net/p4a/tinymcpuk-0.1.tar.gz?download" class="urlextern" title="http://prdownloads.sourceforge.net/p4a/tinymcpuk-0.1.tar.gz?download"&gt;tinymcpuk-0.1.tar.gz&lt;/a&gt;&lt;/div&gt; &lt;/li&gt;&lt;li class="level1"&gt;&lt;div class="li"&gt; &lt;a target="_blank" href="http://prdownloads.sourceforge.net/p4a/tinymcpuk-0.1.zip?download" class="urlextern" title="http://prdownloads.sourceforge.net/p4a/tinymcpuk-0.1.zip?download"&gt;tinymcpuk-0.1.zip&lt;/a&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;Source: http://p4a.crealabsfoundation.org/tinymcpuk&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2227766549193082651-5999250531314107952?l=jawaad.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jawaad.blogspot.com/feeds/5999250531314107952/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2227766549193082651&amp;postID=5999250531314107952' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2227766549193082651/posts/default/5999250531314107952'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2227766549193082651/posts/default/5999250531314107952'/><link rel='alternate' type='text/html' href='http://jawaad.blogspot.com/2007/11/tinymcpuk-tinymce-with-fileimage.html' title='TinyMCPUK - TinyMCE with file/image manager'/><author><name>Jawaad Alkaff</name><uri>http://www.blogger.com/profile/14957119931235646302</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://photos.friendster.com/photos/72/51/8231527/667917375m.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2227766549193082651.post-5393626124184649801</id><published>2007-11-05T13:52:00.000+07:00</published><updated>2007-11-05T13:59:00.641+07:00</updated><title type='text'>PHP member signup script using mysql</title><content type='html'>The simple and powerfull User Member System.&lt;br /&gt;Detail:&lt;br /&gt;&lt;blockquote&gt;Are you creating a signup form for your visitors ? You must have seen many sign up forms through out the Internet. Sites asking you for free signup or paid signup where they keep you waiting until you pay. Through signup webmasters keep a record of the visitors address, profile and other details, so every time the visitor need not fill all the details for every product or service it order through the website.&lt;br /&gt;We will use some basic checking or validation to ensure all required info are filled by the visitor. We will also keep some optional fields in the form. As we will be developing this script with some basic requirements, you can expand it further as per your need. We will try to include all type of form components so you will learn how to handle them in different situation. We will be using MySQL database for storing the data so you must ensure that mysql_connection, database set-up etc are working perfectly..&lt;br /&gt;&lt;/blockquote&gt;Source &amp;amp; Download link:&lt;br /&gt;http://www.plus2net.com/php_tutorial/php_signup.php&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2227766549193082651-5393626124184649801?l=jawaad.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jawaad.blogspot.com/feeds/5393626124184649801/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2227766549193082651&amp;postID=5393626124184649801' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2227766549193082651/posts/default/5393626124184649801'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2227766549193082651/posts/default/5393626124184649801'/><link rel='alternate' type='text/html' href='http://jawaad.blogspot.com/2007/11/php-member-signup-script-using-mysql.html' title='PHP member signup script using mysql'/><author><name>Jawaad Alkaff</name><uri>http://www.blogger.com/profile/14957119931235646302</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://photos.friendster.com/photos/72/51/8231527/667917375m.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2227766549193082651.post-240195873461546840</id><published>2007-07-27T13:56:00.000+07:00</published><updated>2007-07-27T14:04:00.576+07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='php'/><title type='text'>Image Resize PHP use GD and create seperate file thumb</title><content type='html'>&lt;strong&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-weight: normal;font-family:verdana;" &gt;This is simple ready to use.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: normal;font-family:verdana;" &gt;Image Resize PHP use GD and create seperate file thumb.&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;span style=";font-family:verdana;font-size:85%;"  &gt; And insert into database with id filename, like: 1.jpg or 2.gif, and so on.&lt;br /&gt;Btw, take a look at the comment, it is clear enaugh to understand.&lt;br /&gt;&lt;br /&gt;Link: &lt;a href="http://www.nusansifor.com/f/showthread.php?t=107"&gt;http://www.nusansifor.com/f/showthread.php?t=107&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2227766549193082651-240195873461546840?l=jawaad.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jawaad.blogspot.com/feeds/240195873461546840/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2227766549193082651&amp;postID=240195873461546840' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2227766549193082651/posts/default/240195873461546840'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2227766549193082651/posts/default/240195873461546840'/><link rel='alternate' type='text/html' href='http://jawaad.blogspot.com/2007/07/image-resize-php-use-gd-and-create.html' title='Image Resize PHP use GD and create seperate file thumb'/><author><name>Jawaad Alkaff</name><uri>http://www.blogger.com/profile/14957119931235646302</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://photos.friendster.com/photos/72/51/8231527/667917375m.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2227766549193082651.post-3678300055851097436</id><published>2007-07-13T16:35:00.000+07:00</published><updated>2007-07-13T17:04:20.593+07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='php'/><title type='text'>Newsletter free, very simple, easy, ready to use</title><content type='html'>&lt;span style="font-size:85%;"&gt;&lt;span style="font-family: verdana;"&gt;News letter script with PHP and simple text flat file txt.&lt;br /&gt;Very simple newletter script free that i choose is this link: &lt;a href="http://www.trap17.com/index.php/php-simple-newsletter-script_t25586.html"&gt;Newsletter Script&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2227766549193082651-3678300055851097436?l=jawaad.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jawaad.blogspot.com/feeds/3678300055851097436/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2227766549193082651&amp;postID=3678300055851097436' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2227766549193082651/posts/default/3678300055851097436'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2227766549193082651/posts/default/3678300055851097436'/><link rel='alternate' type='text/html' href='http://jawaad.blogspot.com/2007/07/newsletter-free-very-simple-easy-ready.html' title='Newsletter free, very simple, easy, ready to use'/><author><name>Jawaad Alkaff</name><uri>http://www.blogger.com/profile/14957119931235646302</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://photos.friendster.com/photos/72/51/8231527/667917375m.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2227766549193082651.post-731259482273259850</id><published>2007-07-04T21:09:00.000+07:00</published><updated>2007-07-04T21:44:19.769+07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mysql'/><category scheme='http://www.blogger.com/atom/ns#' term='php'/><title type='text'>PHP Unlimited sub categories</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://www.phpclasses.org/browse/view/image/file/11937/name/class_shot.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px;" src="http://www.phpclasses.org/browse/view/image/file/11937/name/class_shot.jpg" alt="" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style=";font-family:verdana;font-size:85%;"  &gt;The best Unlimited sub categories, I choose this one by &lt;/span&gt;&lt;span style=";font-family:verdana;font-size:85%;"  &gt;Shadi Ali (Jan/15/2006).&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-family:verdana;font-size:85%;"  &gt;The coding is &lt;/span&gt;&lt;span style=";font-family:verdana;font-size:85%;"  &gt;simple, easy to understand and ready to use.&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-family:verdana;font-size:85%;"  &gt;&lt;br /&gt;&lt;br /&gt;Enjoy...&lt;br /&gt;This script use: PHP and MySQL database.&lt;br /&gt;URL: http://www.phpclasses.org/browse/package/2742.html&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2227766549193082651-731259482273259850?l=jawaad.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jawaad.blogspot.com/feeds/731259482273259850/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2227766549193082651&amp;postID=731259482273259850' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2227766549193082651/posts/default/731259482273259850'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2227766549193082651/posts/default/731259482273259850'/><link rel='alternate' type='text/html' href='http://jawaad.blogspot.com/2007/07/php-unlimited-sub-categories.html' title='PHP Unlimited sub categories'/><author><name>Jawaad Alkaff</name><uri>http://www.blogger.com/profile/14957119931235646302</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://photos.friendster.com/photos/72/51/8231527/667917375m.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2227766549193082651.post-3439566161704771704</id><published>2007-07-04T20:05:00.000+07:00</published><updated>2007-07-11T21:55:47.287+07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='cpanel'/><category scheme='http://www.blogger.com/atom/ns#' term='php'/><category scheme='http://www.blogger.com/atom/ns#' term='cron'/><title type='text'>Cron job working via cpanel</title><content type='html'>&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:verdana;"&gt;How to run the php file from cron job via cpanel?&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;Here it is:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;1. login to your cpanel&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;2. click cron icon&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;3. click standar&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;4. enter your email address for reporting if the cron is failed&lt;br /&gt;5. choose the time what you want&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;6. enter the command, it depends on your server hosting.&lt;br /&gt;&lt;br /&gt;the command should be like this:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;curl -s -o /dev/null http://yourdomain.com/your_script.php&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;&lt;br /&gt;if curl is disable form your hosting service, you can use another way, with this:&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;l&lt;span style="color: rgb(204, 0, 0);"&gt;ynx -dump http://&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);font-size:85%;" &gt;&lt;span style="font-family:verdana;"&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;yourdomain.com/your_script.php&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:verdana;"&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;&lt;span style="color: rgb(204, 0, 0);"&gt; &gt; /dev /null&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:verdana;"&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;if curl and lynx is disable form your hosting service, you can use another way, with this:&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);font-size:85%;" &gt;&lt;span style="font-family:verdana;"&gt;/usr/bin/wget -O - /home/your_username/public_html/script.php&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;or&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:verdana;"&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;&lt;span style="color: rgb(153, 51, 0);"&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;GET http://&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);font-size:85%;" &gt;&lt;span style="font-family:verdana;"&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;yourdomain.com/your_script.php&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:verdana;"&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;&lt;span style="color: rgb(204, 0, 0);"&gt; &gt; /dev /null&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:verdana;"&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;if curl, lynx and wget is disable form your hosting service, you can use another way, with this:&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:verdana;"&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;in the your_script.php file put this at the top the first line before anything:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;!#/usr/bin/php&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;and use this cron command&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;php -f /home/your_username/public_html/your_script.php&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;note:&lt;br /&gt;file your_script.php should chmod 755&lt;br /&gt;and the /home/your_username/ is your path on server.&lt;br /&gt;&lt;br /&gt;if you have still problem, like "&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:verdana;"&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;&lt;span style="color: rgb(0, 0, 0);"&gt; No input file specified.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:verdana;"&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;&lt;span style="color: rgb(0, 0, 0);"&gt; ", please try this:&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:verdana;"&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;links http://yourdomain.com/your_script.php&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:verdana;"&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;&lt;br /&gt;7. save it&lt;br /&gt;&lt;br /&gt;done...&lt;br /&gt;if you have error, pls let me know, welcome to leave comment here..&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2227766549193082651-3439566161704771704?l=jawaad.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jawaad.blogspot.com/feeds/3439566161704771704/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2227766549193082651&amp;postID=3439566161704771704' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2227766549193082651/posts/default/3439566161704771704'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2227766549193082651/posts/default/3439566161704771704'/><link rel='alternate' type='text/html' href='http://jawaad.blogspot.com/2007/07/cron-job-working-via-cpanel.html' title='Cron job working via cpanel'/><author><name>Jawaad Alkaff</name><uri>http://www.blogger.com/profile/14957119931235646302</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://photos.friendster.com/photos/72/51/8231527/667917375m.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2227766549193082651.post-4264169133970645225</id><published>2007-07-04T11:56:00.000+07:00</published><updated>2007-07-04T12:00:47.742+07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='javascript'/><title type='text'>My Editor Wysiwyg ?</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://xinha.python-hosting.com/trac/logo.jpg"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 115px; height: 119px;" src="http://xinha.python-hosting.com/trac/logo.jpg" alt="" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;I choose for WYSIWYG Editor for web, the best and free is:&lt;br /&gt;http://xinha.python-hosting.com&lt;br /&gt;&lt;br /&gt;Here is some description from the web:&lt;br /&gt;&lt;/span&gt;&lt;p style="font-family: verdana;"&gt;&lt;span style="font-size:85%;"&gt; Xinha (pronounced like &lt;a class="ext-link" title="http://images.google.co.nz/images?q=xena&amp;hl=en&amp;amp;btnG=Google+Search" href="http://images.google.co.nz/images?q=xena&amp;hl=en&amp;amp;btnG=Google+Search"&gt;Xena, the Warrior Princess&lt;/a&gt;) is a powerful WYSIWYG HTML editor component that works in Mozilla based browsers as well as in MS Internet Explorer. Its configurabilty and extensibility make it easy to build just the right editor for multiple purposes, from a restricted mini-editor for one database field to a full-fledged website editor. Its liberal &lt;a href="http://xinha.python-hosting.com/wiki/Licence"&gt;licence&lt;/a&gt; makes it an ideal candidate for integration into any kind of project. &lt;/span&gt;&lt;/p&gt; &lt;p style="font-family: verdana;"&gt; &lt;span style="font-size:85%;"&gt;&lt;strong&gt;Xinha is Open Source,&lt;/strong&gt; and we take this seriously. There is no company that owns the source but a community of professionals  who just want Xinha to be the best tool for their work.&lt;/span&gt; &lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2227766549193082651-4264169133970645225?l=jawaad.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jawaad.blogspot.com/feeds/4264169133970645225/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2227766549193082651&amp;postID=4264169133970645225' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2227766549193082651/posts/default/4264169133970645225'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2227766549193082651/posts/default/4264169133970645225'/><link rel='alternate' type='text/html' href='http://jawaad.blogspot.com/2007/07/my-editor-wysiwyg.html' title='My Editor Wysiwyg ?'/><author><name>Jawaad Alkaff</name><uri>http://www.blogger.com/profile/14957119931235646302</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://photos.friendster.com/photos/72/51/8231527/667917375m.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2227766549193082651.post-2329703077667166707</id><published>2007-06-28T00:45:00.000+07:00</published><updated>2007-06-28T00:55:11.976+07:00</updated><title type='text'>AJAX Star Rating Bar</title><content type='html'>&lt;span style="font-size:85%;"&gt;&lt;span style="font-family: verdana;"&gt;For rating i choose this script, from &lt;/span&gt;&lt;/span&gt;&lt;span style="font-weight: normal;font-size:85%;" &gt;&lt;span style="font-family: verdana;"&gt;masugadesign.com, here we are the description and the full url.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;h2 style="font-family: verdana;font-family:verdana;" &gt;&lt;span style="font-size:100%;"&gt;Unobtrusive AJAX Star Rating Bar&lt;/span&gt;&lt;/h2&gt;                  &lt;img style="font-family: verdana;" class="ds" src="http://www.masugadesign.com/images/posts/rating-sample.gif" alt="Unobtrusive AJAX Rating Script" title="Unobtrusive AJAX Rating Script" height="261" width="308" /&gt; &lt;h4 style="font-family: verdana; font-weight: normal;"&gt;What It Is&lt;/h4&gt; &lt;p  style="font-family:verdana;"&gt;&lt;span style="font-size:85%;"&gt;This is a rating bar script done with PHP and mySQL that allows users to rate things like can be done on Netflix or Amazon, all web 2.0-like with no page refresh. It is a major improvement on the previous version because it is now unobtrusive, meaning that if Javascript is off it will still work (although the page will refresh). You can also set the number of rating units you want to use (i.e. 4 stars, 5 stars, or 10 stars) on a rater to rater basis (see samples below or read the docs). A few other changes were made as well - see the docs for details. Note that this script isn't tied to any specific system (such as WordPress), so you should be able to adapt it to your situation without too much trouble.&lt;/span&gt;&lt;/p&gt;&lt;span style=";font-family:verdana;font-size:85%;"  &gt;http://www.masugadesign.com/the-lab/scripts/&lt;br /&gt;unobtrusive-ajax-star-rating-bar/&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2227766549193082651-2329703077667166707?l=jawaad.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jawaad.blogspot.com/feeds/2329703077667166707/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2227766549193082651&amp;postID=2329703077667166707' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2227766549193082651/posts/default/2329703077667166707'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2227766549193082651/posts/default/2329703077667166707'/><link rel='alternate' type='text/html' href='http://jawaad.blogspot.com/2007/06/ajax-star-rating-bar.html' title='AJAX Star Rating Bar'/><author><name>Jawaad Alkaff</name><uri>http://www.blogger.com/profile/14957119931235646302</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://photos.friendster.com/photos/72/51/8231527/667917375m.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2227766549193082651.post-2320850783472051247</id><published>2007-06-27T22:12:00.000+07:00</published><updated>2007-12-11T22:43:39.976+07:00</updated><title type='text'>Show users IP in a graphic - PHP Script</title><content type='html'>&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:verdana;"&gt;From: http://www.allscoop.com/phpcode.php&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;pre class="source"&gt;$img_number = imagecreate(275,25);&lt;br /&gt;$backcolor = imagecolorallocate($img_number,102,102,153);&lt;br /&gt;$textcolor = imagecolorallocate($img_number,255,255,255);&lt;br /&gt;&lt;br /&gt;imagefill($img_number,0,0,$backcolor);&lt;br /&gt;$number = " Your IP is $_SERVER[REMOTE_ADDR]";&lt;br /&gt;&lt;br /&gt;Imagestring($img_number,10,5,5,$number,$textcolor);&lt;br /&gt;&lt;br /&gt;header("Content-type: image/jpeg");&lt;br /&gt;imagejpeg($img_number);&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2227766549193082651-2320850783472051247?l=jawaad.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jawaad.blogspot.com/feeds/2320850783472051247/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2227766549193082651&amp;postID=2320850783472051247' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2227766549193082651/posts/default/2320850783472051247'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2227766549193082651/posts/default/2320850783472051247'/><link rel='alternate' type='text/html' href='http://jawaad.blogspot.com/2007/06/show-users-ip-in-graphic-php-script.html' title='Show users IP in a graphic - PHP Script'/><author><name>Jawaad Alkaff</name><uri>http://www.blogger.com/profile/14957119931235646302</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://photos.friendster.com/photos/72/51/8231527/667917375m.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2227766549193082651.post-233041057282141234</id><published>2007-06-27T21:32:00.001+07:00</published><updated>2008-12-09T12:59:37.201+07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='php'/><title type='text'>Simple CAPTCHA</title><content type='html'>&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:verdana;"&gt;Simple CAPTCHA, easy and ready to use&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div style="text-align: left;"&gt;&lt;span style=";font-family:verdana;font-size:85%;"  &gt;Screen shot:&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;span style="font-size:85%;"&gt;&lt;a style="font-family: verdana;" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_WpumbHjqSSY/RoJ1JkFxt-I/AAAAAAAABPM/UgRRf0LRsnE/s1600-h/captcha_jin.php.png"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer;" src="http://4.bp.blogspot.com/_WpumbHjqSSY/RoJ1JkFxt-I/AAAAAAAABPM/UgRRf0LRsnE/s320/captcha_jin.php.png" alt="" id="BLOGGER_PHOTO_ID_5080752136794519522" border="0" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=";font-family:verdana;font-size:85%;"  &gt;&lt;br /&gt;Source is on: http://www.nusansifor.com/f/showthread.php?t=57&lt;br /&gt;just insertt the class, and upload the font, the font you can download from there.&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2227766549193082651-233041057282141234?l=jawaad.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jawaad.blogspot.com/feeds/233041057282141234/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2227766549193082651&amp;postID=233041057282141234' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2227766549193082651/posts/default/233041057282141234'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2227766549193082651/posts/default/233041057282141234'/><link rel='alternate' type='text/html' href='http://jawaad.blogspot.com/2007/06/simple-captcha.html' title='Simple CAPTCHA'/><author><name>Jawaad Alkaff</name><uri>http://www.blogger.com/profile/14957119931235646302</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://photos.friendster.com/photos/72/51/8231527/667917375m.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_WpumbHjqSSY/RoJ1JkFxt-I/AAAAAAAABPM/UgRRf0LRsnE/s72-c/captcha_jin.php.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2227766549193082651.post-2542175060282861420</id><published>2007-06-27T21:19:00.000+07:00</published><updated>2007-06-27T21:30:06.229+07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mysql'/><category scheme='http://www.blogger.com/atom/ns#' term='php'/><title type='text'>Pagination Version 2 (ready to use PHP MySQL)</title><content type='html'>Very easy to use simply add the class, and edit setting:&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;span style="color:#000000;"&gt;&lt;span style="color:#0000bb;"&gt;$page &lt;/span&gt;&lt;span style="color:#007700;"&gt;= &lt;/span&gt;&lt;span style="color:#0000bb;"&gt;$_REQUEST&lt;/span&gt;&lt;span style="color:#007700;"&gt;[&lt;/span&gt;&lt;span style="color:#dd0000;"&gt;"page"&lt;/span&gt;&lt;span style="color:#007700;"&gt;];&lt;br /&gt;    &lt;/span&gt;&lt;span style="color:#0000bb;"&gt;$alamat_pag &lt;/span&gt;&lt;span style="color:#007700;"&gt;= &lt;/span&gt;&lt;span style="color:#dd0000;"&gt;"http://elkaff.com/?m=Alumni"&lt;/span&gt;&lt;span style="color:#007700;"&gt;; &lt;/span&gt;&lt;span style="color:#ff8000;"&gt;// Full adress your PHP script&lt;br /&gt;    &lt;/span&gt;&lt;span style="color:#0000bb;"&gt;$adjacents &lt;/span&gt;&lt;span style="color:#007700;"&gt;= &lt;/span&gt;&lt;span style="color:#0000bb;"&gt;3&lt;/span&gt;&lt;span style="color:#007700;"&gt;; &lt;/span&gt;&lt;span style="color:#ff8000;"&gt;// do not change if you do not know&lt;br /&gt;    &lt;/span&gt;&lt;span style="color:#0000bb;"&gt;$tabel&lt;/span&gt;&lt;span style="color:#007700;"&gt;=&lt;/span&gt;&lt;span style="color:#dd0000;"&gt;"sample_tabel"&lt;/span&gt;&lt;span style="color:#007700;"&gt;; &lt;/span&gt;&lt;span style="color:#ff8000;"&gt;// table database form MySQL&lt;br /&gt;    &lt;/span&gt;&lt;span style="color:#0000bb;"&gt;$where&lt;/span&gt;&lt;span style="color:#007700;"&gt;=&lt;/span&gt;&lt;span style="color:#dd0000;"&gt;""&lt;/span&gt;&lt;span style="color:#007700;"&gt;; &lt;/span&gt;&lt;span style="color:#ff8000;"&gt;// where condition, optional&lt;br /&gt;    &lt;/span&gt;&lt;span style="color:#0000bb;"&gt;$order&lt;/span&gt;&lt;span style="color:#007700;"&gt;=&lt;/span&gt;&lt;span style="color:#dd0000;"&gt;"ORDER BY `date` DESC, `name`"&lt;/span&gt;&lt;span style="color:#007700;"&gt;; &lt;/span&gt;&lt;span style="color:#ff8000;"&gt;// order condition, optional&lt;br /&gt;    &lt;/span&gt;&lt;span style="color:#0000bb;"&gt;$limit &lt;/span&gt;&lt;span style="color:#007700;"&gt;= &lt;/span&gt;&lt;span style="color:#0000bb;"&gt;10&lt;/span&gt;&lt;span style="color:#007700;"&gt;; &lt;/span&gt;&lt;span style="color:#ff8000;"&gt;// set limit per page&lt;br /&gt;    &lt;/span&gt;&lt;span style="color:#007700;"&gt;include &lt;/span&gt;&lt;span style="color:#dd0000;"&gt;"pagination.php"&lt;/span&gt;&lt;span style="color:#007700;"&gt;; &lt;/span&gt;&lt;span style="color:#ff8000;"&gt;// include the class&lt;br /&gt;    &lt;/span&gt;&lt;span style="color:#0000bb;"&gt;$no&lt;/span&gt;&lt;span style="color:#007700;"&gt;=&lt;/span&gt;&lt;span style="color:#0000bb;"&gt;$start&lt;/span&gt;&lt;span style="color:#007700;"&gt;+&lt;/span&gt;&lt;span style="color:#0000bb;"&gt;1&lt;/span&gt;&lt;span style="color:#007700;"&gt;; &lt;/span&gt;&lt;span style="color:#ff8000;"&gt;// the number, if you want it to diplay, optional&lt;br /&gt;&lt;/span&gt;&lt;span style="color:#007700;"&gt;while(&lt;/span&gt;&lt;span style="color:#0000bb;"&gt;$ro &lt;/span&gt;&lt;span style="color:#007700;"&gt;= &lt;/span&gt;&lt;span style="color:#0000bb;"&gt;mysql_fetch_array&lt;/span&gt;&lt;span style="color:#007700;"&gt;(&lt;/span&gt;&lt;span style="color:#0000bb;"&gt;$portfolio&lt;/span&gt;&lt;span style="color:#007700;"&gt;)) {&lt;br /&gt;    echo &lt;/span&gt;&lt;span style="color:#0000bb;"&gt;$no&lt;/span&gt;&lt;span style="color:#007700;"&gt;.&lt;/span&gt;&lt;span style="color:#dd0000;"&gt;" "&lt;/span&gt;&lt;span style="color:#007700;"&gt;;&lt;br /&gt;    echo &lt;/span&gt;&lt;span style="color:#0000bb;"&gt;$ro&lt;/span&gt;&lt;span style="color:#007700;"&gt;[&lt;/span&gt;&lt;span style="color:#0000bb;"&gt;nama&lt;/span&gt;&lt;span style="color:#007700;"&gt;].&lt;/span&gt;&lt;span style="color:#dd0000;"&gt;"&lt;br /&gt;"&lt;/span&gt;&lt;span style="color:#007700;"&gt;;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;echo &lt;/span&gt;&lt;span style="color:#dd0000;"&gt;"Total: &lt;b&gt;$total_pages&lt;/b&gt;&lt;br /&gt;"&lt;/span&gt;&lt;span style="color:#007700;"&gt;;&lt;br /&gt;echo &lt;/span&gt;&lt;span style="color:#0000bb;"&gt;$pagination&lt;/span&gt;&lt;span style="color:#007700;"&gt;;  &lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;The code is on: http://www.nusansifor.com/f/showthread.php?t=101&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2227766549193082651-2542175060282861420?l=jawaad.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jawaad.blogspot.com/feeds/2542175060282861420/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2227766549193082651&amp;postID=2542175060282861420' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2227766549193082651/posts/default/2542175060282861420'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2227766549193082651/posts/default/2542175060282861420'/><link rel='alternate' type='text/html' href='http://jawaad.blogspot.com/2007/06/pagination-version-2-ready-to-use-php.html' title='Pagination Version 2 (ready to use PHP MySQL)'/><author><name>Jawaad Alkaff</name><uri>http://www.blogger.com/profile/14957119931235646302</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://photos.friendster.com/photos/72/51/8231527/667917375m.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2227766549193082651.post-3181921538068660368</id><published>2007-06-27T21:15:00.000+07:00</published><updated>2007-06-27T21:19:12.039+07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='javascript'/><category scheme='http://www.blogger.com/atom/ns#' term='ajax'/><category scheme='http://www.blogger.com/atom/ns#' term='php'/><title type='text'>[AJAX] - File Upload with PHP, Javascript &amp; iFrame</title><content type='html'>Well, this is my choise for simple uploading system:&lt;br /&gt;&lt;br /&gt;http://www.chronosight.net/view/2006/04/&lt;br /&gt;465-asynchronous-file-upload-with-php-javascript-iframe.html&lt;br /&gt;&lt;br /&gt;take a look...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2227766549193082651-3181921538068660368?l=jawaad.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jawaad.blogspot.com/feeds/3181921538068660368/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2227766549193082651&amp;postID=3181921538068660368' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2227766549193082651/posts/default/3181921538068660368'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2227766549193082651/posts/default/3181921538068660368'/><link rel='alternate' type='text/html' href='http://jawaad.blogspot.com/2007/06/ajax.html' title='[AJAX] - File Upload with PHP, Javascript &amp; iFrame'/><author><name>Jawaad Alkaff</name><uri>http://www.blogger.com/profile/14957119931235646302</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://photos.friendster.com/photos/72/51/8231527/667917375m.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2227766549193082651.post-7567337307766518817</id><published>2006-11-30T00:25:00.000+07:00</published><updated>2007-06-28T00:57:25.550+07:00</updated><title type='text'>Well, i should have a blog! It a must!</title><content type='html'>&lt;span style=";font-family:verdana;font-size:85%;"  &gt;Welldone,..&lt;br /&gt;I wanna start using this blog for archive all my collection.. specially for PHP, Javascript, MySQL.&lt;br /&gt;That very powerfull, easy to install/use and tested well from me.&lt;br /&gt;&lt;br /&gt;Well,.. let we see...&lt;br /&gt;&lt;br /&gt;&lt;a href="http://nusansifor.com/"&gt;http://nusansifor.com&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2227766549193082651-7567337307766518817?l=jawaad.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jawaad.blogspot.com/feeds/7567337307766518817/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2227766549193082651&amp;postID=7567337307766518817' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2227766549193082651/posts/default/7567337307766518817'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2227766549193082651/posts/default/7567337307766518817'/><link rel='alternate' type='text/html' href='http://jawaad.blogspot.com/2007/06/well-i-should-have-blog-it-must.html' title='Well, i should have a blog! It a must!'/><author><name>Jawaad Alkaff</name><uri>http://www.blogger.com/profile/14957119931235646302</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://photos.friendster.com/photos/72/51/8231527/667917375m.jpg'/></author><thr:total>0</thr:total></entry></feed>
