Loading...
Wednesday 18 November 2015

PHP Tutorial Part 1

Prerequisite for PHP:

Before learning PHP you should know HTML, if you don't know HTML first learn HTML and then come to this course of PHP then you will get more benefit. HTML is simple and easy language. Without HTML, web development is just like you want to drive vehicle but you don't have the key.
If you thought that HTML is not necessary because the the programs like DreamWeaver and Front Page  and Language IDEs can make the HTML Code,than you are wrong because you are developing one thing but, you don't know what is happening behind, you will not be a successful Web Developer. Some times such problems arises which can only be solved by code and PHP code is written in HTML means we embed the PHP code in HTML Program,  So HTML is necessary before learning the PHP Programming.
If you have good command on HTML than let to start PHP Course:

What is PHP?

PHP is widely used open source general purpose scripting language for web development and can be embedded in HTML.
The word PHP is the abbreviation of Hypertext Preprocessor previously it was personal Home page and still many people think that the abbreviation of PHP is Personal Home Page but due to its increasing popularity and use its name is now changed with community vote to Hypertext Preprocessor.
PHP is a Server Side Language / Technology which is embedded in HTML like ASP but it not same like HTML, if you have ever worked in HTML, you know that HTML is not a Programming Language but it is rendering language which is best for formatting web pages as well as inserting images, tables, lists, videos etc in Web Pages, but there is no command in HTML which can process HTML forms and make connection with Database or perform calculations.

The learning PHP is no problem for those who already have worked on Asp or Asp.net because they both resembles with each other. Many people think that PHP is copy made form Asp but it is not true because PHP was came into being in 1994 where ASP was introduced by Microsoft enough later.

PHP is used for creating dynamic websites, The difference between Static and Dynamic Web Pages is that the structure and content of dynamic web pages can change, while the content and structure of
static websites can not change.

History of PHP:

The first version of PHP was developed by a software engineer named Rasmus Lerdorf in 1994  for his personal use, which was a set of Micros(CGI Wrapper) through which he was able to know the visitors of his website. The next year he introduced an other package he call it "The Personal Home Page Tools", later it was improved and was add an other package "Form Interpreter" which was called PHP/FI which become very popular among the users.

Later PHP Version 2 was introduced with support of Parsing SQL Queries. In 1997 there was 50000 websites which was using PHP, due to this rapid enormous use of PHP it was not possible for a single person to further proceed it so a little development team started work on php as an Open Source Module and then time by time the developers from all over the world became part of the development.

The two Israeli programmers (1) Zeev Suraski and (2) Andi Gutmans proceed this work by introducing the Parsers of  PHP Versions 2 and 3 and they named it as ZEND which stands for Zeev and Andi, for further information about the zend visit www.zend.com.

In 1998 PHP was running on approximately 100,000 unique domains, only after one year no. becomes million, and in 2000 the no was more than 2 millions and in 2004 this no become 17 million and so on for further information visit http://www.php.net/usage. The main object of every Database is the table which stores the data/information of database, a relational database management system (RDBMS) Application like Access, MySQL, Oracle allows to make relationship of tables.
A Table is 2D Object which contains columns and rows, the columns in Database terms are called fields and the rows are called records. A Table is the collection of related data or we can say a table is collection of records. A Good Database Design is that in which each information is stored in different tables, means the information related to different category must store in different table. Suppose if we are developing a Library Database, in Library there may be Books information like Book Id , Book Name, Book Edition, Book Publishment data etc, Authors Information like Author Id, Author Name, author City, Author Email, the Publishers information like Publisher Id, Publisher Name, Publisher City, Publisher Address, Publisher Email, Publisher Website.

Many companies are using MySQL , To see  list of companies which are using MySQL Visit the following link:
http://www.mysql.com/customers/


Why to choose MySQL and PHP?

Suppose you want to develop an e-commerce website, for that you have to choose the the different products from the following list:

  1. Hardware for Web Server
  2. An Operating System
  3. A Web Server Software
  4. A Database Management System
  5. A Programming Language 
From Above list some products depends on an other such as every operating system can not support Every Hardware, and neither all the scripts / languages makes connection with all the Databases. 
The best thing about the PHP and MySql is that they runs approximately on all Operating systems, you can  run Php on linux apache and also you can run it on Windows IIS and PWS. When you choose any Hardware, any Operating System , any Web Server you will get PHP better on each and every platform. 
The Alternatives of PHP are MicroSoft Active Server Pages ASP, Asp.Net, Cold Fusion, Perl, Java Server Pages, (JSP).

If we compare PHP than its other alternatives PHP will be higher than other in many conditions. 
such as:
  1. Better Performance:  PHP is complete and full functionality server side language, which you can even use on any cheap server and provide the best service to lacks of users.
  2. Connectivity with different Database System: PHP supports many Database Management Systems, In  addition to mysql it can support FilePro, Hyperwave, Informix, Interbase, MSQL, Oracle, DBM, Postgre SQL etc. PHP5 have builtin Interface (for flat file) which is called SQl Lite. 
  3. Built in Libraries: As php is developed for the web, so it contains many builtin functions related with web, 
  4. Inexpensive: PHP is absolutely free you can download it form www.php.net
  5. Easy to learn and use: PHP syntax resembles to popular languages such as C, C++, Java, so if you know these languages or you have some know how of these languages, To Learn PHP is not matter for you, PHP is very easy to learn.  
  6. Object Oriented Support:  PHP5 has feature of Object Oriented Programming like C++, Java. The protected, Private, Inheritance, Classes, Objects, Methods, Constructors, Destrurctors means all the features of an Object Oriented Programming OOP are present in the PHP. 
  7. Source Code Availability: PHP is Open Source means its code is available for modification. if you want to make certain changing in php, you can download PHP code form www.php.net free. 
  8. Support Availability: The Zend Company ( www.zend.com) which is working on the PHP engine, they provide full support and related software for php.

Click Here to subscribe my YouTube Channel so that you can receive updates of my latest Training Videos and Articles.

php course tutorial part1
PHP Tutorial Part 1





0 Comments:

Post a Comment

 
TOP