What is php?

PHP (recursive acronym for PHP: Hypertext Preprocessor) is a widely-used open source general-purpose scripting language that is especially suited for web development and can be embedded into HTML.

Fine, An example for this is as follows:

<!DOCTYPE HTML>
<html>
<head>
<title>Example</title>
</head>
<body>

<?php
echo “Hi, This is a PHP Script!”;
?>

</body>
</html>

Instead of lots of commands to output HTML (as seen in C or Perl), PHP pages contain HTML with embedded code that does “something” (in this case, output “Hi, I’m a PHP script!”). The PHP code is enclosed in special start and end processing instructions <?PHP and ?> that allow you to jump into and out of “PHP mode.”

The main difference between PHP from that patron-aspect JavaScript is that the code is accomplished on the server, producing HTML which is then sent to the client. The customer would obtain the outcome of running that script, however, would now not be aware of what the underlying code was. That you can even setup your web server to method all your HTML files with the personal home page, and then there is particularly no means that users can tell what you will have up your sleeve.

The high-quality things in using PHP are that it’s particularly easy for a beginner, however, presents many developed points for a respectable programmer. Do not be afraid studying the lengthy record of PHP elements. Which you can soar in, in a short time, and begin writing easy scripts in just a few hours.

Despite the fact that PHP’s progress is curious about server-side scripting, you can do much more with it. Read on, and notice more in the What can PHP do? Part, or go properly to the introductory tutorial if you’re handiest involved in net programming.

What Does PHP?

Something. The personal home page is usually serious about server-part scripting, so you are able to do anything any other CGI program can do, equivalent to acquire kind information, generate dynamic page content material, or ship and obtain cookies. But Hypertext Preprocessor can do rather more.

 

There are three essential areas the place PHP scripts are used.

1. Server-side scripting.
2. Command line scripting.
3. Writing computer applications.

Php can be used on all main OS, together with Linux, many Unix variations, Microsoft windows, Mac OS X, RISC OS, and most likely others. PHP has also support for most of the internet servers in these days. This includes Apache, IIS, and lots of others. And this includes any internet server that can make use of the FastCGIPHP binary, like Lighttpd and Nginx.

So with the personal home page, you may have the liberty of making a choice on a working procedure and an online server. Furthermore, you also have the choice of making use of procedural programming or object oriented programming (OOP), or a combination of them both.

With PHP you are not restricted to output HTML. Personal home page’s potential includes outputting photographs, PDF records and even Flash films (using lib SWF and Ming) generated on the fly. That you would be able to also output with no trouble any textual content, reminiscent of XHTML and any other XML file. The personal home page can autogenerate these records, and retailer them within the filing process, alternatively of printing it out, forming a server-facet cache on your dynamic content.

Leave a Reply

Your email address will not be published. Required fields are marked *