Pilih Laman

sumber: https://www.jogjahost.co.id/blog/php-adalah/#:~:text=PHP%20Native%20adalah%20skill%20basic,web%20yang%20tidak%20terlalu%20kompleks.

Some PHP Functions

In general, the function of PHP is to create a web application. More specifically, the functions in PHP are as follows:

  • PHP can generate dynamic web page content.
  • PHP can create, delete, open, close, read, write, files on the server side.
  • PHP can operate to collect form data.
  • PHP can send and receive cookies or track browsing in the browser.
  • PHP functions to execute commands to add, delete, or change existing data in a connected database.
  • PHP can be used to create access rights. Control web application user access.
  • PHP is able to encrypt data.
  • PHP can be used to output various files such as PDF, images, XML, XHTML, etc. So PHP is not limited to just outputting HTML data.

 

PHP can indeed accommodate many functions in a web application development project.

Using PHP to Create Web Applications

The basic syntax of the PHP programming language opens with <?php and closes with ?>. When writing PHP code, you must pay close attention to capital letters. This programming language is case sensitive. So, writing uppercase and lowercase letters in the syntax, will affect the output. In web application development projects, the use of PHP code will be combined with other programming languages ​​such as HTML, CSS, and Java Script. So, in addition to learning PHP, you also need to learn HTML, CSS and Java Script in order to create a complete web application. After writing the code, you must save the file with a .php extension so the server can identify it. In making a web application using PHP, there are 2 methods that you can use, namely: PHP Native & PHP Framework

1. PHP Native

This method requires you to create your entire code from 0. So you will use a combination of PHP, HTML, CSS and Javascript code to build a website from scratch, all alone. In this method, you will define each function, variable and program flow yourself. If you want to create a web application project on a large scale, this method is not recommended. This method will also be difficult if the project must be done as a team. However, you still need to do this method as a beginner. PHP Native is a basic skill to be able to master web programming as a whole. For starters, you can use this method to learn to create less complex web projects.