SlideShare uma empresa Scribd logo
1 de 25
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

Mais conteúdo relacionado

Mais procurados

Efficient Rails Test Driven Development (class 4) by Wolfram Arnold
Efficient Rails Test Driven Development (class 4) by Wolfram ArnoldEfficient Rails Test Driven Development (class 4) by Wolfram Arnold
Efficient Rails Test Driven Development (class 4) by Wolfram ArnoldMarakana Inc.
 
Efficient Rails Test Driven Development (class 3) by Wolfram Arnold
Efficient Rails Test Driven Development (class 3) by Wolfram ArnoldEfficient Rails Test Driven Development (class 3) by Wolfram Arnold
Efficient Rails Test Driven Development (class 3) by Wolfram ArnoldMarakana Inc.
 
The Django Web Application Framework 2
The Django Web Application Framework 2The Django Web Application Framework 2
The Django Web Application Framework 2fishwarter
 
WordPress theme development from scratch : ICT MeetUp 2013 Nepal
WordPress theme development from scratch : ICT MeetUp 2013 NepalWordPress theme development from scratch : ICT MeetUp 2013 Nepal
WordPress theme development from scratch : ICT MeetUp 2013 NepalChandra Prakash Thapa
 
Pragmatic Browser Automation with Geb - GIDS 2015
Pragmatic Browser Automation with Geb - GIDS 2015Pragmatic Browser Automation with Geb - GIDS 2015
Pragmatic Browser Automation with Geb - GIDS 2015Naresha K
 
Jumpstart Django
Jumpstart DjangoJumpstart Django
Jumpstart Djangoryates
 
Working with the django admin
Working with the django admin Working with the django admin
Working with the django admin flywindy
 
Geek Moot '09 -- Smarty 101
Geek Moot '09 -- Smarty 101Geek Moot '09 -- Smarty 101
Geek Moot '09 -- Smarty 101Ted Kulp
 
Hyperproductive JSF 2.0 @ JavaOne Brazil 2010
Hyperproductive JSF 2.0 @ JavaOne Brazil 2010Hyperproductive JSF 2.0 @ JavaOne Brazil 2010
Hyperproductive JSF 2.0 @ JavaOne Brazil 2010Arun Gupta
 
Better Selenium Tests with Geb - Selenium Conf 2014
Better Selenium Tests with Geb - Selenium Conf 2014Better Selenium Tests with Geb - Selenium Conf 2014
Better Selenium Tests with Geb - Selenium Conf 2014Naresha K
 
Two scoops of django 1.6 - Ch7, Ch8
Two scoops of django 1.6  - Ch7, Ch8Two scoops of django 1.6  - Ch7, Ch8
Two scoops of django 1.6 - Ch7, Ch8flywindy
 
PyCon APAC - Django Test Driven Development
PyCon APAC - Django Test Driven DevelopmentPyCon APAC - Django Test Driven Development
PyCon APAC - Django Test Driven DevelopmentTudor Munteanu
 
Becoming a better WordPress Developer
Becoming a better WordPress DeveloperBecoming a better WordPress Developer
Becoming a better WordPress DeveloperJoey Kudish
 
Gaelyk: Lightweight Groovy on the Google App Engine
Gaelyk: Lightweight Groovy on the Google App EngineGaelyk: Lightweight Groovy on the Google App Engine
Gaelyk: Lightweight Groovy on the Google App EngineTim Berglund
 
Jquery presentation
Jquery presentationJquery presentation
Jquery presentationguest5d87aa6
 

Mais procurados (19)

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

Destaque

Unlicensed spectra fusion and interference coordination for lte systems
Unlicensed spectra fusion and interference coordination for lte systemsUnlicensed spectra fusion and interference coordination for lte systems
Unlicensed spectra fusion and interference coordination for lte systemsFinalyearprojects Toall
 
Мастер-класс "Кризис личности российского руководителя". ВШЭ "Институт налого...
Мастер-класс "Кризис личности российского руководителя". ВШЭ "Институт налого...Мастер-класс "Кризис личности российского руководителя". ВШЭ "Институт налого...
Мастер-класс "Кризис личности российского руководителя". ВШЭ "Институт налого...Андрей Анатольевич Ващенко
 
