PHP (Hypertext Preprocessor) is a general purpose server
side scripting language that was originally designed for web development to
produce dynamic webpages. PHP is usually used to create web applications in
combination with the web server such as apache. PHP can also be used to create
command-line scripts similar to Perl or shell scripts such use are much less common
than php’s use as a web language.
Being a server-side scripting language, PHP is especially
suited to server-side web development where PHP generally runs on web
server. Any PHP code in a requested file
is executed by the php runtime, usually to create dynamic web page content. It
can also be used for command-line scripting and client-side GUI applications.
PHP can be deployed on most webservers, many operating systems and platforms,
and can be used with many relational database management systems. It is
available free of charge, and the php group provides the complete source code
for users to build, customize and extend for their own use.
Every PHP code can be written using one of 4 types opening
and closing.
1. <?php and ?>
2. <script language=”php”> and </script>
1. <?php and ?>
2. <script language=”php”> and </script>
3. <? or <?= and ?>
4.<% or <%= and %>
4.<% or <%= and %>