SlideShare a Scribd company logo
1 of 15
BATRA COMPUTER CENTRE
Website: www.batracomputercentre.com Ph.no.: 8222066670, 4000670
Email: info.jatinbatra@gmail.com
BATRA COMPUTER CENTRE
Website: www.batracomputercentre.com Ph.no.: 8222066670, 4000670
Email: info.jatinbatra@gmail.com
What is PHP
Advantages of Using PHP to enhance Web Pages:
 Easy to use
 Open source
 Multiple platform
BATRA COMPUTER CENTRE
Website: www.batracomputercentre.com Ph.no.: 8222066670, 4000670
Email: info.jatinbatra@gmail.com
How PHP Pages are Accessed & Interpreted
BATRA COMPUTER CENTRE
Website: www.batracomputercentre.com Ph.no.: 8222066670, 4000670
Email: info.jatinbatra@gmail.com
Getting Started with PHP
To develop and publish PHP script all you need is :
 A web server with PHP built into it
 A client machine with a basic text editor and internet connection
 FTP or Telnet software
BATRA COMPUTER CENTRE
Website: www.batracomputercentre.com Ph.no.: 8222066670, 4000670
Email: info.jatinbatra@gmail.com
Exploring the basic PHP development process
The basic step you can use to develop and publish PHP pages are:
 Create a PHP script file and save to a local disk
 Use FTP to copy the file to the server
 Access your file using a server
BATRA COMPUTER CENTRE
Website: www.batracomputercentre.com Ph.no.: 8222066670, 4000670
Email: info.jatinbatra@gmail.com
Creating a PHP Script File & Saving it to
a local disk
You can use a number of different editors to create your PHP script files.
 The PHP script with a <?php tag
and ends with?>
 Between these tags is a single
PHP print statement.
BATRA COMPUTER CENTRE
Website: www.batracomputercentre.com Ph.no.: 8222066670, 4000670
Email: info.jatinbatra@gmail.com
Alternative PHP Delimiters
 You can alternatively start your PHP script with the <script> tag as follows:
-- <script language=“PHP”>
print ( “A simple initial script”);
</script>
 If have short_open_tag enabled in its configuration file, you can use<?and ?>
 If asp_tags is enabled in the PHP configuration file, you can use < % and % > as
delimiters.
BATRA COMPUTER CENTRE
Website: www.batracomputercentre.com Ph.no.: 8222066670, 4000670
Email: info.jatinbatra@gmail.com
Copying Files to a web Server with FTP
 Connect to the internet and start
FTP
 Connect to your Web server with
FTP
 Copy files to the web server
BATRA COMPUTER CENTRE
Website: www.batracomputercentre.com Ph.no.: 8222066670, 4000670
Email: info.jatinbatra@gmail.com
Accessing your File Using a Browser
BATRA COMPUTER CENTRE
Website: www.batracomputercentre.com Ph.no.: 8222066670, 4000670
Email: info.jatinbatra@gmail.com
Proper Syntax
 If you have a syntax error than you have written one or more PHP
statements that are grammatically incorrect in the PHP language
 The print statement syntax:
Print ( “your message to print” ) ;
Enclose message
in quotation
marks
Parenthesis are optional
End in a
semi-colon
Message to output
BATRA COMPUTER CENTRE
Website: www.batracomputercentre.com Ph.no.: 8222066670, 4000670
Email: info.jatinbatra@gmail.com
If use Improper syntax
1. <?php
2. Print (“A simple initial script);
3. ?>
Suppose you use the wrong syntax
BATRA COMPUTER CENTRE
Website: www.batracomputercentre.com Ph.no.: 8222066670, 4000670
Email: info.jatinbatra@gmail.com
If use Improper syntax
1. Be careful to use quotation marks, parentheses, and brackets in
pairs.
2. Most PHP commands end with a semicolon (;)
3. Be careful of case
4. PHP ignores blank spaces
Some PHP syntax Issues:
BATRA COMPUTER CENTRE
Website: www.batracomputercentre.com Ph.no.: 8222066670, 4000670
Email: info.jatinbatra@gmail.com
BATRA COMPUTER CENTRE
Website: www.batracomputercentre.com Ph.no.: 8222066670, 4000670
Email: info.jatinbatra@gmail.com
ADDRESS:
SCO -15, Dayal Bagh,
Near Hanuman Mandir
Ambala Cantt-133001
Haryana
Ph. No.: 9729666670, 8222066670 &0171-
4000670
Email ID: info.jatinbatra@gmail.com
Website: www.batracomputercentre.com
BATRA COMPUTER CENTRE
Website: www.batracomputercentre.com Ph.no.: 8222066670, 4000670
Email: info.jatinbatra@gmail.com

More Related Content

More from jatin batra

More from jatin batra (20)

Best Photoshop Training in Ambala
 Best Photoshop Training  in Ambala Best Photoshop Training  in Ambala
