SlideShare ist ein Scribd-Unternehmen logo
1 von 5
Server Side Includes in PHP Prof. Ami Tusharkant Choksi Assistant Professor, Computer Engg. Dept, C.K.Pithawalla College of Engg. & Tech., Surat.
What is Server Side Includes[1,2]? - Used to to include the contents of one or more files into a web page on a web server. - include() or require() functions for Ssi. - The two functions are identical in every way, except how they handle errors: * include() generates a warning, but the script will continue execution * require() generates a fatal error, and the script will stop - used to create functions, headers, footers, or elements that will be reused on multiple pages
Example <?php include(“file.php”); test(); echo “testing”; ?> - file.php is having code <?php function test{ print “hello world”; }
require(“file.php”) <?php require(“file1.php”); test(); echo “testing”; ?> - testing will not be printed as  file1.php not available
References ,[object Object],[object Object]

Weitere ähnliche Inhalte

Was ist angesagt?

The Dog Ate My Deployment - PHP Uncoference September 2013
The Dog Ate My Deployment - PHP Uncoference September 2013The Dog Ate My Deployment - PHP Uncoference September 2013
The Dog Ate My Deployment - PHP Uncoference September 2013
D
 
The Dog Ate My Deployment - Symfony Usergroup Cologne July 2013
The Dog Ate My Deployment - Symfony Usergroup Cologne July 2013The Dog Ate My Deployment - Symfony Usergroup Cologne July 2013
The Dog Ate My Deployment - Symfony Usergroup Cologne July 2013
D
 
Dennis Benkert - The Dog Ate My Deployment - Symfony Usergroup Berlin March ...
Dennis Benkert -  The Dog Ate My Deployment - Symfony Usergroup Berlin March ...Dennis Benkert -  The Dog Ate My Deployment - Symfony Usergroup Berlin March ...
Dennis Benkert - The Dog Ate My Deployment - Symfony Usergroup Berlin March ...
D
 
Selenium Ide Tutorials
Selenium Ide TutorialsSelenium Ide Tutorials
Selenium Ide Tutorials
gueste1e4db
 

Was ist angesagt? (20)

Selenium online training
Selenium online trainingSelenium online training
Selenium online training
 
How to use_cucumber_rest-assured_api_framework
How to use_cucumber_rest-assured_api_frameworkHow to use_cucumber_rest-assured_api_framework
How to use_cucumber_rest-assured_api_framework
 
Get Started With Selenium 3 and Selenium 3 Grid
Get Started With Selenium 3 and Selenium 3 GridGet Started With Selenium 3 and Selenium 3 Grid
Get Started With Selenium 3 and Selenium 3 Grid
 
Telosys tutorial - Code generation for a Python web application based on Bott...
Telosys tutorial - Code generation for a Python web application based on Bott...Telosys tutorial - Code generation for a Python web application based on Bott...
Telosys tutorial - Code generation for a Python web application based on Bott...
 
Selenium
SeleniumSelenium
Selenium
 
Power Shell For Testers
Power Shell For TestersPower Shell For Testers
Power Shell For Testers
 
Intro to flask
Intro to flaskIntro to flask
Intro to flask
 
Virtualenv
VirtualenvVirtualenv
Virtualenv
 
Designing keyword and Data Driven Automation framework with Selenium
Designing keyword and Data Driven Automation framework with SeleniumDesigning keyword and Data Driven Automation framework with Selenium
Designing keyword and Data Driven Automation framework with Selenium
 
Selenium Basics Crashcourse
Selenium Basics CrashcourseSelenium Basics Crashcourse
Selenium Basics Crashcourse
 
The Dog Ate My Deployment - PHP Uncoference September 2013
The Dog Ate My Deployment - PHP Uncoference September 2013The Dog Ate My Deployment - PHP Uncoference September 2013
The Dog Ate My Deployment - PHP Uncoference September 2013
 
Selenium
SeleniumSelenium
Selenium
 
The Dog Ate My Deployment - Symfony Usergroup Cologne July 2013
The Dog Ate My Deployment - Symfony Usergroup Cologne July 2013The Dog Ate My Deployment - Symfony Usergroup Cologne July 2013
The Dog Ate My Deployment - Symfony Usergroup Cologne July 2013
 
