We'd like to remind Forumites to please avoid political debate on the Forum... Read More »
📨 Have you signed up to the Forum's new Email Digest yet? Get a selection of trending threads sent straight to your inbox daily, weekly or monthly!
Weezl and friends Phase 2 -giving it a whirl for Shirl! Testing meal plan for a month
Comments
-
Okay, this was "header.php":<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Stamp World</title>
<meta name="description" http-equiv="Content-Type" content="text/html; charset=utf-8">
<META Name="keywords" content="stamp collecting, stamp collectors, philately, stamp collections, rare stamps postage, postal collectables, postage stamps, stamp collection, GB stamps, collecting, collecting stamps, Great Britain, Rest of the World, stamp collector, stamp albums, British Commonwealth, British, Stamp World, stamp catalogue, stamp history, penny black, Rowland Hill">
<META Name="description" content="Stamp World is all about the world of stamps. It conatains everything from listings of stamps to postal history.">
</head>
<body background="images/tintback.gif" bgcolor="#dddddd" text="#000000" link="#FF0000" vlink="#0044cc" alink="#008040">
<a name="top"></a>
<!--start of table-->
<table align="left" border=0 cellpadding=15 width="100%">
<tr><td colspan=2><CENTER><IMG ALT="Stamp World" SRC="images/title.gif" WIDTH=365 HEIGHT=90></CENTER></td></tr>
<tr><td colspan=2><hr></td></tr>
<tr>
<!--First column-->
<td valign="top" nowrap>
<h4>Navigation</h4>
<P><a href="contents.php">Home</a></p>
<p><a href="intro.php">Introduction</a></p>
<P><a href="history.php">History</a></p>
<P><a href="gloss.php">Glossary</a></p>
<P><a href="links.php">Links</a></p>
<P><a href="quiz.php">Stamp Quiz</a></p>
<p>Catalogue</p>
<P><a href="catvic.php">Queen Victoria</a></p>
<P><a href="edvii.php">Edward VII</a></p>
<!---->
<!--Second column-->
<td valign="top">
This was "footer.php":</tr>
<tr><td colspan=2><hr></td></tr>
<!--<hr size=1 width=90% noshade>-->
<tr><td><a href="http://validator.w3.org/check/referer"><img border="0" src="http://www.w3.org/Icons/valid-html401" alt="Valid HTML 4.01!" height="31" width="88"></a></td><td align="right"><a href="#top">top of page</a></td></tr>
<tr><td colspan=2><P align="center"><i>Last revision:
<?php
$last_modified = filemtime($SCRIPT_FILENAME);
print(date("l d<\sup>S</\sup> F Y H.i", $last_modified+10800));
?> (GMT).</i></p></td></tr>
</table>
<!--end of table-->
</body>
</html>
And this is a sample of a page ("contents.php"):<?php
include("header.php");
?>
<!---->
<p>Welcome to the amazing world of stamps.</p>
<p>The first postage stamps were issued in Great Britain in 1841. Now almost every country in the world issues stamps and there are thousands to collect.</p>
<p>This site contains information on stamps from around the world and their history. We hope you find this site useful and informative.</p>
<p>You can navigate the site by using the links at the left.</p>
<p>This is just an extra paragraph to take up some more space.</p>
<!---->
<?php
include("footer.php");
?>
So what you have is "header.php" with the common html atthe beginning of every page and "footer.php" with the common html content at the end of ever page. (You can call them what you want but those names are convenient for clarity.) You then make each individual page but put<?php
include("header.php");
?>
at the beginning and<?php
include("footer.php");
?>
at the end.
They then tell the server to create a page by combining the html content of "header.php" followed by whatever page it is (in my example "contents.php") followed by "footer.php". If you wanted to have common content somewhere in the middle of the page you could use similar coding.
The php only works if it is somewhere else (i.e. the server) so you can only see what the pages look like overall by uploading them and viewing them online rather than being able to view them locally offline on your own computer. (It may be possible to network two computers but I have no idea what you would need to ensure that your "server" supported php.)
I also can't remember whether all servers automatically support php or whether it was something you would have to check/request.
I did also start writing some code for doing quizzes. (I got bogged down with trying to create a random number list generator which wasn't essential to the quiz but I wanted it.) I could probably get it to work (assuming php works on your server) but these days you may be able to find somewhere online which can automatically generate the necessary code for you.Any question, comment or opinion is not intended to be criticism of anyone else.2 Samuel 12:23 Romans 8:28 Psalm 30:5
"To every thing there is a season, and a time to every purpose under the heaven: A time to be born, and a time to die"0 -
Susan I suddenly find you very attractive! He he, it's like finding out that someone can speak fluent JapaneseGod is good, all the time
Do something that scares you every day
0 -
:eek: That probably is Japanese... :rotfl:
*taka has flashbacks to her brother trying (and failing) to teach her html* :eek:
(We have now agreed that we don't understand each other's jobs and that's not likely to ever change! :rotfl: )Mortgage free as of 12/08/20!
MFiT-5 no 45You can't fly with one foot on the ground!0 -
Sian_the_Green wrote: »Susan I suddenly find you very attractive! He he, it's like finding out that someone can speak fluent Japanese
Susan and Sian i have not a clue what you are saying you could be speaking Japanese for all i know. Well i am glad i have other talents cause computers is sooo not one of them. Any problems steer well away from me:)
Taka thanks for work so far on the 5 a day i have copied and pasted them (the limits of my computer ability) into a folder and maybe while your at work someone else will get a few done. Hope your working day passes quickly0 -
Sian_the_Green wrote: »Susan I suddenly find you very attractive! He he, it's like finding out that someone can speak fluent Japanese
(I know very little Japanese though and have forgotten most of what I learned.):eek: That probably is Japanese... :rotfl:
*taka has flashbacks to her brother trying (and failing) to teach her html* :eek:Any question, comment or opinion is not intended to be criticism of anyone else.2 Samuel 12:23 Romans 8:28 Psalm 30:5
"To every thing there is a season, and a time to every purpose under the heaven: A time to be born, and a time to die"0 -
Oh my goodness, she ACTUALLY SPEAKS JAPANESE TOO!!!
Eek. So Susan-of-all-talents, you must have a weakness? What is it? Making pastry? Catching balls? There must be something!God is good, all the time
Do something that scares you every day
0 -
Sian_the_Green wrote: »Oh my goodness, she ACTUALLY SPEAKS JAPANESE TOO!!!Sian_the_Green wrote: »Eek. So Susan-of-all-talents, you must have a weakness? What is it? Making pastry? Catching balls? There must be something!
And I'm not very good at hammering nails.Any question, comment or opinion is not intended to be criticism of anyone else.2 Samuel 12:23 Romans 8:28 Psalm 30:5
"To every thing there is a season, and a time to every purpose under the heaven: A time to be born, and a time to die"0 -
I go off to see my DGD, and this morning had some work to do in Tun Wells, and now I have not only got four (four!) pages to catch up on but someone has changed all the display to a new and swanky version
helped DGD play in the sandpit and the paddling pool, or what she calls 'mine wimming pool' and had a great time in the sun and the water
like most littluns now she is tech savvy, even tho she's only two and a half and loves to switch my digital camera on and off and take (some very odd) pictures, so I thought she would find my small binoculars interesting. We giggled a lot looking at various things through them, and when it was time to leave, I had to promise to bring them next time because they were now 'mine noclars'. Bless her
off to catch up, back in a bit0 -
I can't believe how many posts there have been since I stopped reading on Fri at lunchtime. You've all been very busy. Sorry I didn't volunteer for the jobs offered but I was Busy all weekend when I wasn't here online.
Not quite sure I've got hold of the F&V counting correctly - are the figures just per person?
Is it the averaged F&V count that is important - averaged over a week, say??
Or is it important that the tally is actually "5" in a day0
This discussion has been closed.
Confirm your email address to Create Threads and Reply

Categories
- All Categories
- 351.3K Banking & Borrowing
- 253.2K Reduce Debt & Boost Income
- 453.7K Spending & Discounts
- 244.2K Work, Benefits & Business
- 599.4K Mortgages, Homes & Bills
- 177.1K Life & Family
- 257.7K Travel & Transport
- 1.5M Hobbies & Leisure
- 16.2K Discuss & Feedback
- 37.6K Read-Only Boards