Best Photoshop Training in Ambala
 
Best C Programming Training & Coaching in Ambala
Best C Programming Training & Coaching in AmbalaBest C Programming Training & Coaching in Ambala
Best C Programming Training & Coaching in Ambala
 
BASIC COMPUTER TRAINING & COACHING CENTRE IN AMBALA CANTT
BASIC COMPUTER TRAINING & COACHING CENTRE IN AMBALA CANTTBASIC COMPUTER TRAINING & COACHING CENTRE IN AMBALA CANTT
BASIC COMPUTER TRAINING & COACHING CENTRE IN AMBALA CANTT
 
Web Browser ! Batra Computer Centre
Web Browser ! Batra Computer CentreWeb Browser ! Batra Computer Centre
Web Browser ! Batra Computer Centre
 
Search Engine Training in Ambala ! Batra Computer Centre
Search Engine Training in Ambala ! Batra Computer CentreSearch Engine Training in Ambala ! Batra Computer Centre
Search Engine Training in Ambala ! Batra Computer Centre
 
Networking Training in Ambala ! Batra Computer Centre
Networking Training in Ambala ! Batra Computer CentreNetworking Training in Ambala ! Batra Computer Centre
Networking Training in Ambala ! Batra Computer Centre
 
SQL Training in Ambala ! BATRA COMPUTER CENTRE
SQL Training in Ambala ! BATRA COMPUTER CENTRESQL Training in Ambala ! BATRA COMPUTER CENTRE
SQL Training in Ambala ! BATRA COMPUTER CENTRE
 
Networking ! BATRA COMPUTER CENTRE
Networking ! BATRA COMPUTER CENTRENetworking ! BATRA COMPUTER CENTRE
Networking ! BATRA COMPUTER CENTRE
 
Ms Office 2010 Training in Ambala ! BATRA COMPUTER CENTRE
Ms Office 2010 Training in Ambala ! BATRA COMPUTER CENTREMs Office 2010 Training in Ambala ! BATRA COMPUTER CENTRE
Ms Office 2010 Training in Ambala ! BATRA COMPUTER CENTRE
 
Basic Computer Training Centre in Ambala ! BATRA COMPUTER CENTRE
Basic Computer Training Centre in Ambala ! BATRA COMPUTER CENTREBasic Computer Training Centre in Ambala ! BATRA COMPUTER CENTRE
Basic Computer Training Centre in Ambala ! BATRA COMPUTER CENTRE
 
Corel Draw Training Institute in Ambala ! BATRA COMPUTER CENTRE
Corel Draw Training Institute in Ambala ! BATRA COMPUTER CENTRECorel Draw Training Institute in Ambala ! BATRA COMPUTER CENTRE
Corel Draw Training Institute in Ambala ! BATRA COMPUTER CENTRE
 
Basic Computer Training Institute ! BATRA COMPUTER CENTRE
Basic Computer Training Institute ! BATRA COMPUTER CENTREBasic Computer Training Institute ! BATRA COMPUTER CENTRE
Basic Computer Training Institute ! BATRA COMPUTER CENTRE
 
HTML Training Institute in Ambala ! Batra Computer Centre
HTML Training Institute in Ambala ! Batra Computer CentreHTML Training Institute in Ambala ! Batra Computer Centre
HTML Training Institute in Ambala ! Batra Computer Centre
 
Benefits of Web Browser ! Batra Computer Centre
Benefits of Web Browser ! Batra Computer CentreBenefits of Web Browser ! Batra Computer Centre
Benefits of Web Browser ! Batra Computer Centre
 
SEO Training in Ambala ! Batra Computer Centre
SEO Training in Ambala ! Batra Computer CentreSEO Training in Ambala ! Batra Computer Centre
SEO Training in Ambala ! Batra Computer Centre
 
Internet Training Centre in Ambala ! Batra Computer Centre
Internet Training Centre in Ambala ! Batra Computer CentreInternet Training Centre in Ambala ! Batra Computer Centre
Internet Training Centre in Ambala ! Batra Computer Centre
 
Basic Computer Training Centre in Ambala ! Batra Computer Centre
Basic Computer Training Centre in Ambala ! Batra Computer CentreBasic Computer Training Centre in Ambala ! Batra Computer Centre
Basic Computer Training Centre in Ambala ! Batra Computer Centre
 
Web Designing Training in Ambala ! Batra Computer Centre
Web Designing Training in Ambala ! Batra Computer CentreWeb Designing Training in Ambala ! Batra Computer Centre
Web Designing Training in Ambala ! Batra Computer Centre
 
Web Development Training in Ambala ! Batra Computer Centre
Web Development Training in Ambala ! Batra Computer CentreWeb Development Training in Ambala ! Batra Computer Centre
Web Development Training in Ambala ! Batra Computer Centre
 
SQL Training In Ambala ! Batra Computer Centre
SQL Training In Ambala ! Batra Computer CentreSQL Training In Ambala ! Batra Computer Centre
SQL Training In Ambala ! Batra Computer Centre
 