Dennis Benkert - The Dog Ate My Deployment - Symfony Usergroup Berlin March ...
Dennis Benkert -  The Dog Ate My Deployment - Symfony Usergroup Berlin March ...Dennis Benkert -  The Dog Ate My Deployment - Symfony Usergroup Berlin March ...
Dennis Benkert - The Dog Ate My Deployment - Symfony Usergroup Berlin March ...
 
Selenium Ide Tutorials
Selenium Ide TutorialsSelenium Ide Tutorials
Selenium Ide Tutorials
 
Learn Test Automation using Selenium - Lesson 1
Learn Test Automation using Selenium - Lesson 1Learn Test Automation using Selenium - Lesson 1
Learn Test Automation using Selenium - Lesson 1
 
Automated UI testing with Selenium
Automated UI testing with SeleniumAutomated UI testing with Selenium
Automated UI testing with Selenium
 
Servlet session 5
Servlet   session 5Servlet   session 5
Servlet session 5
 
Selenium Ide Tutorial
Selenium Ide TutorialSelenium Ide Tutorial
Selenium Ide Tutorial
 
UI Testing Automation - Alex Kalinovsky - CreamTec LLC
UI Testing Automation - Alex Kalinovsky - CreamTec LLCUI Testing Automation - Alex Kalinovsky - CreamTec LLC
UI Testing Automation - Alex Kalinovsky - CreamTec LLC
 

Andere mochten auch

Web 3 Scott Prevost
Web 3 Scott PrevostWeb 3 Scott Prevost
Web 3 Scott Prevost
guest4513a7
 
Concept map 1111
Concept map 1111Concept map 1111
Concept map 1111
julidelgado
 
Presentatie Ifrs En Sox
Presentatie Ifrs En SoxPresentatie Ifrs En Sox
Presentatie Ifrs En Sox
rkonijnendijk
 
Trabajo De Sociales Campo Elias
Trabajo De Sociales Campo EliasTrabajo De Sociales Campo Elias
Trabajo De Sociales Campo Elias
052298
 
C:\Fakepath\Promote Awud
C:\Fakepath\Promote AwudC:\Fakepath\Promote Awud
C:\Fakepath\Promote Awud
CSFBookman
 
ELI2010 Doing More with Much, Much Less -- Koralesky
ELI2010 Doing More with Much, Much Less -- KoraleskyELI2010 Doing More with Much, Much Less -- Koralesky
ELI2010 Doing More with Much, Much Less -- Koralesky
Barron Koralesky
 
Presentation progress academy 2013 uk v0
Presentation progress academy 2013 uk v0Presentation progress academy 2013 uk v0
Presentation progress academy 2013 uk v0
Gauthier Van Assche
 

Andere mochten auch (20)

Web 3 Scott Prevost
Web 3 Scott PrevostWeb 3 Scott Prevost
Web 3 Scott Prevost
 
Concept map 1111
Concept map 1111Concept map 1111
Concept map 1111
 
Presentatie Ifrs En Sox
Presentatie Ifrs En SoxPresentatie Ifrs En Sox
Presentatie Ifrs En Sox
 
Trabajo De Sociales Campo Elias
Trabajo De Sociales Campo EliasTrabajo De Sociales Campo Elias
Trabajo De Sociales Campo Elias
 
Messenger Dog
Messenger DogMessenger Dog
Messenger Dog
 
Haaga Helia Kehittamistyo Atte Jarvela
Haaga Helia Kehittamistyo Atte JarvelaHaaga Helia Kehittamistyo Atte Jarvela
Haaga Helia Kehittamistyo Atte Jarvela
 
Well Fargo 2010 Tax Planning Tables
Well Fargo 2010 Tax Planning TablesWell Fargo 2010 Tax Planning Tables
Well Fargo 2010 Tax Planning Tables
 
Analytics Attematkailu Blogspot Com 20100201 20100303 (Dashboard Report)
Analytics Attematkailu Blogspot Com  20100201 20100303 (Dashboard Report)Analytics Attematkailu Blogspot Com  20100201 20100303 (Dashboard Report)
Analytics Attematkailu Blogspot Com 20100201 20100303 (Dashboard Report)
 
