PHP
Introduction
- PHP is the acronym for "PHP Hypertext Preprocessor"
- PHP is a widely used open-source scripting language
- PHP scripts are executed on the server
- PHP has no cost and is free to download and use
- It is strong enough to be the core of the largest blogging system on the Web ( WordPress)!
- It's deep enough to run the biggest social network (Facebook)!
- And its ease of use is enough to become the preferred server-side language for beginners!
- PHP files can contain text,HTML,CSS , and php code
- The PHP code executes on the server, and the result is returned in plain text to the browser
- The suffix of the PHP file is ". php"
- PHP can generate dynamic page content
- PHP can create, open, read, write, delete, and close files on the server
- PHP can receive form data
- PHP can send and retrieve cookies
- PHP can add, delete, and modify data in a database
- PHP can restrict access to certain pages in the site
- PHP is capable of encrypting data
PHP is an amazing popular language!
PHP File
PHP
the Use
through PHP, you can not be limited to output HTMLonly. You can also export images,PDF files, and even Flash movies. You can also output any text, such as XHTML and XML.
Choice of PHP
- PHP runs on various platforms (Windows, Linux, Unix, Mac OS X , etc.)
- PHP compatible with almost any server (Apache, IIS, etc.)
- PHP supports multiple databases
- PHP is free of charge .
- PHP is easy to learn and runs efficiently on the server side
Basic PHP Syntax
the PHP script can be placed anywhere in the document.
The PHP script begins with <?php and ends with ?> :
<? Php
Here is the PHP code
?>
Beginner-php Notes