Our social:
Propellerads

Tuesday, 19 April 2016

PHP Hello World

Image result for php logo


PHP started out as a little door source project that evolved as more and more people found out how useful it was. Rasmus Lerdorf unleashed the first marginal note of PHP showing off protection in 1994.

PHP is a recursive acronym for "PHP: Hypertext Preprocessor".

PHP is a server side scripting language that is embedded in HTML. It is used to manage in movement content, databases, session tracking, even construct entire e-commerce sites.

It is integrated when a number of popular databases, including MySQL, PostgreSQL, Oracle, Sybase, Informix, and Microsoft SQL Server.

PHP is agreeably zippy in its capability, especially considering compiled as an Apache module almost the Unix side. The MySQL server, behind started, executes even every single one obscure queries as soon as huge consequences sets in scrap book-vibes era.

PHP supports a large number of major protocols such as POP3, IMAP, and LDAP. PHP4 added preserve for Java and distributed endeavor architectures (COM and CORBA), making n-tier take to the lead a possibility for the first become archaic.

PHP is forgiving: PHP language tries to be as forgiving as realizable.

PHP Syntax is C-Like.

Common uses of PHP


  • PHP performs system functions, i.e. from files upon a system it can make, right of entry, entre, write, and stuffy them.
  • PHP can handle forms, i.e. pile up data from files, go without data to a file, thru email you can send data, reward data to the user.
  • You progress, delete, revolutionize elements within your database thru PHP.
  • Access cookies variables and set cookies.
  • Using PHP, you can restrict users to admission some pages of your website.
  • It can encrypt data.


Characteristics of PHP

Five important characteristics create PHP's practical natural world realizable

  • Simplicity
  • Efficiency
  • Security
  • Flexibility
  • Familiarity

"Hello World" Script in PHP

To acquire a air for PHP, first begin considering easy PHP scripts. Since "Hello, World!" is an necessary example, first we will create a nice tiny "Hello, World!" script.

As mentioned earlier, PHP is embedded in HTML. That means that in together surrounded by your passable HTML (or XHTML if you'in checking account to cutting-edge) you'll have PHP statements then this
A most common tag is the <?php...?> and we will also use the same tag in our tutorial.
From the next chapter we will start with PHP Environment Setup on your machine and then we will dig out almost all concepts related to PHP to make you comfortable with the PHP language.
Image result for php logo
              

<html>
   
   <head>
      <title>Hello World</title>
   </head>
   
   <body>
      <?php echo "Hello, World!";?>
   </body>

</html>
OUTPUT:
Hello, World!

0 comments:

Post a Comment