You Can Tune Your Own SQL Code
You Can Tune Your Own SQL CodeYou Can Tune Your Own SQL Code
You Can Tune Your Own SQL Code
 
C:\Fakepath\Promote Awud
C:\Fakepath\Promote AwudC:\Fakepath\Promote Awud
C:\Fakepath\Promote Awud
 
Marketing Strategy Templates
Marketing Strategy TemplatesMarketing Strategy Templates
Marketing Strategy Templates
 
Kuormausnosturin käyttö Iveco Stralis ja PM
Kuormausnosturin käyttö Iveco Stralis ja PMKuormausnosturin käyttö Iveco Stralis ja PM
Kuormausnosturin käyttö Iveco Stralis ja PM
 
The secret to being an effective virtual team
The secret to being an effective virtual teamThe secret to being an effective virtual team
The secret to being an effective virtual team
 
Intro to the AMP
Intro to the AMPIntro to the AMP
Intro to the AMP
 
E:\Iprimi30
E:\Iprimi30E:\Iprimi30
E:\Iprimi30
 
ELI2010 Doing More with Much, Much Less -- Koralesky
ELI2010 Doing More with Much, Much Less -- KoraleskyELI2010 Doing More with Much, Much Less -- Koralesky
ELI2010 Doing More with Much, Much Less -- Koralesky
 
Rural tech
Rural techRural tech
Rural tech
 
Presentation progress academy 2013 uk v0
Presentation progress academy 2013 uk v0Presentation progress academy 2013 uk v0
Presentation progress academy 2013 uk v0
 
Turisms Viresishow
Turisms ViresishowTurisms Viresishow
Turisms Viresishow
 
As a DBA, Where Do I Start? (1.0)
As a DBA, Where Do I Start? (1.0)As a DBA, Where Do I Start? (1.0)
As a DBA, Where Do I Start? (1.0)
 

Ähnlich wie SSI

My self learing -Php
My self learing -PhpMy self learing -Php
My self learing -Php
laavanyaD2009
 
1912851 635128322315095000
1912851 6351283223150950001912851 635128322315095000
1912851 635128322315095000
Ramya Rajee
 
PHP from the point of view of a webhoster
PHP from the point of view of a webhosterPHP from the point of view of a webhoster
PHP from the point of view of a webhoster
Dominic Lüchinger
 
High Performance JavaScript (CapitolJS 2011)
High Performance JavaScript (CapitolJS 2011)High Performance JavaScript (CapitolJS 2011)
High Performance JavaScript (CapitolJS 2011)
Nicholas Zakas
 
&lt;img src="../i/r_14.png" />
&lt;img src="../i/r_14.png" />&lt;img src="../i/r_14.png" />
&lt;img src="../i/r_14.png" />
tutorialsruby
 
php-mysql-tutorial-part-3
php-mysql-tutorial-part-3php-mysql-tutorial-part-3
php-mysql-tutorial-part-3
tutorialsruby
 
&lt;b>PHP&lt;/b>/MySQL &lt;b>Tutorial&lt;/b> webmonkey/programming/
&lt;b>PHP&lt;/b>/MySQL &lt;b>Tutorial&lt;/b> webmonkey/programming/&lt;b>PHP&lt;/b>/MySQL &lt;b>Tutorial&lt;/b> webmonkey/programming/
&lt;b>PHP&lt;/b>/MySQL &lt;b>Tutorial&lt;/b> webmonkey/programming/
tutorialsruby
 
php-mysql-tutorial-part-3
php-mysql-tutorial-part-3php-mysql-tutorial-part-3
php-mysql-tutorial-part-3
tutorialsruby
 

Ähnlich wie SSI (20)

My self learing -Php
My self learing -PhpMy self learing -Php
My self learing -Php
 
My self learn -Php
My self learn -PhpMy self learn -Php
My self learn -Php
 
1912851 635128322315095000
1912851 6351283223150950001912851 635128322315095000
1912851 635128322315095000
 
