Forum Moderators: coopster & phranque

Message Too Old, No Replies

Will I have to upload all pages, if I only change one SSI file?

Basically everything is said.

         

damlag

3:36 pm on Jul 18, 2004 (gmt 0)

10+ Year Member



Hi all.

I'm planning to use some SSI on my site. I have finally gone through all issues installing and configuring apache, mysql, php, perl and SSI on my old win98SE. SSI works. I don't even have to use .shtml extension, it works with .html.

Anyway, I wonder now. If I changed that one file which is included in all other pages, would I have to upload all other pages which have that include?

I use WYSIWYG editor and it's very handy when You want to do changes. If You make a change in some files, software finds'em and uploads only files that are changed.

So I wonder if I'll use SSI's, I'll change one tiny file and all other files will change at the same time. So I'll have to upload them all again? Or not?

Edouard_H

7:16 pm on Jul 18, 2004 (gmt 0)

10+ Year Member



You only have to upload the included file for the changes to appear in all pages it's called in - not each of the pages. I think that's what you're asking....

damlag

8:16 pm on Jul 18, 2004 (gmt 0)

10+ Year Member



I understand now. But what about WYSIWYG programs like golive. Will they see that only one file (include) has changed or they will see that include and content on all other pages has changed and will suggest to upload them all?

lexipixel

9:34 am on Jul 20, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



An SSI, (Server Side Include), file is parsed and it's contents inserted into the calling page by the server at the time that page is served.

If the only thing that changed is the contents of the SSI file, (the path and filename have not changed), then in effect, nothing has changed in regards to your content pages, and your authoring / HTML editing program should NOT suggest that you update the server with files that contain the include directive.

Example:

Contents of "footer.html" is-

<CENTER>
<B>This is the footer I want included in all files</B>
</CENTER>

One or more pages contains the directive:

<!--#include file="footer.html"-->

And you change the contents of footer.html to-

<CENTER>
<B>This is at the bottom of all pages.</B>
</CENTER>

Then the include directive (contained in one or many pages) has not changed and you only need to upload a copy of "footer.html" to the server and the site is updated.

damlag

3:40 pm on Jul 20, 2004 (gmt 0)

10+ Year Member



Thank You for explaination. It's clear now.