Recently uploaded

Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
KarakKing
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 

Recently uploaded (20)

Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 

6 week Industrial Training in php ! Batra Computer Centre

  • 1. BATRA COMPUTER CENTRE Website: www.batracomputercentre.com Ph.no.: 8222066670, 4000670 Email: info.jatinbatra@gmail.com
  • 2. BATRA COMPUTER CENTRE Website: www.batracomputercentre.com Ph.no.: 8222066670, 4000670 Email: info.jatinbatra@gmail.com What is PHP Advantages of Using PHP to enhance Web Pages:  Easy to use  Open source  Multiple platform
  • 3. BATRA COMPUTER CENTRE Website: www.batracomputercentre.com Ph.no.: 8222066670, 4000670 Email: info.jatinbatra@gmail.com How PHP Pages are Accessed & Interpreted
  • 4. BATRA COMPUTER CENTRE Website: www.batracomputercentre.com Ph.no.: 8222066670, 4000670 Email: info.jatinbatra@gmail.com Getting Started with PHP To develop and publish PHP script all you need is :  A web server with PHP built into it  A client machine with a basic text editor and internet connection  FTP or Telnet software
  • 5. BATRA COMPUTER CENTRE Website: www.batracomputercentre.com Ph.no.: 8222066670, 4000670 Email: info.jatinbatra@gmail.com Exploring the basic PHP development process The basic step you can use to develop and publish PHP pages are:  Create a PHP script file and save to a local disk  Use FTP to copy the file to the server  Access your file using a server
  • 6. BATRA COMPUTER CENTRE Website: www.batracomputercentre.com Ph.no.: 8222066670, 4000670 Email: info.jatinbatra@gmail.com Creating a PHP Script File & Saving it to a local disk You can use a number of different editors to create your PHP script files.  The PHP script with a <?php tag and ends with?>  Between these tags is a single PHP print statement.
  • 7. BATRA COMPUTER CENTRE Website: www.batracomputercentre.com Ph.no.: 8222066670, 4000670 Email: info.jatinbatra@gmail.com Alternative PHP Delimiters  You can alternatively start your PHP script with the <script> tag as follows: -- <script language=“PHP”> print ( “A simple initial script”); </script>  If have short_open_tag enabled in its configuration file, you can use<?and ?>  If asp_tags is enabled in the PHP configuration file, you can use < % and % > as delimiters.
  • 8. BATRA COMPUTER CENTRE Website: www.batracomputercentre.com Ph.no.: 8222066670, 4000670 Email: info.jatinbatra@gmail.com Copying Files to a web Server with FTP  Connect to the internet and start FTP  Connect to your Web server with FTP  Copy files to the web server
  • 9. BATRA COMPUTER CENTRE Website: www.batracomputercentre.com Ph.no.: 8222066670, 4000670 Email: info.jatinbatra@gmail.com Accessing your File Using a Browser
  • 10. BATRA COMPUTER CENTRE Website: www.batracomputercentre.com Ph.no.: 8222066670, 4000670 Email: info.jatinbatra@gmail.com Proper Syntax  If you have a syntax error than you have written one or more PHP statements that are grammatically incorrect in the PHP language  The print statement syntax: Print ( “your message to print” ) ; Enclose message in quotation marks Parenthesis are optional End in a semi-colon Message to output
  • 11. BATRA COMPUTER CENTRE Website: www.batracomputercentre.com Ph.no.: 8222066670, 4000670 Email: info.jatinbatra@gmail.com If use Improper syntax 1. <?php 2. Print (“A simple initial script); 3. ?> Suppose you use the wrong syntax
  • 12. BATRA COMPUTER CENTRE Website: www.batracomputercentre.com Ph.no.: 8222066670, 4000670 Email: info.jatinbatra@gmail.com If use Improper syntax 1. Be careful to use quotation marks, parentheses, and brackets in pairs. 2. Most PHP commands end with a semicolon (;) 3. Be careful of case 4. PHP ignores blank spaces Some PHP syntax Issues:
  • 13. BATRA COMPUTER CENTRE Website: www.batracomputercentre.com Ph.no.: 8222066670, 4000670 Email: info.jatinbatra@gmail.com
  • 14. BATRA COMPUTER CENTRE Website: www.batracomputercentre.com Ph.no.: 8222066670, 4000670 Email: info.jatinbatra@gmail.com ADDRESS: SCO -15, Dayal Bagh, Near Hanuman Mandir Ambala Cantt-133001 Haryana Ph. No.: 9729666670, 8222066670 &0171- 4000670 Email ID: info.jatinbatra@gmail.com Website: www.batracomputercentre.com
  • 15. BATRA COMPUTER CENTRE Website: www.batracomputercentre.com Ph.no.: 8222066670, 4000670 Email: info.jatinbatra@gmail.com