PHP Tutorial

PHP is one of the most useful language on the web. PHP is one most of the server scripting language, and it is strong tools for develop interactive web pages. PHP is a widely used, free and able alternative to challenger such as Microsoft's ASP. PHP code is executed on server.

What is php



What You Should Already Know

Before you Start, you must have a basic Knowledge of the following:


What is PHP

Hypertext Preprocessor (or) "PHP" is a programming language that permit's web developers to create dynamic content that interrelate with databases.

PHP is integrated with several famous databases including MySQL, PostgreSQL, Oracle, Sybase, Informix & Microsoft SQL Server. PHP is easy sufficient for early to be the first server side language!

Important Points Of PHP

  • PHP is primarily used for creating web based software applications.
  • PHP is a server side scripting language embedded in (Hyper Text Markup Language) HTML.
  • PHP is an object-oriented language.
  • PHP code is ordinarily processed on a web server by a PHP interpreter or translator implemented as a module.
  • PHP is a server site's scripting language, and Very powerful tool for creating dynamic and interactive Website pages.
  • PHP is used to Create dynamic content, session's tracing, databases, even entire e-commerce websites.
  • PHP is a miniature form of "Hypertext Preprocessor". earlier called as Personal Home Page.
  • PHP is a widely used, open-source scripting language which is executed on the server's.
  • PHP is free to download and use.
  • A PHP file Include PHP tags and ends with the extension " .php ".

What Can PHP Do

  • PHP can gives dynamic page content
  • PHP can edit (build, open, read, write, delete and close) files on the server.
  • PHP can send and receive cookies data
  • PHP can add, remove, modify data in our database system
  • PHP can used to control user-access
  • PHP can encrypt our data
  • With PHP we aren't limited to HTML output.
  • We can create images, PDF files and even Flash movies.
  • You can also provide any text, Like That- XHTML and XML.
  • Server-side scripting – the main field for PHP. If We are an amateur exercises at home, This is a way to do it
  • Command line scriptingideal for scripts Create using crone or Task Scheduler. Also greats for simple text processing.
  • Writing desktop applications

Why Need Of PHP

  • PHP runs on multiple platforms (Windows, Linux, Unix, Mac OS, etc.)
  • PHP is consistent with all servers used Present time (Apache, IIS, etc.)
  • PHP helps us to widely range of databases.
  • PHP is freely Downloadable from the official PHP resource: www.php.net
  • PHP is simply to learn and runs efficiently on the servers sides.

What is a PHP File

PHP files can implant text, HTML, CSS, JavaScript, & PHP code.

PHP code is execute on the server, and the result is return to the browser as common HTML

PHP files have extension .php, .php3, or .phtml.

A PHP file can include tags For Example- HTML & client side scripts such as JavaScript.


Key features of PHP

  1. Simplicity
  2. Efficiency
  3. Security
  4. Flexibility
  5. Familiarity

There are some other Features of PHP

  • PHP stands for Hypertext Preprocessor.
  • PHP is a server-side scripting language equal to ASP.
  • PHP hold up multiple databases For example MySQL, Oracle, Sybase, Solid, PostgreSQL, Informix etc.
  • PHP is an open source software and is free of charge to download and use.

Advantages of PHP

  1. Free of Cost : PHP is open source, and its part are free to use and distribute.
  2. Platform independent : PHP is platform independent scripting language that can run on all major operating systems. and Compatible with almost all servers. PHP is compatible with all servers used in present time.
  3. Secure : PHP has many layers of security to prevent threats and other malicious attacks.
  4. Simply to learn : PHP has a very simply and understandable syntax. Its codes are based on C, C ++ and are embedded with HTML, so it is very easy for programmers to learn.

Applications of PHP

  • PHP performs system functions. it can create, open, read- write and close files from the server or system.
  • PHP can handle forms
  • You add, remove, modify elements in your database via PHP.
  • Access the cookies variable and set cookies.
  • By using PHP, we can banned users to access few pages of your website.
  • It can encrypt data.