PHP from the point of view of a webhoster
PHP from the point of view of a webhosterPHP from the point of view of a webhoster
PHP from the point of view of a webhoster
 
High Performance JavaScript 2011
High Performance JavaScript 2011High Performance JavaScript 2011
High Performance JavaScript 2011
 
Selenium & PHPUnit made easy with Steward (Berlin, April 2017)
Selenium & PHPUnit made easy with Steward (Berlin, April 2017)Selenium & PHPUnit made easy with Steward (Berlin, April 2017)
Selenium & PHPUnit made easy with Steward (Berlin, April 2017)
 
Joomla! Day Chicago 2011 Presentation - Steven Pignataro
Joomla! Day Chicago 2011 Presentation - Steven PignataroJoomla! Day Chicago 2011 Presentation - Steven Pignataro
Joomla! Day Chicago 2011 Presentation - Steven Pignataro
 
High Performance JavaScript (CapitolJS 2011)
High Performance JavaScript (CapitolJS 2011)High Performance JavaScript (CapitolJS 2011)
High Performance JavaScript (CapitolJS 2011)
 
&lt;img src="../i/r_14.png" />
&lt;img src="../i/r_14.png" />&lt;img src="../i/r_14.png" />
&lt;img src="../i/r_14.png" />
 
Php Tutorial
Php TutorialPhp Tutorial
Php Tutorial
 
php-mysql-tutorial-part-3
php-mysql-tutorial-part-3php-mysql-tutorial-part-3
php-mysql-tutorial-part-3
 
&lt;b>PHP&lt;/b>/MySQL &lt;b>Tutorial&lt;/b> webmonkey/programming/
&lt;b>PHP&lt;/b>/MySQL &lt;b>Tutorial&lt;/b> webmonkey/programming/&lt;b>PHP&lt;/b>/MySQL &lt;b>Tutorial&lt;/b> webmonkey/programming/
&lt;b>PHP&lt;/b>/MySQL &lt;b>Tutorial&lt;/b> webmonkey/programming/
 
php-mysql-tutorial-part-3
php-mysql-tutorial-part-3php-mysql-tutorial-part-3
php-mysql-tutorial-part-3
 
Php interview questions
Php interview questionsPhp interview questions
Php interview questions
 
Learn Powershell Scripting Tutorial Full Course 1dollarcart.com.pdf
Learn Powershell Scripting Tutorial Full Course 1dollarcart.com.pdfLearn Powershell Scripting Tutorial Full Course 1dollarcart.com.pdf
Learn Powershell Scripting Tutorial Full Course 1dollarcart.com.pdf
 
ESIGate dev meeting #4 21-11-2013
ESIGate dev meeting #4 21-11-2013ESIGate dev meeting #4 21-11-2013
ESIGate dev meeting #4 21-11-2013
 
Develop At The Speed Of Thought
Develop At The Speed Of ThoughtDevelop At The Speed Of Thought
Develop At The Speed Of Thought
 
Php manish
Php manishPhp manish
Php manish
 
Php intro
Php introPhp intro
Php intro
 
PHP Basics
PHP BasicsPHP Basics
PHP Basics
 

Kürzlich hochgeladen

The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 

Kürzlich hochgeladen (20)

Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
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
 
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
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
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
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
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
 
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
 
Plant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptxPlant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptx
 
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
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
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
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 

SSI

  • 1. Server Side Includes in PHP Prof. Ami Tusharkant Choksi Assistant Professor, Computer Engg. Dept, C.K.Pithawalla College of Engg. & Tech., Surat.
  • 2. What is Server Side Includes[1,2]? - Used to to include the contents of one or more files into a web page on a web server. - include() or require() functions for Ssi. - The two functions are identical in every way, except how they handle errors: * include() generates a warning, but the script will continue execution * require() generates a fatal error, and the script will stop - used to create functions, headers, footers, or elements that will be reused on multiple pages
  • 3. Example <?php include(“file.php”); test(); echo “testing”; ?> - file.php is having code <?php function test{ print “hello world”; }
  • 4. require(“file.php”) <?php require(“file1.php”); test(); echo “testing”; ?> - testing will not be printed as file1.php not available
  • 5.