Apxic Technologies is the Best Computer Training Institute in Ambala for learning PHP. We have highly skilled teachers who provide theoretical training as well as practical training to the students. Call now for a free demo class: 7497897720
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Introduction to PHP
1.
2. PHP is an object-oriented, open-source, server-side and interpreted scripting
language that is used to create web applications. It is very simple and easy to
learn. The PHP files consist of text, CSS, HTML, JavaScript, and also, PHP code.
Since it is executed on the server, the result will be shown in the browser in the
form of HTML. It is very useful for students as well as professionals who are
interested in the web Development field. This PHP tutorial offers in-depth
knowledge of the PHP scripting language. Moreover, it helps in understanding
PHP in a simple manner.
3. Why do we need to learn PHP?
There are several reasons why PHP is considered as advantageous. It
includes:
● Ability to run on different platforms such as Linux, Mac OS, Windows, Unix,
etc.
● Supports a large range of DBs such as Oracle, MySQL, Sybase,
PostgreSQL, etc.
● Open Source
● Easy to learn
4. ● Compatible with different servers such as IIS, Apache, etc.
● Scripts run faster than JSP, ASP Scripts
● Manage session tracking, dynamic content and build E-Commerce sites as
well.
● Supports various protocols like IMAP, POP3, LDAP etc.
● C-like syntax
● Possible to encrypt data
● Performs system functions
5. In addition to that, characteristics such as Simplicity, Security, Familiarity,
Efficiency, Flexibility are the other reasons why programmers consider PHP.
Applications of PHP
PHP can be applied in different situations. They are:
● Dynamically generating pages as well as files.
● Sending emails to website users.
6. ● Sending and receiving cookies in order to track the website visitors.
● Collecting data from web forms. i.e. collecting data from different files, saving
data to a file, sending data through email, returning data to the proper user,
etc.
● Storing, deleting, adding and modifying data present on the database.
● Restricting unauthorized access to the website in order to protect from
hackers and other bugs.
7. Example
Normally, a PHP script can be written anywhere in the document and its default file
extension is .php.
The script begins with <?php and ends with ?> as shown below.
?php
// your PHP code will be written here .
?