November 17, 2011

functions calculated using the Vietnamese language

Inspired by Facebook Friends Status who's being so dizzy looking for "functions calculated using the Vietnamese language".
And the I've got an Idea for editing my code to be Vietnamese through "Om Google".
This is it...  :
**Mohon dibantu ya… Sim salabim jadi apa .?? prok prok.. prok.. :)**



COPAS this code code., and save with name terbilang_vietnam.php :

<html>
<head>
<title>functions calculated using the Vietnamese language</title>
</head>
<body>
   <form action=”terbilang_vietnam.php” method=”post”>
   Masukkan angka: <input type=”text” value=”" name=”angka”>
   <input type=”submit” value=”Send”>
   </form>
   <pre>
   <?php
   $angka = isset($_POST['angka']) ? $_POST['angka'] : “0″;
   if ($angka) {
      echo number_format($angka, 0) . “<br>”;
      echo ucwords(Terbilang($angka));
   }
   ?>
   </pre>
</body>
</html>
<?php

function Terbilang($x) {
  $abil = array(“”, “one”, “hai”, “ba”, “four”, “nam”, “six”, “seven”, “eight”, “nine”, “ten”, “eleven”);
   if ($x < 12)
      return ” ” . $abil[$x];
   elseif ($x < 20)
      return Terbilang($x – 10) . “lòng thuong xót”;
   elseif ($x < 100)
      return Terbilang($x / 10) . ” hai muoi” . Terbilang($x % 10);
   elseif ($x < 200)
      return ” hundred” . Terbilang($x – 100);
   elseif ($x < 1000)
      return Terbilang($x / 100) . ” hundred” . Terbilang($x % 100);
   elseif ($x < 2000)
      return ” ngàn” . Terbilang($x – 1000);
   elseif ($x < 1000000)
      return Terbilang($x / 1000) . ” ngàn” . Terbilang($x % 1000);
   elseif ($x < 1000000000)
      return Terbilang($x / 1000000) . ” trieu” . Terbilang($x % 1000000);
   }
?>


Hopefully can help my friend....
Sorry for mistake in translate from Indonesian to Vietnamese :)
Because I'm not Vietnamese.

Just let me Know if I'm Wrong

See ya..
Wassalamualaikum Wr. Wb.
Rgds,
Kiki SNE

November 16, 2011

PHP.??

PHP is a general-purpose server-side scripting language originally designed for web development to produce dynamic web pages. For this purpose, PHP code is embedded into the HTML source document and interpreted by a web server with a PHP processor module, which generates the web page document. It also has evolved to include a command-line interface capability and can be used in standalone graphical application. PHP can be deployed on most web servers and as a standalone interpreter, on almost every operating system and platform free of charge. There is also commercial software such as RadPHP, a rapid application development framework for the PHP language. A competitor to Microsoft's Active Server Pages (ASP) server-side script engine and similar languages, PHP is installed on more than 20 million websites and 1 million web servers.

PHP was originally created by Rasmus Lerdorf in 1995. The main implementation of PHP is now produced by The PHP Group and serves as the de facto standard for PHP as there is no formal specification. PHP is free software released under the PHP License which is incompatible with the GNU General Public License (GPL) due to restrictions on the usage of the term PHP.

While PHP originally stood for "Personal Home Page", it is now said to stand for "PHP: Hypertext Preprocessor", a recursive acronym.