01 Php Introduction

45 %
55 %
Information about 01 Php Introduction
Technology

Published on June 27, 2009

Author: geshan

Source: slideshare.net

Description

Introduction to PHP.

Day 1 PHP Introduction Geshan Manandhar Developer, Young Innovations Pvt. Limited www.geshanmanandhar.com

What is PHP PHP, which stands for “PHP: Hypertext Preprocessor”. PHP is a widely-used Open Source general-purpose scripting language. It is especially suited for Web development and can be embedded into HTML. It was originally created by Rasmus Lerdorf in 1995.

PHP, which stands for “PHP: Hypertext Preprocessor”.

PHP is a widely-used Open Source general-purpose scripting language.

It is especially suited for Web development and can be embedded into HTML.

It was originally created by Rasmus Lerdorf in 1995.

More About PHP PHP is free software released under the PHP License. PHP typically runs on a web server that takes PHP as input and gives out HTML pages as output. PHP is installed on more than 20 million websites and 1 million web servers. PHP has a syntax similar to C and Java. The current version of PHP is 5.2.x.

PHP is free software released under the PHP License.

PHP typically runs on a web server that takes PHP as input and gives out HTML pages as output.

PHP is installed on more than 20 million websites and 1 million web servers.

PHP has a syntax similar to C and Java.

The current version of PHP is 5.2.x.

Features of PHP It is Free and Open source. Easy to learn but hard to master. Connects with 20+ databases. Version 5+ supports OOP. Multi-platform compatible.

It is Free and Open source.

Easy to learn but hard to master.

Connects with 20+ databases.

Version 5+ supports OOP.

Multi-platform compatible.

The LAMP Stack Apache is the web server. MYSQL is the database server. PHP is the backend coding language.

Apache is the web server.

MYSQL is the database server.

PHP is the backend coding language.

PHP Trend

What will you learn

Software required to run PHP on Windows XAMPP X- for all platforms (windows, linux…) A- Apache web server M- MYSQL with PHPMyAdmin P- PHP P- Perl That’s all you need you must have good IDE to code.

XAMPP

X- for all platforms (windows, linux…)

A- Apache web server

M- MYSQL with PHPMyAdmin

P- PHP

P- Perl

That’s all you need you must have good IDE to code.

IDEs for PHP development IDE – Integrated Development Environment Adobe Dreameweaver Notepad++ Zend Development Studio PHP Eclipse

IDE – Integrated Development Environment

Adobe Dreameweaver

Notepad++

Zend Development Studio

PHP Eclipse

Ways to code your PHP website or web Application Source: http://geshan.blogspot.com

Basic PHP Program Hello world X:xampphtdocsmy_folderfirst_prog.php <?php //starting delimeter echo “Hello world”; //print hello world ?> Add some complication: <?php $message = “Hello world”; print $message; ?>

Hello world

X:xampphtdocsmy_folderfirst_prog.php

Delimiter, tags and comments <?php //php code ?> - long tag <? ?> - short tag <% %> - ASP style not preferred <script language=&quot;php&quot;>         //php tag     </script> - uncommon <?= ?> - shortcut for echo //line comment /* block comment */

<?php //php code ?> - long tag

<? ?> - short tag

<% %> - ASP style not preferred

<script language=&quot;php&quot;>         //php tag     </script> - uncommon

<?= ?> - shortcut for echo

//line comment

/* block comment */

PHP Data Types Boolean Integer Float String Array Objects

Boolean

Integer

Float

String

Array

Objects

Another simple program Simple price calculation <?php $qty = 5; $price = 10000; $amt = $qty*$price; echo “Rs. “.number_format($amt, 2); ?>

Simple price calculation

<?php

$qty = 5;

$price = 10000;

$amt = $qty*$price;

echo “Rs. “.number_format($amt, 2);

?>

Lets Install XAMPP Lets install XAMPP and run 2 programs Ask questions.

Lets install XAMPP and run 2 programs

Ask questions.

Add a comment

Related presentations

Presentación que realice en el Evento Nacional de Gobierno Abierto, realizado los ...

In this presentation we will describe our experience developing with a highly dyna...

Presentation to the LITA Forum 7th November 2014 Albuquerque, NM

Un recorrido por los cambios que nos generará el wearabletech en el futuro

Um paralelo entre as novidades & mercado em Wearable Computing e Tecnologias Assis...

Microsoft finally joins the smartwatch and fitness tracker game by introducing the...

Related pages

01 PHP Introduction - YouTube

01-PHP and MySQL Introduction (PHP and MySQL Essential Training)By Eng-Mohammed Yahya - Duration: 14:44. Free4arab | Information Technology ...
Read more

01 PHP Introduction - Dr. Mossab Al Hunaity Web ...

View Notes - 01 PHP Introduction from MANAGEMENT 11111 at جامعة عجمان. Dr. Mossab Al Hunaity Web Development Class - . Dr. Mossab Al Hunaity Web
Read more

01 - PHP Introduction 0101 What This Course Covers - YouTube

Want to watch this again later? Sign in to add this video to a playlist
Read more

PHP: Introduction - Manual

Introduction Table of Contents. What is PHP? What can PHP do? add a note User Contributed Notes . There are no user contributed notes for this page ...
Read more

Lesson 01: Introduction to PHP - Function X

PHP is a scripting language used to create interactive webpages. An interactive webpage allows a visitor to submit values and get instantaneous feedback.
Read more

PHP 01: Introduction - slidegur.com

PHP 01: Introduction + Report
Read more

Architektur-Rundgang außen, 01 – Introduction

01 – Introduction. People coming to Stuttgart for the first time and driving along the busy traffic artery Konrad-Adenauer-Strasse are always fascinated ...
Read more

Killerphp.com - Introduction to Object Oriented PHP

Video: Introduction to Object Oriented PHP. By: Stefan Mischook - www.killerphp.com
Read more

Introduction - AEM Engineering

AEM Engineering is a company based in Denmark and China, with special expertise in renewable energy, and with the main activities in the field of Biogas ...
Read more