PHP main purpose is for web development which helps people to create dynamic and interactive web pages and applications. You can do things like create username and password login pages, check details from a form, create forums, picture galleries, surveys, and a whole lot more. PHP is one of the most popular language used by web developers today. PHP is now used on more than 250 million websites and 2 million web servers.
PHP was created in 1995 by Rasmus Lerdorf to track the visitors to his online résumé. It originally stood for “Personal Home Page.” As its capabilities grew it came to stand for “Hypertext Preprocessor,” which basically means that PHP handles data before it becomes HTML (HyperText Markup Language). Its first official release in 1997. Milestone releases included PHP 3 in 1998, PHP 4 in 2000, and PHP 5 in 2004. Today, many large-scale websites run on PHP. The author was first introduced to PHP in 2000, and have found the language to be pretty easy to work with.
- PHP is a widely used open source server-side scripting language.
- Server-side scripting language occurs on the server. For example, when you type a website (www.domainname.com/index.php) on web browser it is making a request to a Web server. Web server starts up the PHP parsing engine and processes any PHP instructions found on the page and it passed on to your browser, which displays on your screen. PHP code itself is not visible to the clients (i.e., if you do a "view source" in your web browser, you cannot see the PHP code. You can only see the resulting HTML code). This contrasts with client-side languages such as Javascript, which is visible to the client.
- Difference between a scripting language and a programming language.
- PHP is a scripting language, as opposed to a programming language. This means that PHP is designed to do something only after an event occurs; for example, when a user submits a form or goes to a URL. Programming languages such as Java, C, C++, and Perl can write standalone applications, while PHP cannot.
- PHP is an acronym for "PHP Hypertext Preprocessor".
- PHP scripts are executed on the server and the client cannot view the PHP code.
- PHP is free to download and use, official PHP resource: www.php.net.
- PHP runs on various platforms (Windows, Linux, Unix, Mac OS X, etc.).
- PHP is compatible with almost all servers used today (Apache, IIS, etc.).
- PHP supports a wide range of databases (MySQL, Sybase, Oracle and many others.)
- PHP is easy to learn and runs efficiently on the server side.
- PHP can generate dynamic page content.
- PHP can create, open, read, write, and close files on the server.
- PHP can collect form data.
- PHP can send and receive cookies and session variables.
- PHP can create a web interface to add, delete, modify data in your database.
- Perform calculations and mathematical equations
- PHP can aunthenticate a user to restrict access some pages or sections on your website.
- PHP can encrypt data.
- PHP files can contain text, HTML, CSS, JavaScript, and PHP code.
- PHP code are executed on server and result is returned to the browser as plain HTML.
- PHP files have extension ".php".
- PHP can be embedded in HTML within HTML tags. Embedded means you can put PHP code into your HTML code.
- Generate HTML content on-the-fly
- PHP can create images on the fly such as CAPCHA verifications
- PHP can generate PDF or Excel documents on the fly
- PHP can Auto-generate files, and save them in the file system
- PHP code written between <?php.........you code here.................?>
- <html>
<body>
<?php
echo "My first PHP script!";
?>
</body>
</html> - PHP can talk across networks using IMAP, SNMP, NNTP, POP3, or HTTP, LDAP.
There are many other advanced features and benefits PHP can offer. Such powerful features are used everyday in popular web applications such as WordPress and Facebook. So, if you’re new to web development, hopefully this helps you understand what PHP is and the type of things this dynamic language can bring to your website.
No comments:
Post a Comment