Earning sources

Recent online moneymaking guides.

Unlimited Music Library, No Fees. Raydiyo (spotify Killer)

Sunday, 30 June 2013

PHP Tutorial: Introduction

PHP set out as alittle open supply project that evolved as a lot of and a lot of folks recognized however helpful it absolutely was." Rasmus Lerdorf" unleashed the primary version of PHP approach back in 1994.

PHP may be a algorithmic signifier for "PHP: machine-readable text Pre-processor".

PHP may be a server facet scripting language that's embedded in HTML. it's accustomed manage dynamic content, databases, session trailing, even build entire e-commerce sites.

It is integrated with variety of well-liked databases, together with MySQL, PostgreSQL, Oracle, Sybase, Informix, and Microsoft SQL Server.

PHP is pleasingly zippy in its execution, particularly once compiled as associate Apache module on the UNIX system facet. The MySQL server, once started, executes even terribly complicated queries with vast result sets in record-setting time.

PHP supports an outsized variety of major protocols like POP3, IMAP, and LDAP. PHP4 further support for Java and distributed object architectures (COM and CORBA), creating n-tier development a break for the primary time.

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

PHP Syntax is C-Like.

Common uses of PHP:

PHP performs system functions, i.e. from files on a system it will produce, open, read, write, and shut them.

PHP will handle forms, i.e. gather information from files, save information to a file, through email you'll send information, come information to the user.

You add, delete, modify parts at intervals your information through PHP.

Access cookies variables and set cookies.

Using PHP, you'll prohibit users to access some pages of your web site.

It will encipher information.

Characteristics of PHP

Five necessary characteristics build PHP's sensible nature possible:

Simplicity

Efficiency

Security

Flexibility

Familiarity

"Hello World" Script in PHP:

To get a pity PHP, initial begin with straightforward PHP scripts. Since "Hello, World!" is a vital example, initial we'll produce a friendly very little "Hello, World!" script.

As mentioned earlier, PHP is embedded in HTML. which means that in amongst your traditional HTML (or XHTML if you are cutting-edge) you'll need PHP statements like this:
<html>
<head>
<title>Hello World</title>
<body>
    <?php echo "Hello, World!";?>
</body>
</html>
This will show you
Hello World

It will manufacture following result:

Hello, World!
If you examine the HTML output of the on top of example, you may notice that the PHP code isn't gift within the file sent from the server to your application program. All of the PHP gift within the web content is processed and stripped from the page; the sole issue came to the shopper from the online server is pure HTML output.

All PHP code should be enclosed within one in every of the 3 special markup tags Ate square measure recognised by the PHP computer program.

<?php PHP code goes here ?>

<?    PHP code goes here ?>

<script language="php"> PHP code goes here </script>

Most common tag is that the  and that we also will use same tag in our tutorial.

From following chapter we'll begin with PHP atmosphere Setup on your machine and so we'll dig out the majority ideas associated with PHP to create you snug with the PHP language.

No comments:

Post a Comment

Adbox