Webmaster Forum


Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Coding Forum Problems with your code? Let's hear about it.

Directory Submission Service   ClickBooth Network   V7N Directory

Reply
 
LinkBack Thread Tools Display Modes
Old 11-23-2004, 01:54 PM   #1 (permalink)
Inactive
 
downtroden's Avatar
 
Join Date: 06-19-04
Location: Illinois
Posts: 149
iTrader: 0 / 0%
Latest Blog:
None

downtroden is liked by many
Send a message via AIM to downtroden
php vs. ssi include

can anyone offer an argument or opinion on which is faster/easier and why?
downtroden is offline  
Add Post to del.icio.us
Reply With Quote
Sponsored Links
SEO Hosting by HostGator  Advertise Here  Buy Blog Links
Old 11-23-2004, 04:53 PM   #2 (permalink)
Inactive
 
downtroden's Avatar
 
Join Date: 06-19-04
Location: Illinois
Posts: 149
iTrader: 0 / 0%
Latest Blog:
None

downtroden is liked by many
Send a message via AIM to downtroden
p.s

not looking to be convinced, just ignorant of the different types of server side includes.
downtroden is offline  
Add Post to del.icio.us
Reply With Quote
Old 11-29-2004, 09:36 AM   #3 (permalink)
Contributing Member
 
FGTH's Avatar
 
Join Date: 03-06-04
Location: NY, CT, CA, AZ
Posts: 552
iTrader: 0 / 0%
Latest Blog:
None

FGTH is a name known to allFGTH is a name known to allFGTH is a name known to allFGTH is a name known to allFGTH is a name known to allFGTH is a name known to allFGTH is a name known to allFGTH is a name known to allFGTH is a name known to allFGTH is a name known to allFGTH is a name known to all
SSI offers data / file display and cgi execution. Common commands/expressions are:
echo (print server environment variables such as DOCUMENT_URI, DATE_LOCAL)
include (virtual and file)
exec (cgi/perl)
if/else.
flastmod
fsize
tricks
Code:
<a href="<!--#echo var="HTTP_REFERER" -->">Back</a>
Works great when you have global components on your site. For instance, when you need to modify a global footer, all you need to do is change the include file for the global footer instead of having to change every footer on each page.

PHP offers everything SSI has in addition to practically anything you can do with perl including ODBC. The language is very similar to perl.
__________________
"90% of the game is half mental."
--Yogi Berra
Elizabeth Arden
FGTH is offline  
Add Post to del.icio.us
Reply With Quote
Old 11-29-2004, 10:01 AM   #4 (permalink)
v7n Mentor
 
imaginemn's Avatar
 
Join Date: 02-18-04
Location: Minneapolis, Minnesota
Posts: 1,940
iTrader: 0 / 0%
imaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to all
Send a message via MSN to imaginemn Send a message via Yahoo to imaginemn Send a message via Skype™ to imaginemn
SSI's are pretty simple regardless of the programming language. Here are a few examples of the differences.

ASP and ASP.NET include (.asp/.aspx file)

<!--#include virtual="/whatever.asp"-->
<!--#include file="whatever.asp"-->

HTML (.htm/.html/.shtml file)

<!--#include virtual="/whatever.asp"-->
<!--#include file="whatever.asp"-->

Cold Fusion (.cfm file)

<cfinclude template="whatever.cfm">

PHP (.php file)

<? include("whatever.php") ?>

The only advantage of having SSI files is to seperate the code and make the code re-usable on multiple pages. Makes code updates easier. Most common use is header, footer, and navigation include files. It doesn't make the page load any faster or slower.

imaginemn
__________________
Need a project done? - Set Your Own Price!
Imagine Creative Services
- Design : Marketing : Multimedia : More
imaginemn is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum

Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
SSI Include vs. PHP Include devilzfan300 Coding Forum 4 12-18-2006 01:14 PM
Include SN3 Coding Forum 11 06-12-2005 11:46 AM
PHP Include DOS Coding Forum 3 02-12-2005 12:40 AM
What Else Should I Include seonewbee Web Design Lobby 0 07-03-2004 01:15 PM
div include? Pretend Coding Forum 15 10-21-2003 02:35 PM


Sponsor Links
Get exposure! Get exposure! Find Scripts Web Hosting Directory Get exposure! SEO Blog


All times are GMT -7. The time now is 11:00 PM.
© Copyright 2008 V7 Inc