Blockchain in banking bucharest meetup
Blockchain in banking   bucharest meetupBlockchain in banking   bucharest meetup
Blockchain in banking bucharest meetupAlex Proca
 
NICSA Webinar | SEC Transfer Agent Rule Revamp
NICSA Webinar | SEC Transfer Agent Rule RevampNICSA Webinar | SEC Transfer Agent Rule Revamp
NICSA Webinar | SEC Transfer Agent Rule RevampNICSA
 
theories of leadership
 theories of leadership theories of leadership
theories of leadershipruelpunzalan
 
Basic computer maintenance
Basic computer maintenanceBasic computer maintenance
Basic computer maintenanceMohit Patodia
 
Personal selling process
Personal selling process Personal selling process
Personal selling process Nasrullah Khan
 
Slideshare blogging - Widerspruchskompetenzen im Fuehrungskraeftetrainig - he...
Slideshare blogging - Widerspruchskompetenzen im Fuehrungskraeftetrainig - he...Slideshare blogging - Widerspruchskompetenzen im Fuehrungskraeftetrainig - he...
Slideshare blogging - Widerspruchskompetenzen im Fuehrungskraeftetrainig - he...Heinz Peter Wallner
 

Destaque (13)

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

Semelhante a PHP training in Noida,delhi,bhopal

Semelhante a PHP training in Noida,delhi,bhopal (20)

PHP-Part1
PHP-Part1PHP-Part1
PHP-Part1
 
Php
PhpPhp
Php
 
Basics PHP
Basics PHPBasics PHP
Basics PHP
 
Php Tutorial
Php TutorialPhp Tutorial
Php Tutorial
 
Introduction to web development
Introduction to web developmentIntroduction to web development
Introduction to web development
 
Drupal7 Theming session on the occassion of Drupal7 release party in Delhi NCR
Drupal7 Theming session on the occassion of  Drupal7 release party in Delhi NCRDrupal7 Theming session on the occassion of  Drupal7 release party in Delhi NCR
Drupal7 Theming session on the occassion of Drupal7 release party in Delhi NCR
 
Lecture8
Lecture8Lecture8
Lecture8
 
Introduction to PHP
Introduction to PHPIntroduction to PHP
Introduction to PHP
 
PHP and MySQL.ppt
PHP and MySQL.pptPHP and MySQL.ppt
PHP and MySQL.ppt
 
HackU PHP and Node.js
HackU PHP and Node.jsHackU PHP and Node.js
HackU PHP and Node.js
 
Php
PhpPhp
Php
 
Practical HTML5: Using It Today
Practical HTML5: Using It TodayPractical HTML5: Using It Today
Practical HTML5: Using It Today
 
basic concept of php(Gunikhan sonowal)
basic concept of php(Gunikhan sonowal)basic concept of php(Gunikhan sonowal)
basic concept of php(Gunikhan sonowal)
 
LIS3353 SP12 Week 4
LIS3353 SP12 Week 4LIS3353 SP12 Week 4
LIS3353 SP12 Week 4
 
Coder Presentation Szeged
Coder Presentation SzegedCoder Presentation Szeged
Coder Presentation Szeged
 
Prersentation
PrersentationPrersentation
Prersentation
 
PHP FUNCTIONS
PHP FUNCTIONSPHP FUNCTIONS
PHP FUNCTIONS
 
Php mysql
Php mysqlPhp mysql
Php mysql
 
Basic php 5
Basic php 5Basic php 5
Basic php 5
 
JavaScriptL18 [Autosaved].pptx
JavaScriptL18 [Autosaved].pptxJavaScriptL18 [Autosaved].pptx
JavaScriptL18 [Autosaved].pptx
 

Último

Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajanpragatimahajan3
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...PsychoTech Services
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingTeacherCyreneCayanan
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfAyushMahapatra5
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Disha Kariya
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 

Último (20)

Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajan
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writing
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 

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