PHPTriad Installation

J Wynia insist if installing PHPTriad is difficult, and as a solution is buy their product, Sokkit. In this article his argument will cut down together. So the conclusion is, it is not mean you stupid or cause PHPTriad difficult to install. But this is more because mistake in writing. CMIIW and please enjoy it.

Author also concept all the installation and how to use it in 10 important point at once. Hope these points will help you.

Installation Equipment

Before installing PHPTriad, of course you must have equipment and preparation. PHPTriad run under Windows platform, So for Windows 9x or Windows 2000, NT, Me, or XP can run in same good condition. For computer specification it is not really need high specification, as long as your computer can show Graphic Mode, its ok!  

For easy to understand, author gives the number for it installation:

  1. Download PHPTriad! You can download it from www.download.com then type "PHPTriad" word, or you can also open it Project in our store sourceforg (http://sourceforge.net/projects/phptriad). You can get its installer file.
  2. Click twice on that installer, and program will show you License of Agreement automatically. It is up to you, want to read, or not it is not a problem. Will not sent you a fever.
  3. Click "Next" then the installer will extracting all PHPTriad file and will forming C:\Apache directory.
    Note: Extraction speed depends on your computer ability!
  4. Wait until it finish! Make sure when you installing no Error happened and you not running other program that maybe use memory and CPU usability. Press close!
  5. OK till here mean you have installed PHPTriad. Easy? Of course it is easy.
    To see is PHPTriad running good. Now you test it! See the step:
  • First run your Apache Web Server, Start – Programs – PHPTriad – Start Apache.
  • You will find Start Apache Window, leave it, don’t ever close it as long you running PHP script.
  • Now open your browser then type http://localhost/
  • If you see greeting word from PHPTriad, congratulation, that mean your installation have been success.

Testing Program

Now if you want to see is your program run, you can try with make a simple script! Now follow the step below.

  1. Many editors you can use to write PHP script, example PHPEditor, EditPlus, and many more. But Author think you have no other editor, so you can using NOTEPAD to type your PHP script. NOTEPAD? Right, so keep up. OK!
  2. Write simple program script below in NOTEPAD!

    <?php
     $a = 5;
     $b = 4;
     print "Berapa Jumlah $a dengan $b ?"
     $c = $a + $b;
     print "<br>jawabannya adalah = $c"
    ?>

  3. Deposited the script with name “hitung.php” in to c:\Apache\htdocs\ directory. Remember every PHP file must to deposit in htdocs! Directory.
    Note: Don’t forget to change “Save as Type” option be “All Files” option when you deposited your document with PHP extension (*.php), because if you don’t put attention your file will still read as usual text file.
  4. Now open your browser and type http://localhost/hitung.php
  5. How? Is your hitung.php file showing? That mean author congratulate you, again? It is Ok; it is not a problem to celebrate success people.

    Do you understand the script above? If not yet lets talk it!

<?php //this is opening tag from PHP
   $a = 5, this is "a" variable that fill "5" value
   $b = 4, it is same, "b" variable with "4" value
       //Print order used to print letter at browser. You will know Echo order later.
    $c = $a + $b;
       //This mean $c variable now accommodate result from
    sum $a and $b.
?> //this closing tag at PHP
One you must look closely is every end of statement or order ending with  “;” mark.

Important note:

This article not discuss How is PHP, or how syntax inside it, order and command, variable and its repeat. Once more author say no, because this article purposing for beginner who want to know and shake hand with PHP.