PHP is a recursive acronym for Hypertext Preprocessor. It is a server-side scripting language whose main purpose is to generate the HTML code, which can be viewed by the client. As such, the PHP code itself is not visible to the clients (i.e., if you do a "view source" in your web browser, you cannot see the PHP code. You can only see the resulting HTML code). This contrasts with client-side languages such as Javascript, which is visible to the client.
Below is a simple "Welcome to ponsel komputer." program, PHP flavor:
<?php print "Welcome to ponsel komputer."; ?> |
Executing this program on a web server enabled with PHP produces the following output:
Welcome to ponsel komputer. |
PHP programs usually have an extension of .php.
By the end of this tutorial, you should have a good understanding of the basic constructs of PHP, as well as how PHP can interact with MySQL to produce dynamic web pages.
http://www.1keydata.com
0 komentar:
Posting Komentar