Welcome, Guest. Please login or register for free.
Did you miss your activation email?
Saturday 05 July 08 21:48 BST (UK)
Welcome Home Help Shop Search Calendar Login Register
Search Images 

Online
 
  First Name(s)

Last Name

 
News: Ad: Millions of Records, Millions of Answers. Ancestry.co.uk - Click here

+  RootsChat.Com
|-+  General
| |-+  The Common Room
| | |-+  Free RootsChat Webspace (Moderator: trystan)
| | | |-+  Server Side Includes?
« previous next »
Pages: [1] Print
Author Topic: Server Side Includes?  (Read 681 times)
kateblogs
RootsChat Extra
**
Offline Offline

Posts: 81


Youth is wasted on the young


WWW
Server Side Includes?
« on: Saturday 30 September 06 11:18 BST (UK) »

I was just wondering if I could use the above on my Rootschat space to call in a text file for the sidebar code.

Thank you for the space, it's great!

Kate
Logged

BARNES - Nottinghamshire
GILBY - Essex, Warwickshire and Cambridgeshire
HANFORD/HANDFORD - Dorset, Nottingham and Edinburgh
HOLMES - Nottinghamshire
LINTHWAITE - Nottinghamshire
MASON - Cambridgeshire
MCSHANE - Ireland and Liverpool
MORRISON - East Riding (Hull) and Edinburgh
OWENS - Yorkshire (West Riding) and Ireland
PUGH - Yorkshire, Derbyshire, Cheshire
RYLANDS - Liverpool and Ireland
SANSAM - Nottinghamshire
TODER - Nottinghamshire
WAYNE - Birmingham and Nottingham
WILSON - Nottingham
downside
RootsChat Aristocrat
******
Offline Offline

Posts: 2315


Make my day


WWW
Re: Server Side Includes?
« Reply #1 on: Sunday 08 October 06 16:37 BST (UK) »

Hi Kate

It looks like no one has dipped their toe in the water so far with this query.

Can you elaborate on what you are trying to do?

downside
Logged

Sussex: Floate, West
Kent: Tuffee
Cheshire: Gradwell
Zeb
RootsChat Senior
****
Offline Offline

Posts: 431



WWW
Re: Server Side Includes?
« Reply #2 on: Monday 09 October 06 00:26 BST (UK) »

The best thing to do is run a couple tests and see what the results are as SSI is something that can be enabled or disabled. Its really up to whoever manages the server to decide if they want to allow it or not.

Create a file called "test.html" and use this:
Code:
<html>
<head>
  <title>SSI Test</title>
</head>
<body>
  The date is <!--#echo var="DATE_LOCAL" -->
</body>
</html>
Upload that and try it. If you get the date after "The date is" then it works. If you only get "The date is" and no date then try renaming the file as "test.shtml" and try again as SSI can be set to only work with specific file extensions.
Logged

Derby: WOODCOCK (Donnington)
Devon: HARRIS (Plymouth)
Lancashire: DERRICK
Lincolnshire: CROPPER, WOODCOCK (Boston)
London: BARKER, DUGGIN, HARRIS, HINTON, HULBERT, WHITE
Wales: HARRIS, PRITCHARD (Pembrokeshire)
Warwickshire: DERRICK, WOODCOCK
Desperate for my Woodcocks from Birmingham!
kateblogs
RootsChat Extra
**
Offline Offline

Posts: 81


Youth is wasted on the young


WWW
Re: Server Side Includes?
« Reply #3 on: Monday 09 October 06 10:02 BST (UK) »

Hi Kate

It looks like no one has dipped their toe in the water so far with this query.

Can you elaborate on what you are trying to do?

downside

I am hoping to be able to use a server side include to 'call up' the unchanging content on each page, for example the navigation links, page header and so on. I have done this on other web pages and it is a lot easier to change the content of one file than to alter each and every page. If it isn't possible that's ok,  I just thought it would be useful to know if I could.

Kate
Logged

BARNES - Nottinghamshire
GILBY - Essex, Warwickshire and Cambridgeshire
HANFORD/HANDFORD - Dorset, Nottingham and Edinburgh
HOLMES - Nottinghamshire
LINTHWAITE - Nottinghamshire
MASON - Cambridgeshire
MCSHANE - Ireland and Liverpool
MORRISON - East Riding (Hull) and Edinburgh
OWENS - Yorkshire (West Riding) and Ireland
PUGH - Yorkshire, Derbyshire, Cheshire
RYLANDS - Liverpool and Ireland
SANSAM - Nottinghamshire
TODER - Nottinghamshire
WAYNE - Birmingham and Nottingham
WILSON - Nottingham
kateblogs
RootsChat Extra
**
Offline Offline

Posts: 81


Youth is wasted on the young


WWW
Re: Server Side Includes?
« Reply #4 on: Monday 09 October 06 10:04 BST (UK) »

The best thing to do is run a couple tests and see what the results are as SSI is something that can be enabled or disabled. Its really up to whoever manages the server to decide if they want to allow it or not.

Create a file called "test.html" and use this:
Code:
<html>
<head>
  <title>SSI Test</title>
</head>
<body>
  The date is <!--#echo var="DATE_LOCAL" -->
</body>
</html>
Upload that and try it. If you get the date after "The date is" then it works. If you only get "The date is" and no date then try renaming the file as "test.shtml" and try again as SSI can be set to only work with specific file extensions.

