39
3. Many-to-one, which means that each tuple in the entity A may be
associated with at most one tuple in the entity, but not vice versa, where each tuple in the entity A associated with at most one tuple
in the entity B. 4.
Many-to-many, which means that each tuple in the entity A may be associated by many tuple in the entity B and vice versa, where each
tuple in the entity B can be associated with many tuple in the entity A.
2.9 PHP Personal Home Page
PHP is a web-based programming language that has the ability to process and process data dynamically Kasiman, 2006. PHP can be regarded as an
embedded server-side scripting language, meaning that all the syntax and command written program will be fully executed by the server, but it can be
included in regular HTML pages.
2.9.1 History PHP PHP possess a long history, starting from the idea of a C language
programmer named Rasmus Lerdorf. Starting around 1994, Rasmus Lerdorf uses PHP to calculate the number of visitors to the site. Then he
issued version 1.0 of PHP tools for free. This version first came out in 1995 and contains a set of PERL scripts that are used to make the site into
a dynamic page. Subsequently in 1996 he released PHP version 2.0 that
40
already has the ability to access the database and can be integrated with HTML.
In 1997 appeared the PHP FI Version 2.0 with the entire syntax and functions written using C language because domain that uses PHP FI
is very large, then thanks to the help of the various parties comprising Andi Gutsman, Zeev Suarasski, Shane Caraveo, Stig Bakken, and Jim
Winstead, then started the birth of PHP 3. There are additional APIs in PHP 3, functions and modules in the PHP script engine that also
participated to develop PHP FI. On 6 June 1998 appears PHP version 3.0 launchedby Rasmus with the software development group.
The next version of PHP 4.0 which was released on May 22, 2000 and is a more complete version than the previous version. The most
fundamental changes in PHP 4.0 is the integration of Zend Engine created by Zend Suraski and Andi Gutsman, which is a refinement of the PHP3
scripting engine. Another new feature is the build-in HTTP session, and no longer makes use of additional libraries like in PHP3. The purpose of this
scripting language is to create applications that run on web technology. PHP 4 was launched in order to overcome the deficiencies the
weakness contained in PHP 3, by adding new features, such as sessions, output buffering, and the handling of input and output.
PHP version 5 was released in early 2006 and in December 2008 had appeared to version 5.2.8. With many advantages compared to the
41
previous version, PHP 5 comes bringing more functionality and fixes to bugs. PHP 5 is fast, stable, and ready to be used for production scale.
2.9.2 PHP concepts PHP is known as a scripting language that integrates with HTML
tags, is executed on the server, and is used to create dynamic web pages such as Active Server Pages ASP or Java Server Pages JSP. PHP is a
script for server-side web programming. By using PHP, then the maintenance of a website becomes easier. Processes data updates can be
done using an application created using PHP scripts. The initial name of PHP is FI, i.e. Form Interface. Was first created by Rasmus Lerdorf. PHP
was originally a CGI program that is devoted to receiving input via the form shown on the web browser. PHP is a server-side scripting language
that is embedded in HTML embedded script. PHP concept is very simple, even simpler than CGI. Thus, in making a PHP document, just
create a plain HTML, its just added to the program code is enclosed in the ? .....?. basic types in PHP, among others: Integer integer, floating
point numbers, Boolean, null, string, array, object, resource.
2.9.3 Advantages of PHP PHP has several abilities which are one of the advantages of PHP.
These capabilities include:
How to connect and query a simple database
42
Can work on Windows-based operating system, Linux, Mac OS, and most versions of UNIX.
Costs required to use PHP inexpensive, or even free
Easy to use because it has special features and functions to create dynamic web. PHP programming language designed to be
incorporated in the HTML embedded script
Security system is high enough
Faster execution time compared to other web programming languages
Access to the database system more flexible and convenient.
2.10 MySQL