bhel jhansi industrial training at information technology department
DESCRIPTION
TRANSCRIPT
PowerPoint Presentation
Prepared by: Harshit Gupta
A Presentation on Industrial Training done @ BHEL, Jhansi
On PHP.
About the company
Owned by Government Of India. Established in 1964.
An power plant equipment manufacturer & operates as an engineering & manufacturing company, based in New Delhi, IN.
Indias largest engineering & manufacturing company of its kind.
Has been conferred with Maharatna status by GOI.
Engaged in core sectors Power, Transmission, Industry, Transportation, Renewable Energy, Oil & Gas and Defense.
7th Largest power equipment manufacturer in the world.
Placed at 4th place in Forbes Asias Fabulous 50 List in 2010.
Ranked 9th in most innovative company in the world by US Business Magazine Forbes in 2011.
& much more.
01
Beginning with PHP.
Level: Beginner
[PHP Hypertext Preprocessor]
2
Topics to be Covered
1. What is PHP ?
2. Basics of PHP.
3. Writing simple programs in PHP.
4. Why use PHP ?
5. More on PHP programming.
6. Retrieving data from the client.
7. Designing forms.
3
PHP is a cross-platform, HTML-embedded, server-side web scripting language
21-Jul-14 4:58:12 PM
5
4
Cross-platform
You can run most PHP code, without alteration, on computers running many different operating systems. A PHP script that runs on Linux will generally run on Windows as well.
HTML-embedded
PHP code is written in files containing a mixture of PHP instructions and HTML code.
Server-side
The PHP programs we write are run on a server specifically, a web server.
A web scripting language
We run PHP programs via a web browser. We access the web server on which they reside, and this runs the program, sending any resulting output back to the browser.
Some basic PHP concepts
21-Jul-14 4:58:13 PM
6
5
It's a programming language for building dynamic, interactive web sites.
PHP stands for recursive acronym PHP Hypertext Preprocessor
Originally devised by Rasmus Lerdorf way back in 1994.
My First PHP Program!
Hands on experience
6
Basic code in text editor
My First page
hello.php
How it looks on web browser
21-Jul-14 4:58:13 PM
8
Example 1
7
Why use PHP ?
21-Jul-14 4:58:13 PM
9
8
21-Jul-14 4:58:13 PM
10
Browser processes HTML and displays page
Delivering a web page
6
9
Architecture of Web application
21-Jul-14 4:58:13 PM
11
10
Features of PHP
21-Jul-14 4:58:13 PM
12
11
Its an open source programming language. No input resources are required while working with PHP. No additional environment for programming is required in PHP.
Script is used in PHP to write the instructions that allow pages to be created dynamically. Advantages of scripting:
1) customizing web pages for a particular browser,
2) personalizing information, and utilizing a particular profile for each individual,
3) generating graphics that pure HTML returns.
What makes PHP different to JavaScript, or just plain HTML, is the fact that it is executed on the server, not the browser.
Variables in PHP
21-Jul-14 4:58:13 PM
13
$variable_name=value;
Note :
$variable_name$Variable_name
12
Variable types
string (text) example, $name=employee
integer (numeric) example, $value=100
double (numeric)
Array
Object
21-Jul-14 4:58:13 PM
14
13
Basic code in text editor
simple_interest.php
How it looks on web browser
21-Jul-14 4:58:13 PM
15
Example 2
14
Getting data from the client
21-Jul-14 4:58:13 PM
16
15
Retrieving data through HTML forms
Text fields
Checkboxes
Radio buttons
Listboxes
option1
Passwords
Submit and Reset buttons
21-Jul-14 4:58:13 PM
17
16
FORM Attributes
21-Jul-14 4:58:13 PM
18
ACTION-tells the server which page to go to once the user has clicked a submit button on the form.
...
METHOD-controls the way that information is sent to the server. It can do this in one of two ways-GET and POST
ID, CLASS, DIR,LANGUAGE, NAME, STYLE, and TITLE
17
GET and POST
21-Jul-14 4:58:13 PM
19
18
GET
The browser append the values the user placed on the form to the URL by adding a question mark to the end of the URL to denote where the URL finishes and the form information starts. The information is transmitted in the form of name/value pairs.
POST
Information in the form is sent in the body of the HTTP request, rather than as part of the URL. This means that it isn't visible to everybody, because it isn't attached to the URL.
Employee Online Information System
19
20
21
22
Thank you for your attention
23
2014 | Harshit Gupta
SRM University
Chennai, IN
fb
/harshitgupta23
Get Social
t
@harshit23
To download, visit
slideshare.net/harshitgupta231