SSI
Upcoming SlideShare
Loading in...5
×
 

SSI

on

  • 582 views

server side includes in PHP

server side includes in PHP

Statistics

Views

Total Views
582
Views on SlideShare
582
Embed Views
0

Actions

Likes
0
Downloads
10
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

SSI SSI Presentation Transcript

  • 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
    • http://en.wikipedia.org/wiki/Server_side_include
    • http://www.w3schools.com/PHP/php_includes.asp