Why Register With OSV?

Join 5700+ of your peers

Get enriched. Access 1270+ quality tutorials right away on:

  • Joomla 2.5.X, 3.0.X
  • WordPress 3.5.X
  • Shopping Carts
  • E-Commerce Payment Gateways
  • PDFs for each tutorial - FREE for download
  • New topics and tutorials added weekly

FREE EBooks

FREE Templates

Member Login

Not a member yet? Sign Up!

Opensourcevarsity Logo
Tutorials & Training from experienced world class trainers

pdf icons

An Introduction to PHP

What is PHP?

PHP is a powerful tool for making dynamic and interactive Web pages.

PHP is a widely used Open Source, general-purpose, Web server-side scripting language. PHP is especially suited for Web development. HTML can be embedded into PHP. PHP is often referred to as a Hypertext Preprocessor and is always used in conjunction with a web server such as Apache.

PHP is actually an interpreter based, Hypertext (HTML) Pre Processor, created to run successfully with a host of Web servers. What PHP does is that it pre-processes the contents of any <filename.php> requested for by a Browser and delivered by the web server. Pre-processing of <filename.php> ensures that only pure HTML is delivered to the requesting Browser, HTML that has been correctly loaded with appropriate, well formatted and styled content.

The fact that PHP runs at the web server has several benefits and a few drawbacks. PHP is actually a simple language, which has great power for manipulating, formatting and styling data and delivering this to a requesting Browser.

PHP is not strongly typecast. PHP really has a very simple way of working with different types of memory variables. Memory variables are not declared to be of a specific type before they can be assigned a value to hold. If a number is assigned to a variable, then it just works. When the variable is later outputted to the browser, it just works. PHP takes care of converting the variable from an integer-type to a string-type, on the fly and automatically. PHP memory variables need not be pre-declared. They are simply created and assigned a value when required for use.

How PHP Works?

PHP sits between a Browser and a Web server. When you type in the URL of a PHP website in a Browser’s address bar and hit the GO key, the Browser sends out a request to the Web server. The Web server then calls the PHP script named in the URL or perhaps index.php which can be visualized as a gateway script. The PHP environment at the Web server executes the script, the output of the PHP script is pure HTML which is then sent back to the requesting Browser as shown in Diagram 1.

diagram1.gif
Diagram 1

What are PHP benefits?

PHP is a free, open source, Web server side scripting language.

That means you don't have to pay thousands of dollars in licensing fee to acquire PHP. Best of all, it is easy to install. The most striking feature of it is that it is easy to learn.

PHP is used by millions of people and developers around the world. There are thousands of websites on the internet which are written using PHP. One primary example is Yahoo! Bookmarks.

PHP has an ever growing community. There are thousands of websites, forums and community websites dedicated to PHP. Hence, assistance for PHP issues is always available most often for Free or if charged for the charges are always pretty modest.

PHP is a purpose built language for the internet. It is specifically designed to run on web servers to deliver dynamic web pages as quickly as possible, even on extremely high traffic websites.

Security is a huge factor in today's' IT world. PHP has proven itself to be extremely secure and more than sufficient to run high risk sites such as banking or e-commerce applications.

PHP has the huge advantage of being supported by virtually every server in the world. Unlike other languages that require expensive software to be installed on the server, PHP just requires Apache, a lightweight, free server side application that can be installed on any computer in the world. This compatibility and extremely economical running costs makes PHP the number one choice for businesses around the world.

What is a PHP File?

  • PHP files can contain text, HTML tags and scripts
  • PHP files are returned to the browser as plain HTML
  • PHP files have a file extension of ".php", ".php3", or ".phtml"

Why PHP?

  • PHP runs on different platforms (Windows, Linux, Unix, etc.)
  • PHP is compatible with almost all servers used today (Apache, IIS, etc.)
  • PHP is FREE to download from the official PHP resource: www.php.net
  • PHP is easy to learn and runs efficiently on the server side

Gravatar
vishal 10.05.2013 09:09  
php Yes No  

please provide php lectures for novice to masters.

 
   
       

We love Your Comments

What keeps you awake at night?
Do let us know.
We will try our best to deliver tutorials that will help you sleep much better.

Smileys

:confused: :cool: :cry: :laugh: :lol: :normal: :blush: :rolleyes: :sad: :shocked: :sick: :sleeping: :smile: :surprised: :tongue: :unsure: :whistle: :wink: 

  5000 Characters left

Antispam Refresh image Case insensitive

 

Download tutorials free

The tutorials at have been written by by passionate teachers who have been using open source tools and technologies for years.

Real time images of their development screens are generously used throughout each tutorial.

Download the tutorials to your desktop as PDFs for ready reference whenever you need

Download Free Templates

Free Templates

Give us your comments

Give us your comments or feedback on any of our tutorials.

Your comments help us deliver the best possible training modules.

Is there a specific tutorial you want written? Just Ask.

All Open source tutorials

Apache (10)    |   PHP (40)    |   MySQL(70)    |   JavaScript (40)    |   Ajax (20)    |   SEM (20)    |   SEO (20)

CONNECT WITH US

Sitemap   |   Privacy Policy   |   MySQL(70)   |   Disclaimer   |   Reach Out To Us
Designed by Ivan Bayross & Meher Bala | Powered by Joomla
© 2013 All Rights Reserved.