Tampilkan postingan dengan label PHP. Tampilkan semua postingan
Tampilkan postingan dengan label PHP. Tampilkan semua postingan

Selasa, 27 Desember 2011

The basic of PHP programming

  the discussion this time we will begin to struggle with the PHP programming language, here we will be a lot to learn the basics of PHP programming language that will will be implemented for web applications in the subsequent discussion.

PHP tag  In general, the PHP interpreter will be looking for a PHP tag in one file (web page) Where to find the tag when  PHP (opener), the PHP interpreter began to translatePHP prefix of the tag to find PHP tags (cover). PHP language tag flanking the embeded in a file, PHP script in this tag is translatedby the PHP interpreter. PHP tags are divided into two, namely:
* Tag Viewer: It is a tag where the PHP interpreter will start the translation code. Opening tag can be written in the form


-        <? PhpOr-        <script Language="php">
* Closing Tag: This is a tag where the PHP interpreter terminate translation within a block of code in PHP tags. Closing tag is a pair of tagsOpening, so the closing tag should be adjusted with the opening PHP tag. Form in the PHP closing tag is as follows:


?>or</ Script>
thus writing the correct tag is as follows:<Php ............. ?>     and <script language="php"> .................. </ Script>
although the use of opening and closing tags are allowed beratura tag (not suitable mate), but for continuity and consistency of the author suggest the readers to always use the appropriate tagwith each partner so that the code more readable and understandable.The following are examples of application of writing PHP tags with PHP code didalamnnya.<? php      echo ("tag in PHP");?>
or
<script language="php">echo ("like this also allowed"); </ script>
or
 <script language="php"> echo ("this one can also");<? Php
or
 <? php
echo ("this is fine");</ Script>
The four styles of writing the above code the same - the same is allowed, but the remedy then we only use the tags in accordance with their respective spouses.Let us remember that in a file we can write more than one pair of tags, because PHP is a code or script that can be embedded (embed) in an HTML.
hopefully this article useful to add information and science reader.
Read More..

Kamis, 22 Desember 2011

Understanding, a brief history, and development of the PHP Programming Language

before we enter further discussion about php, it helps us know the definition and brief history of php. more established measures that we learn the PHP programming language.
understanding About PHP:PHP or Hypertext Preprocessor is an abbreviation of one of the programming language suitable open sorce or devoted to web developers dandapat cultivate in a script in HTML.programming languages ​​like C, Java, and Perl as well as easy to learn.
PHP was created to facilitate web developers to write dynamic web pages quickly, even more than that we can explore things that are amazing with PHP, PHP thus very suitable for beginners, intermediate and even expert though.
A Brief History
  
beginning PHP is short for "personal home page" which was made in 1995 by Rasmus ledorf. that time his name is still interpreted form. PHP maker in the next release source code to the public (open source) so that programmers interested in developing PHP.
finally in November 1997 in Release PHP 2.0 on this version of the PHP interpreter is implemented in C, and has included additional modules or in PHP is often referred to as ekstensi.pada 1997 also contributed to a company called Zend, which the PHP interpreter to be rewritten be clean, fast, and better. and finally in mid-1998, released Zend PHP 3.0 with the replacement of an abbreviation of the personal home page into hypertext preprocessor.

  
on the subsequent development of the Zend continues to play an important role in the development of PHP, in mid-1999, PHP 4.0 was released on this version and more people began flocking to use PHP for its ability to build complex web applications, but still has the speed and stability.
along with the times, many programming languages ​​began to implement a model of OOP (Object Oriented Programming), did not want to miss the PHP version 5.0
released in mid-2004 with new capabilities that object-oriented programming.
Read More..