Program PHP Basic Introduction

Dasar Pengenalan Program PHP


PHP is a scripting language combined with HTML and runs on the server side. This means that all the syntax that we provide will be fully executed on the server while the browser is sent to the outcome only. In PHP variable names preceded each dollar sign ($). For example a variable name in PHP is written with $ a. Type of a variable is determined at the time course of the program and depending on the context used.

There are several control structures in PHP, among others:
1. IF
IF construction is used to perform the execution of a conditional statement.
2. WHILE
While the meaning of statemant is giving orders to run the statements below it repeatedly, as long as the conditions are met.
3. FOR
Almost the same as WHILE statementnya only a different course.
4. SWITCH
SWITCH statement is used to compare a variable with some values and run a particular statement if the variable value equal to the value of the comparison.
5. Require
Require statement is used to read the variable values and functions of the other files. Require statement can not be included diadalam such a loop structure while or for. Because only allows the same file pemangggilan the
only once.
6. INCLUDE
Include statement to include the contents of a particular file. Include can be placed in a loop for example in statements for or while.

Making different web-based applications with Windows-based application creation (visual programming), such as Visual Basic, Delphi, or KDevelop. In visual programming, we enhance the speed and application performance by optimizing memory usage, process management, and Input-Output settings. On the web-based programming, the determining factor is the speed of application performance and database access and network access speed Internet.
The second difference is the way applications run. In visual applications, applications built using a specific tool, and then compiled. The results can be directly used in the computer. Web-based applications can not be run directly on the computer. To run it, it takes a particular engine, in this case the web server.
Many PHP programmers are used by a background of C / C + + because of the similarity syntaxnya. Open source, so free and free. Partner usually MySQL database, Apache Web server running together on a Linux operating system. Everything is free and free.

0 komentar:

Posting Komentar