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 learn -Php
My self learn -PhpMy self learn -Php
My self learn -Php
 
My self learing -Php
My self learing -PhpMy self learing -Php
My self learing -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

Kürzlich hochgeladen (20)

“O BEIJO” EM ARTE .
“O BEIJO” EM ARTE                       .“O BEIJO” EM ARTE                       .
“O BEIJO” EM ARTE .
 
....................Muslim-Law notes.pdf
....................Muslim-Law notes.pdf....................Muslim-Law notes.pdf
....................Muslim-Law notes.pdf
 
2024_Student Session 2_ Set Plan Preparation.pptx
2024_Student Session 2_ Set Plan Preparation.pptx2024_Student Session 2_ Set Plan Preparation.pptx
2024_Student Session 2_ Set Plan Preparation.pptx
 
Features of Video Calls in the Discuss Module in Odoo 17
Features of Video Calls in the Discuss Module in Odoo 17Features of Video Calls in the Discuss Module in Odoo 17
Features of Video Calls in the Discuss Module in Odoo 17
 
Post Exam Fun(da) Intra UEM General Quiz - Finals.pdf
Post Exam Fun(da) Intra UEM General Quiz - Finals.pdfPost Exam Fun(da) Intra UEM General Quiz - Finals.pdf
Post Exam Fun(da) Intra UEM General Quiz - Finals.pdf
 
factors influencing drug absorption-final-2.pptx
factors influencing drug absorption-final-2.pptxfactors influencing drug absorption-final-2.pptx
factors influencing drug absorption-final-2.pptx
 
Research Methods in Psychology | Cambridge AS Level | Cambridge Assessment In...
Research Methods in Psychology | Cambridge AS Level | Cambridge Assessment In...Research Methods in Psychology | Cambridge AS Level | Cambridge Assessment In...
Research Methods in Psychology | Cambridge AS Level | Cambridge Assessment In...
 
Telling Your Story_ Simple Steps to Build Your Nonprofit's Brand Webinar.pdf
Telling Your Story_ Simple Steps to Build Your Nonprofit's Brand Webinar.pdfTelling Your Story_ Simple Steps to Build Your Nonprofit's Brand Webinar.pdf
Telling Your Story_ Simple Steps to Build Your Nonprofit's Brand Webinar.pdf
 
Pragya Champions Chalice 2024 Prelims & Finals Q/A set, General Quiz
Pragya Champions Chalice 2024 Prelims & Finals Q/A set, General QuizPragya Champions Chalice 2024 Prelims & Finals Q/A set, General Quiz
Pragya Champions Chalice 2024 Prelims & Finals Q/A set, General Quiz
 
[GDSC YCCE] Build with AI Online Presentation
[GDSC YCCE] Build with AI Online Presentation[GDSC YCCE] Build with AI Online Presentation
[GDSC YCCE] Build with AI Online Presentation
 
Dementia (Alzheimer & vasular dementia).
Dementia (Alzheimer & vasular dementia).Dementia (Alzheimer & vasular dementia).
Dementia (Alzheimer & vasular dementia).
 
The Benefits and Challenges of Open Educational Resources
The Benefits and Challenges of Open Educational ResourcesThe Benefits and Challenges of Open Educational Resources
The Benefits and Challenges of Open Educational Resources
 
Gyanartha SciBizTech Quiz slideshare.pptx
Gyanartha SciBizTech Quiz slideshare.pptxGyanartha SciBizTech Quiz slideshare.pptx
Gyanartha SciBizTech Quiz slideshare.pptx
 
Matatag-Curriculum and the 21st Century Skills Presentation.pptx
Matatag-Curriculum and the 21st Century Skills Presentation.pptxMatatag-Curriculum and the 21st Century Skills Presentation.pptx
Matatag-Curriculum and the 21st Century Skills Presentation.pptx
 
Operations Management - Book1.p - Dr. Abdulfatah A. Salem
Operations Management - Book1.p  - Dr. Abdulfatah A. SalemOperations Management - Book1.p  - Dr. Abdulfatah A. Salem
Operations Management - Book1.p - Dr. Abdulfatah A. Salem
 
Capitol Tech Univ Doctoral Presentation -May 2024
Capitol Tech Univ Doctoral Presentation -May 2024Capitol Tech Univ Doctoral Presentation -May 2024
Capitol Tech Univ Doctoral Presentation -May 2024
 
Basic_QTL_Marker-assisted_Selection_Sourabh.ppt
Basic_QTL_Marker-assisted_Selection_Sourabh.pptBasic_QTL_Marker-assisted_Selection_Sourabh.ppt
Basic_QTL_Marker-assisted_Selection_Sourabh.ppt
 
Basic Civil Engg Notes_Chapter-6_Environment Pollution & Engineering
Basic Civil Engg Notes_Chapter-6_Environment Pollution & EngineeringBasic Civil Engg Notes_Chapter-6_Environment Pollution & Engineering
Basic Civil Engg Notes_Chapter-6_Environment Pollution & Engineering
 
Incoming and Outgoing Shipments in 2 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 2 STEPS Using Odoo 17Incoming and Outgoing Shipments in 2 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 2 STEPS Using Odoo 17
 
How to Manage Notification Preferences in the Odoo 17
How to Manage Notification Preferences in the Odoo 17How to Manage Notification Preferences in the Odoo 17
How to Manage Notification Preferences in the Odoo 17
 

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.