PHP Overview

Discussion in 'PHP' started by MinalS, Oct 9, 2015.

  1. Several protocols like POP3, IMAP and LDAP are supported. Various databases like Oracle, MySQL, PostgreSQL, Informix, Sybase, and SQL server can be easily integrated.

    Uses of PHP
    1. The database modifications like insert, delete and element modification is possible using PHP
    2. The system functions like creating, reading, writing, and closing the files is possible
    3. The cookie variables can be accessed and assigned
    4. The data can be encrypted easily
    5. User can collect data from the files, add data to the files, send emails, etc
    6. The page data can be restricted by the user

    The five major characteristics of PHP language are as explained below:

    1) Simplicity

    In PHP, user does not need to add compilation directives, libraries for coding. The engine executes the code once it receives the escape sequence as ().

    2) Efficiency

    It is necessary to consider the concept of efficiency in a multi user environment. The allocation of resources, session management are supported by PHP.

    3) Security

    In PHP, a set of safeguards is provided for the developers and administrators. The system and application level security safeguards are provided to the user.

    In system level safeguards, there are security mechanisms that can be used by the administrators for data manipulation. User can place PHP in the safe mode, the users are limited. The execution and memory usage can be limited.

    In application level security safeguards, the trusted data encryption options are provided to the user. Various third party applications are easily compatible with PHP. The scripts are parsed before they are sent to the user. The script loss is avoided using server side architecture.

    4) Familiarity

    The PHP code is very much similar to the C or Pascal program. As a result, it is easy to learn the language constructs.

    5) Flexibility

    PHP can be easily integrated with XML, JavaScript, WML, etc. The PHP applications can be easily expanded as required by the user. The scripts are compiled on the server end hence they are not browser dependent.

    Scripting in PHP

    PHP is a scripting language embedded with HTML. The PHP code is added inside the three markup tags as mentioned below:

    <?php  php code is added ?>
    <? PHP code is present ?>
    <script language = “php”> PHP content added here </script>
    The <? php …?> tag is widely used in the PHP applications.

    Consider the example where the PHP is embedded with HTML.

    	<title> Welcome</title>
    		<?php echo “Welcome User”; ?>
    Once the code is compiled, the following output is generated

    Welcome User

    In the above code, only the HTML output is returned to the user. The file sent from the server to the browser does not contain PHP code.

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice