SlideShare a Scribd company logo
Nikhil Joshi
1
PHP Overview
Presented By
Nikhil Joshi
Nikhil Joshi
2
CONTENTS
• Background
• History
• CSS
Nikhil Joshi
3
Backgounrd
• PHP is server side scripting system
– PHP stands for "PHP: Hypertext
Preprocessor"
– Syntax based on Perl, Java, and C
– Very good for creating dynamic
content
– Powerful, but somewhat risky!
Nikhil Joshi
4
PHP is a server-side scripting language designed primarily for web development but
Is also used as a general purpose programming language. Originally created by
Rasmus Lerdorf in 1994
Developer of PHP IS Zend Technologies
Latest version of PHP is 7.0.10
Nikhil Joshi
5
Syntax of PHP
<html>
<head>
<title> Example </title>
</head>
<body>
<?php
echo “hi, I’m a php script”;
?>
</body>
</html>
Nikhil Joshi
6
Layout
Layout can be designed using 2 ways :-
• Tabular
• Division
Tabular- Area taken on the basis of <tr> <td> tags.
Division- Division is area taken by <div> on the web pages
but it is invisible itself as long as you defines it’s border or
background.
Nikhil Joshi
7
CSS
It is used mainly for desining in Webpage.
3 Types of CSS
• Inline
• Internal
• External
Nikhil Joshi
8
Inline - within a line that is inline that is inline CSS is used within the
line of HTML tag and it’s syntax is :-
<tag_name Style=“at:value;at2value;a+3value”>
<p style=“color:red;font-size:50px;backgroundcolor:green”>Nikhil</p>
External - External CSS is maintained on the extra sheet and save this page with
.css extention and link this CSS to the particular html page
<link REL="STYLESHEET" TYPE="text/css" HREF="[Style sheet URL]">
Internal - An internal stylesheet holds the CSS code for the webpage in the
head section of the particular file. This makes it easy to apply styles
like classes or id's in order to reuse the code.
<style> p { font-size: 20px; font-weight: bold; } </style>
Nikhil Joshi
9
Selectors
• Id Universal
• Class parent/child Hierarchial
• Element(Tag) pseudo selector(Event like hover)
Id- Id selector is used in a HTML by using Id attribute like
<p id=“one”>Ram</p>
<p id=“two”>Mohan</p>
<p id=“three”>Sohan</p>
And maintain the Id using CSS by using # symbol with id name
Nikhil Joshi
10
Class Selector
The working of class selector is similar like Id selecetor but difference is that in place
Of Id.We use class in html tag & in place of # symbol we use . Symbol in a CSS.
Element Selector
Element selector is directly taken by it’s tag name that’swhy it is also known
tag selector.
Nikhil Joshi
11
Universal Selector
Universal Selector is applicable globally on the whole pages & it is maintained
In CSS using abstract symbol in CSS.
Parent/child Selector
<html>
<head>
</head>
<body>
<ul>
<li> oil </li>
</ul>
<ol>
<li> oil </li>
</ol>
</body>
</head>
</html>
Nikhil Joshi
12
Pseudo Selector
It is used for mainly perform events.
one.css
Ol li
{
color:red;
fontsize: 40px;
background_color:green;
}
Ol li:hover
{
color:yellow;
fontsize:20px;
}
Nikhil Joshi
13
Control Statements
There are 3 types of control statements
1) if Statement
2) if else Statement
3) if else if Statement
If Statement
If (expression)
{
code to be executed
}
<html>
<head>
</head>
<body>
<script>
var a=40;
if(a>20)
Nikhil Joshi
14
{
Document.write(“value is greater than 20”)
}
</script>
</body>
</html>
It evaluates the content only if the expression is true.
If else Statement
It evaluates the content wether the condition is true or false
If(expression)
{
Code to be executed
}
Else
{
}
Nikhil Joshi
15
<html>
<head>
</head>
<body>
<script>
var a=20;
if(a%2==0)
{
Document.write(“value is even”)
}
else
{
document.write(“value is odd”)
}
</script>
</body>
</html>
Nikhil Joshi
16
If else if Statement
It evaluates the content only if expression is true from several conditions
If(expresssion 1)
{
}
elseif(expression 2)
{
}
elseif(expression 3)
{
}
else
{
}
Nikhil Joshi
17
<html>
<head>
</head>
<body>
<script>
var a=20;
if(a==10)
{
document.write(a is equal to 10);
}
else if(a==15)
{
document.write(a is equal to 15);
}
else if(a==20)
{
document.write(a is equal to 20);
}
else
{
document.write(a is not equal to 10,15,20)
}
</script>
</body>
</html>
Nikhil Joshi
18
Strings
A String is a sequence of characters used to store and manipulate texts.
There are various functions to manipulate strings
• Strrev() This function is used to check the palindrome series of names and characters
<html>
<head>
</head>
<body>
<?php
$a=“nitin”;
if(strrev($a)==$a)
{
echo”name is palindrome”;
}
else
{
echo”name is not palindrome”;
}
?>
</body>
</html>
Nikhil Joshi
19
• Str_repeat()- If we want to repeat the object of the strings number of times then
we use string repeat function.
<html>
<head>
</head>
<body>
<?php
$a=“welcome”;
echo str_repeat($a,4);
?>
</body>
</html>
• Str_replace()- It is used to replace the characters
<html>
<head>
</head>
<body>
<?php
$a=“welcome”;
echo str_replace(“e”,”@”,$a);
?>
</body>
</html>
Nikhil Joshi
20
• Str_word_count() – It is used to count the number of words in a string
<html>
<head>
</head>
<body>
<?php
$a=“welcome to the world of php”;
echo str_word_count($a);
?>
</body>
</html>
• Strcmp() – This function is used to compare the 2 strings
<html>
<head>
</head>
<body>
<?php
$a=“hello”;
$a1=“hello”;
echo strcmp($a,$a1)
?>
</body>
</html>
Nikhil Joshi
21
Nikhil Joshi
22
File Handling In PHP
The file system functions allow us to acess and manipulate the file.File system provides a concept
to start a specific data using different types of file format.that means file give us linear type
database concept.
• How to create a file via PHP
The touch function is used to create a file
<?php
touch(“resume.doc”);
touch(“a.pdf”);
touch(“b.txt”);
?>
• How can we delete a file via PHP code
The Unlink function is used to delete a file.
<?php
unlink(“resume.doc”);
unlink(“a.pdf”);
unlink(“b.txt”);
?>
• How can we copy a file by PHP
The copy function is used to copy a file.
<?php
copy(“name of file with extention,name of destination file with etension”);
?>
Nikhil Joshi
23
• How can we rename a gift by PHP code
Rename function is used to rename a file.
<?php
rename(“name of file with extension”)
?>
• How can we check whether a file or a destination file is exist or not
The file_exist function is used to check the file or directory existance
<?php
echo file_exists(“resume.doc”);
?>
• How can we check the size of the file by php code
filesize function is used to check the size of the file
<?php
echo filesize(“resume.doc”);
?>
• How can we check the path of the file.
realpath function is used to check the path of the file
<?php
echo realpath(“resume.doc”);
?>
Nikhil Joshi
24
Best PHP Training in Noida , Delhi , Bhopal by KVCH
Nikhil Joshi
25
THANK YOU

More Related Content

PPTX
I Love codeigniter, You?
PDF
TDD with phpspec2
PDF
WordPress Theme Development for Designers
PPTX
WordPress Theme Development: Part 2
PDF
Intro to WordPress theme development
PDF
Efficient Rails Test-Driven Development - Week 6
PPTX
5 Reasons To Love CodeIgniter
PPTX
Web Components Revolution
I Love codeigniter, You?
TDD with phpspec2
WordPress Theme Development for Designers
WordPress Theme Development: Part 2
Intro to WordPress theme development
Efficient Rails Test-Driven Development - Week 6
5 Reasons To Love CodeIgniter
Web Components Revolution

What's hot (19)

PDF
Efficient Rails Test Driven Development (class 4) by Wolfram Arnold
PDF
Efficient Rails Test Driven Development (class 3) by Wolfram Arnold
PPTX
The Django Web Application Framework 2
PPTX
WordPress theme development from scratch : ICT MeetUp 2013 Nepal
PDF
Pragmatic Browser Automation with Geb - GIDS 2015
KEY
Jumpstart Django
PDF
PDF
Working with the django admin
KEY
Geek Moot '09 -- Smarty 101
PDF
Hyperproductive JSF 2.0 @ JavaOne Brazil 2010
PDF
Better Selenium Tests with Geb - Selenium Conf 2014
PDF
Two scoops of django 1.6 - Ch7, Ch8
PPTX
PyCon APAC - Django Test Driven Development
PDF
Becoming a better WordPress Developer
PPT
Framework
PDF
TDD with PhpSpec
KEY
Gaelyk: Lightweight Groovy on the Google App Engine
PPT
Jquery presentation
Efficient Rails Test Driven Development (class 4) by Wolfram Arnold
Efficient Rails Test Driven Development (class 3) by Wolfram Arnold
The Django Web Application Framework 2
WordPress theme development from scratch : ICT MeetUp 2013 Nepal
Pragmatic Browser Automation with Geb - GIDS 2015
Jumpstart Django
Working with the django admin
Geek Moot '09 -- Smarty 101
Hyperproductive JSF 2.0 @ JavaOne Brazil 2010
Better Selenium Tests with Geb - Selenium Conf 2014
Two scoops of django 1.6 - Ch7, Ch8
PyCon APAC - Django Test Driven Development
Becoming a better WordPress Developer
Framework
TDD with PhpSpec
Gaelyk: Lightweight Groovy on the Google App Engine
Jquery presentation
Ad

Viewers also liked (13)

DOCX
Curriculum Vitae magdoline
DOCX
Unlicensed spectra fusion and interference coordination for lte systems
PPTX
Мастер-класс "Кризис личности российского руководителя". ВШЭ "Институт налого...
PPTX
Blockchain in banking bucharest meetup
PPSX
IDEA Design Round Presentation
PDF
Psicología del color
PPTX
Tendencias creativas 2016
PPTX
NICSA Webinar | SEC Transfer Agent Rule Revamp
PPTX
Hodgkin’s lymphoma
PPT
theories of leadership
PPT
Basic computer maintenance
PPTX
Personal selling process
PDF
Slideshare blogging - Widerspruchskompetenzen im Fuehrungskraeftetrainig - he...
Curriculum Vitae magdoline
Unlicensed spectra fusion and interference coordination for lte systems
Мастер-класс "Кризис личности российского руководителя". ВШЭ "Институт налого...
Blockchain in banking bucharest meetup
IDEA Design Round Presentation
Psicología del color
Tendencias creativas 2016
NICSA Webinar | SEC Transfer Agent Rule Revamp
Hodgkin’s lymphoma
theories of leadership
Basic computer maintenance
Personal selling process
Slideshare blogging - Widerspruchskompetenzen im Fuehrungskraeftetrainig - he...
Ad

Similar to PHP training in Noida,delhi,bhopal (20)

PDF
Industrial training report
PPTX
Web Development Technologies (HTML, CSS, JavaScript, PHP, Ajax )
PPTX
Jquery in web development, including Jquery in HTML
PPTX
WEB DEVELOPMENT
PPT
Overview of PHP and MYSQL
PDF
shobhit training report (3) (4).pdf report
PPTX
Website development-osgl
PDF
UNIT4.pdf php basic programming for begginers
PPTX
Unit 5-PHP Declaring variables, data types, array, string, operators, Expres...
PPT
PPTX
introduction to server-side scripting
PPT
PHP - Introduction to PHP Fundamentals
PPTX
Introduction to Html5, css, Javascript and Jquery
PPTX
An Overview of HTML, CSS & Java Script
PPT
Intro to PHP for Students and professionals
PPT
Website designing company_in_delhi_phpwebdevelopment
PPT
Prersentation
PPTX
Basic of PHP
PPTX
PHP language presentation
Industrial training report
Web Development Technologies (HTML, CSS, JavaScript, PHP, Ajax )
Jquery in web development, including Jquery in HTML
WEB DEVELOPMENT
Overview of PHP and MYSQL
shobhit training report (3) (4).pdf report
Website development-osgl
UNIT4.pdf php basic programming for begginers
Unit 5-PHP Declaring variables, data types, array, string, operators, Expres...
introduction to server-side scripting
PHP - Introduction to PHP Fundamentals
Introduction to Html5, css, Javascript and Jquery
An Overview of HTML, CSS & Java Script
Intro to PHP for Students and professionals
Website designing company_in_delhi_phpwebdevelopment
Prersentation
Basic of PHP
PHP language presentation

Recently uploaded (20)

PDF
Vision Prelims GS PYQ Analysis 2011-2022 www.upscpdf.com.pdf
PDF
FOISHS ANNUAL IMPLEMENTATION PLAN 2025.pdf
DOC
Soft-furnishing-By-Architect-A.F.M.Mohiuddin-Akhand.doc
PDF
FORM 1 BIOLOGY MIND MAPS and their schemes
PDF
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
PPTX
ELIAS-SEZIURE AND EPilepsy semmioan session.pptx
PDF
Weekly quiz Compilation Jan -July 25.pdf
PDF
Environmental Education MCQ BD2EE - Share Source.pdf
PDF
Trump Administration's workforce development strategy
PDF
1.3 FINAL REVISED K-10 PE and Health CG 2023 Grades 4-10 (1).pdf
PDF
International_Financial_Reporting_Standa.pdf
PDF
احياء السادس العلمي - الفصل الثالث (التكاثر) منهج متميزين/كلية بغداد/موهوبين
DOCX
Cambridge-Practice-Tests-for-IELTS-12.docx
PDF
Complications of Minimal Access-Surgery.pdf
PPTX
Computer Architecture Input Output Memory.pptx
PDF
BP 704 T. NOVEL DRUG DELIVERY SYSTEMS (UNIT 1)
PDF
Practical Manual AGRO-233 Principles and Practices of Natural Farming
PPTX
Onco Emergencies - Spinal cord compression Superior vena cava syndrome Febr...
PDF
medical_surgical_nursing_10th_edition_ignatavicius_TEST_BANK_pdf.pdf
PDF
My India Quiz Book_20210205121199924.pdf
Vision Prelims GS PYQ Analysis 2011-2022 www.upscpdf.com.pdf
FOISHS ANNUAL IMPLEMENTATION PLAN 2025.pdf
Soft-furnishing-By-Architect-A.F.M.Mohiuddin-Akhand.doc
FORM 1 BIOLOGY MIND MAPS and their schemes
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
ELIAS-SEZIURE AND EPilepsy semmioan session.pptx
Weekly quiz Compilation Jan -July 25.pdf
Environmental Education MCQ BD2EE - Share Source.pdf
Trump Administration's workforce development strategy
1.3 FINAL REVISED K-10 PE and Health CG 2023 Grades 4-10 (1).pdf
International_Financial_Reporting_Standa.pdf
احياء السادس العلمي - الفصل الثالث (التكاثر) منهج متميزين/كلية بغداد/موهوبين
Cambridge-Practice-Tests-for-IELTS-12.docx
Complications of Minimal Access-Surgery.pdf
Computer Architecture Input Output Memory.pptx
BP 704 T. NOVEL DRUG DELIVERY SYSTEMS (UNIT 1)
Practical Manual AGRO-233 Principles and Practices of Natural Farming
Onco Emergencies - Spinal cord compression Superior vena cava syndrome Febr...
medical_surgical_nursing_10th_edition_ignatavicius_TEST_BANK_pdf.pdf
My India Quiz Book_20210205121199924.pdf

PHP training in Noida,delhi,bhopal

  • 3. Nikhil Joshi 3 Backgounrd • PHP is server side scripting system – PHP stands for "PHP: Hypertext Preprocessor" – Syntax based on Perl, Java, and C – Very good for creating dynamic content – Powerful, but somewhat risky!
  • 4. Nikhil Joshi 4 PHP is a server-side scripting language designed primarily for web development but Is also used as a general purpose programming language. Originally created by Rasmus Lerdorf in 1994 Developer of PHP IS Zend Technologies Latest version of PHP is 7.0.10
  • 5. Nikhil Joshi 5 Syntax of PHP <html> <head> <title> Example </title> </head> <body> <?php echo “hi, I’m a php script”; ?> </body> </html>
  • 6. Nikhil Joshi 6 Layout Layout can be designed using 2 ways :- • Tabular • Division Tabular- Area taken on the basis of <tr> <td> tags. Division- Division is area taken by <div> on the web pages but it is invisible itself as long as you defines it’s border or background.
  • 7. Nikhil Joshi 7 CSS It is used mainly for desining in Webpage. 3 Types of CSS • Inline • Internal • External
  • 8. Nikhil Joshi 8 Inline - within a line that is inline that is inline CSS is used within the line of HTML tag and it’s syntax is :- <tag_name Style=“at:value;at2value;a+3value”> <p style=“color:red;font-size:50px;backgroundcolor:green”>Nikhil</p> External - External CSS is maintained on the extra sheet and save this page with .css extention and link this CSS to the particular html page <link REL="STYLESHEET" TYPE="text/css" HREF="[Style sheet URL]"> Internal - An internal stylesheet holds the CSS code for the webpage in the head section of the particular file. This makes it easy to apply styles like classes or id's in order to reuse the code. <style> p { font-size: 20px; font-weight: bold; } </style>
  • 9. Nikhil Joshi 9 Selectors • Id Universal • Class parent/child Hierarchial • Element(Tag) pseudo selector(Event like hover) Id- Id selector is used in a HTML by using Id attribute like <p id=“one”>Ram</p> <p id=“two”>Mohan</p> <p id=“three”>Sohan</p> And maintain the Id using CSS by using # symbol with id name
  • 10. Nikhil Joshi 10 Class Selector The working of class selector is similar like Id selecetor but difference is that in place Of Id.We use class in html tag & in place of # symbol we use . Symbol in a CSS. Element Selector Element selector is directly taken by it’s tag name that’swhy it is also known tag selector.
  • 11. Nikhil Joshi 11 Universal Selector Universal Selector is applicable globally on the whole pages & it is maintained In CSS using abstract symbol in CSS. Parent/child Selector <html> <head> </head> <body> <ul> <li> oil </li> </ul> <ol> <li> oil </li> </ol> </body> </head> </html>
  • 12. Nikhil Joshi 12 Pseudo Selector It is used for mainly perform events. one.css Ol li { color:red; fontsize: 40px; background_color:green; } Ol li:hover { color:yellow; fontsize:20px; }
  • 13. Nikhil Joshi 13 Control Statements There are 3 types of control statements 1) if Statement 2) if else Statement 3) if else if Statement If Statement If (expression) { code to be executed } <html> <head> </head> <body> <script> var a=40; if(a>20)
  • 14. Nikhil Joshi 14 { Document.write(“value is greater than 20”) } </script> </body> </html> It evaluates the content only if the expression is true. If else Statement It evaluates the content wether the condition is true or false If(expression) { Code to be executed } Else { }
  • 15. Nikhil Joshi 15 <html> <head> </head> <body> <script> var a=20; if(a%2==0) { Document.write(“value is even”) } else { document.write(“value is odd”) } </script> </body> </html>
  • 16. Nikhil Joshi 16 If else if Statement It evaluates the content only if expression is true from several conditions If(expresssion 1) { } elseif(expression 2) { } elseif(expression 3) { } else { }
  • 17. Nikhil Joshi 17 <html> <head> </head> <body> <script> var a=20; if(a==10) { document.write(a is equal to 10); } else if(a==15) { document.write(a is equal to 15); } else if(a==20) { document.write(a is equal to 20); } else { document.write(a is not equal to 10,15,20) } </script> </body> </html>
  • 18. Nikhil Joshi 18 Strings A String is a sequence of characters used to store and manipulate texts. There are various functions to manipulate strings • Strrev() This function is used to check the palindrome series of names and characters <html> <head> </head> <body> <?php $a=“nitin”; if(strrev($a)==$a) { echo”name is palindrome”; } else { echo”name is not palindrome”; } ?> </body> </html>
  • 19. Nikhil Joshi 19 • Str_repeat()- If we want to repeat the object of the strings number of times then we use string repeat function. <html> <head> </head> <body> <?php $a=“welcome”; echo str_repeat($a,4); ?> </body> </html> • Str_replace()- It is used to replace the characters <html> <head> </head> <body> <?php $a=“welcome”; echo str_replace(“e”,”@”,$a); ?> </body> </html>
  • 20. Nikhil Joshi 20 • Str_word_count() – It is used to count the number of words in a string <html> <head> </head> <body> <?php $a=“welcome to the world of php”; echo str_word_count($a); ?> </body> </html> • Strcmp() – This function is used to compare the 2 strings <html> <head> </head> <body> <?php $a=“hello”; $a1=“hello”; echo strcmp($a,$a1) ?> </body> </html>
  • 22. Nikhil Joshi 22 File Handling In PHP The file system functions allow us to acess and manipulate the file.File system provides a concept to start a specific data using different types of file format.that means file give us linear type database concept. • How to create a file via PHP The touch function is used to create a file <?php touch(“resume.doc”); touch(“a.pdf”); touch(“b.txt”); ?> • How can we delete a file via PHP code The Unlink function is used to delete a file. <?php unlink(“resume.doc”); unlink(“a.pdf”); unlink(“b.txt”); ?> • How can we copy a file by PHP The copy function is used to copy a file. <?php copy(“name of file with extention,name of destination file with etension”); ?>
  • 23. Nikhil Joshi 23 • How can we rename a gift by PHP code Rename function is used to rename a file. <?php rename(“name of file with extension”) ?> • How can we check whether a file or a destination file is exist or not The file_exist function is used to check the file or directory existance <?php echo file_exists(“resume.doc”); ?> • How can we check the size of the file by php code filesize function is used to check the size of the file <?php echo filesize(“resume.doc”); ?> • How can we check the path of the file. realpath function is used to check the path of the file <?php echo realpath(“resume.doc”); ?>
  • 24. Nikhil Joshi 24 Best PHP Training in Noida , Delhi , Bhopal by KVCH