|
Pages: [1]
|
 |
|
Author
|
Topic: Server Side Includes? (Read 681 times)
|
|
|
|
|
|
|
|
|
kateblogs
RootsChat Extra
 
Offline
Posts: 81

Youth is wasted on the young
|
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: <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
Posts: 119
|
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
|
|
|
|
|
|
|
|
Berlin-Bob
Global Moderator
RootsChat Marquessate
      
Offline
Posts: 4911

by My Daughter. Chatting to find her Roots !
|
Hi Kate,
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 
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)
|
|
|
|
|
|
Pages: [1]
|
|
|
|
|