Thanks for this Zeb - I'll have a go when I've finished my second cup of coffee.

Kate
Logged

BARNES - Nottinghamshire
GILBY - Essex, Warwickshire and Cambridgeshire
HANFORD/HANDFORD - Dorset, Nottingham and Edinburgh
HOLMES - Nottinghamshire
LINTHWAITE - Nottinghamshire
MASON - Cambridgeshire
MCSHANE - Ireland and Liverpool
MORRISON - East Riding (Hull) and Edinburgh
OWENS - Yorkshire (West Riding) and Ireland
PUGH - Yorkshire, Derbyshire, Cheshire
RYLANDS - Liverpool and Ireland
SANSAM - Nottinghamshire
TODER - Nottinghamshire
WAYNE - Birmingham and Nottingham
WILSON - Nottingham
gbaynes
RootsChat Member
***
Offline Offline

Posts: 119



WWW
Re: Server Side Includes?
« Reply #5 on: Monday 09 October 06 11:28 BST (UK) »

On Rootschat, PHP is enabled.

So you can do what you want to do using PHP.

But you have to change the file extension from .htm or .html to .php

I cannot think, offhand what the actual code is that you insert into your file but I'm sure someone will come up with the goods.

George
Logged
downside
RootsChat Aristocrat
******
Offline Offline

Posts: 2315


Make my day


WWW
Re: Server Side Includes?
« Reply #6 on: Monday 09 October 06 12:10 BST (UK) »

Hi Kate

You might find something here:

http://www.rootschat.com/forum/index.php/topic,149758.0.html

downside
Logged

Sussex: Floate, West
Kent: Tuffee
Cheshire: Gradwell
kateblogs
RootsChat Extra
**
Offline Offline

Posts: 81


Youth is wasted on the young


WWW
Re: Server Side Includes?
« Reply #7 on: Monday 09 October 06 13:40 BST (UK) »

Thank you to everyone for your help. I tried Zeb's suggestion, but it doesn't look as though ssi is enabled.

Could any explain how I could do a similar thing with php? I read the advice in the thread Downside linked to, but I'm afraid it went over my head somewhat. I'm new to php so anything connected to it needs to explained very simply.

Thank you,

Kate
Logged

BARNES - Nottinghamshire
GILBY - Essex, Warwickshire and Cambridgeshire
HANFORD/HANDFORD - Dorset, Nottingham and Edinburgh
HOLMES - Nottinghamshire
LINTHWAITE - Nottinghamshire
MASON - Cambridgeshire
MCSHANE - Ireland and Liverpool
MORRISON - East Riding (Hull) and Edinburgh
OWENS - Yorkshire (West Riding) and Ireland
PUGH - Yorkshire, Derbyshire, Cheshire
RYLANDS - Liverpool and Ireland
SANSAM - Nottinghamshire
TODER - Nottinghamshire
WAYNE - Birmingham and Nottingham
WILSON - Nottingham
Berlin-Bob
Global Moderator
RootsChat Marquessate
*******
Offline Offline

Posts: 4911


by My Daughter. Chatting to find her Roots !


WWW
Re: Server Side Includes?
« Reply #8 on: Monday 09 October 06 18:12 BST (UK) »

Hi Kate,

Quote
Could any explain how I could do a similar thing with php?

so as not to overload this topic, I've answered your question on a new topic:
Topic: Converting from HTML to PHP
http://www.rootschat.com/forum/index.php/topic,188668.0.html

I started converting my site to PHP this weekend.  With nearly 100 files to change, it will take a while  Grin

Bob
Logged

Searching for Coleman, Moore, Kallnung in London; Margulies, Remenyi in E. Europe;
Ancestors of Hessie Stevenson-Coleman-Baxter (Ireland, 1861)
and, of course, any other ancestors for my web-site http://boco.rootschat.net

All Census Data included in this post is Crown Copyright (see: www.nationalarchives.gov.uk)
kateblogs
RootsChat Extra
**
Offline Offline

Posts: 81


Youth is wasted on the young


WWW
Re: Server Side Includes?
« Reply #9 on: Monday 09 October 06 18:57 BST (UK) »

Thanks Bob Smiley I have posted a response over at the new thread.

Have fun updating your site!

Kate
Logged

BARNES - Nottinghamshire
GILBY - Essex, Warwickshire and Cambridgeshire
HANFORD/HANDFORD - Dorset, Nottingham and Edinburgh
HOLMES - Nottinghamshire
LINTHWAITE - Nottinghamshire
MASON - Cambridgeshire
MCSHANE - Ireland and Liverpool
MORRISON - East Riding (Hull) and Edinburgh
OWENS - Yorkshire (West Riding) and Ireland
PUGH - Yorkshire, Derbyshire, Cheshire
RYLANDS - Liverpool and Ireland
SANSAM - Nottinghamshire
TODER - Nottinghamshire
WAYNE - Birmingham and Nottingham
WILSON - Nottingham
Pages: [1] Print 
« previous next »


[Copyright] [Free RootsChat Webspace] [Your Surname Interests] [Shrink Link] [About Us] [Terms of Use]
All Census Lookups are Crown Copyright, National Archives for academic and non-commercial research purposes only
RootsChat.com cannot be held responsible directly or indirectly for the messages or content posted by others. Inline images in messages are the copyright of the respective linked sites.
RootsChat.com, Europa House, Bury, Lancashire, BL9 5BT
0.591:22