Click here to get back home

Changing test with serverside includes

 HomeNewsGroups | Search

comp.infosystems.www.authoring.html - discuss HTML authoring here 

get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Changing test with serverside includes stephan.j.bird 02-11-2006
Posted by stephan.j.bird on February 11, 2006, 11:45 am
Please log in for more thread options


Hi,

I tried serverside includes to try and alter some text on a web page
I'm authoring, with the below:

show/hide quoted text
We hope you have had a Merry Christmas and Happy New Year.<!--#endif
show/hide quoted text
We open for the year on March 10th
show/hide quoted text
We are now open for the year
show/hide quoted text
and look forward to welcoming you during the season. Easter and May
Day weekends are filling up, so
show/hide quoted text
to basically change from "we're closed" to "we're open" on the
appropriate day (I'm going to be away from net access in a authoring
mode for a while)

This goes into a page like http://www.cwmcadnant.co.uk as the "message
of the day" (below the first photo), so it's all HTML 4.01 compliant
etc. But the message thus far has not lost the "Merry Christmas" part.
Is it possible to change text this way, or am I clutching at straws?

Many thanks

Stephan


Posted by David E. Ross on February 12, 2006, 2:37 pm
Please log in for more thread options


stephan.j.bird@mad.scientist.com wrote:
show/hide quoted text

Except for one-line includes (e.g., last date updated), I put everything
into separate script files. I use Korn-shell UNIX. The HTML and
content that I want to insert into my Web pages are then provided from
the script files by PRINT statements in the following format:
print 'Content-type: text/html'
print ''
print xxx
where the "xxx" is the desired output. The first two lines signal the
Web server to include whatever print statements follow them.

It helps that my ISP allows me to access my account on their Web server
via a secure Telnet session so that I can test my UNIX script files.

--
David E. Ross
Climate: California Mediterranean
Sunset Zone: 21 -- interior Santa Monica Mountains with some ocean
influence (USDA 10a, very close to Sunset Zone 19)
show/hide quoted text

Similar ThreadsPosted
includes September 4, 2007, 11:17 am
Changing all pages at once? July 23, 2004, 1:34 pm
Problems with "&" changing to "&" May 10, 2006, 4:37 am
changing border for tr May 31, 2006, 6:07 pm
fix problem by changing hosts October 29, 2004, 6:51 pm
Changing 2 frames in one click November 16, 2004, 7:15 am
Another question on changing 2 frames November 16, 2004, 7:42 am
Changing the outerHTML of an Iframe April 11, 2006, 1:56 am
Automatically changing the hue of a jpg in html page August 11, 2004, 9:43 pm
Changing background color of a frameset June 17, 2005, 2:16 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Driving a better car - Fuelzilla.com

Cabling site for homeowners and pros alike - Cabling-Design.com

Friends:

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap
Privacy Policy