Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
100% found this document useful (16 votes)
46 views

Solution Manual for PHP Programming with MySQL The Web Technologies Series, 2nd Edition download pdf

The document provides information on downloading solution manuals and test banks for various programming and accounting textbooks from testbankmall.com. It includes a detailed overview of PHP programming concepts such as functions, variable scope, decision-making statements, and looping structures. Additionally, it emphasizes best coding practices and offers quizzes to reinforce learning.

Uploaded by

leahadioneqe
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (16 votes)
46 views

Solution Manual for PHP Programming with MySQL The Web Technologies Series, 2nd Edition download pdf

The document provides information on downloading solution manuals and test banks for various programming and accounting textbooks from testbankmall.com. It includes a detailed overview of PHP programming concepts such as functions, variable scope, decision-making statements, and looping structures. Additionally, it emphasizes best coding practices and offers quizzes to reinforce learning.

Uploaded by

leahadioneqe
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 42

Visit https://testbankmall.

com to download the full version and


explore more testbank or solution manual

Solution Manual for PHP Programming with MySQL


The Web Technologies Series, 2nd Edition

_____ Click the link below to download _____


https://testbankmall.com/product/solution-manual-for-
php-programming-with-mysql-the-web-technologies-
series-2nd-edition/

Explore and download more testbank at testbankmall.com


Here are some suggested products you might be interested in.
Click the link to download

Test Bank for PHP Programming with MySQL The Web


Technologies Series, 2nd Edition

https://testbankmall.com/product/test-bank-for-php-programming-with-
mysql-the-web-technologies-series-2nd-edition/

Solution Manual for Introduction to JavaScript Programming


with XML and PHP : 0133068307

https://testbankmall.com/product/solution-manual-for-introduction-to-
javascript-programming-with-xml-and-php-0133068307/

Test Bank for Introduction to JavaScript Programming with


XML and PHP : 0133068307

https://testbankmall.com/product/test-bank-for-introduction-to-
javascript-programming-with-xml-and-php-0133068307/

Applied Calculus for the Managerial Life and Social


Sciences A Brief Approach 10th Edition Tan Solutions
Manual
https://testbankmall.com/product/applied-calculus-for-the-managerial-
life-and-social-sciences-a-brief-approach-10th-edition-tan-solutions-
manual/
Fundamentals of Anatomy and Physiology 10th Edition
Martini Solutions Manual

https://testbankmall.com/product/fundamentals-of-anatomy-and-
physiology-10th-edition-martini-solutions-manual/

Cost Accounting – A Managerial Emphasis Horngren 13th


Edition Test Bank

https://testbankmall.com/product/cost-accounting-a-managerial-
emphasis-horngren-13th-edition-test-bank/

Test Bank for The Human Body in Health and Disease 7th
Edition by Patton

https://testbankmall.com/product/test-bank-for-the-human-body-in-
health-and-disease-7th-edition-by-patton/

Advanced Accounting Fischer 10th Edition Solutions Manual

https://testbankmall.com/product/advanced-accounting-fischer-10th-
edition-solutions-manual/

Solution Manual for Strategic Management: Theory and


Practice, 3rd Edition, John A. Parnell, ISBN-10:
142662882X, ISBN-13: 9781426628825
https://testbankmall.com/product/solution-manual-for-strategic-
management-theory-and-practice-3rd-edition-john-a-parnell-
isbn-10-142662882x-isbn-13-9781426628825/
Solution Manual for Fundamentals of Financial Management,
15th Edition, Eugene F. Brigham Joel F. Houston

https://testbankmall.com/product/solution-manual-for-fundamentals-of-
financial-management-15th-edition-eugene-f-brigham-joel-f-houston/
PHP Programming with MySQL, 2nd Edition 2-2

Lecture Notes

Chapter Overview
In this chapter, students will study how to use functions to organize their PHP code. They will
also learn about variable scope, nested control structures, and conditional coding: if, if…else,
and switch statements and while, do…while, for, and foreach looping statements.
Students will also be introduced to the include and require statements.

Chapter Objectives
In this chapter, students will:

 Study how to use functions to organize your PHP code


 Learn about variable scope
 Make decisions using if, if…else, and switch statements
 Repeatedly execute code using while, do…while, for, and foreach statements
 Learn about include and require statements

Instructor Notes
In PHP, groups of statements that you can execute as a single unit are called functions. Functions
are often made up of decision-making and looping statements. These are two of the most
fundamental statements that execute in a program.

Mention to your students that functions are like paragraphs in writing


Teaching language. Remember a paragraph is a group of related sentences that make up
Tip one idea. A function is a group of related statements that make up a single task.

Working with Functions


PHP has two types of functions: built–in (internal) and user-defined (custom) functions. PHP has
over 1000 built-in library functions that can be used without declaring them. You can also your
own user-defined functions to perform specific tasks.
PHP Programming with MySQL, 2nd Edition 2-3

Defining Functions

To begin writing a function, you first need to define it. The syntax for the function definition is:

function name of _function(parameters) {


statements;
}

Parameters are placed within the parentheses that follow the function name. The parameter
receives its value when the function is called. When you name a variable within parentheses, you
do not need to explicitly declare and initialize the parameter as you do with a regular variable.

Following the parentheses that contain the function parameters is a set of curly braces, called
function braces, which contain the function statements. Function statements are the statements
that do the actual work of the function and must be contained within the function braces. For
example:

function displayCompanyName($Company1) {

echo "<p>$Company1</p>";
}

Remind your students that functions, like all PHP code, must be contained with
<?php...?> tags. Stress that the function name should be descriptive of the
task that the function will perform.

Ask students to add this to their list of PHP “Best Coding Practices.”

Teaching Illustrate to students that in a function:


Tip  There is no space between the function name and the opening parentheses
 The opening curly brace is on the same line as the function name
 The function statements are indented five spaces
 The closing curly brace is on a separate line

Ask students to add this to their list of PHP “Best Coding Practices.”
PHP Programming with MySQL, 2nd Edition 2-4

Calling Functions

A function definition does not execute automatically. Creating a function definition only names
the function, specifies its parameters (if any), and organizes the statements it will execute.

Teaching Refer to the textbook example on page 77, which defines a function and calls it
Tip passing a literal value to the function argument.

Returning Values

Some functions return a value, which may be displayed or passed as an argument to another
function. A calculator function is a good example of a return value function. A return statement
is a statement that returns a value to the statement that called the function.

Use the textbook example on page 78 to illustrate how a calling statement calls a
Teaching function and sends the multiple values as arguments of the function. The
Tip function then performs a calculation and returns the value to the calling
statement.

Passing Parameters by Reference

Usually, the value of a variable is passed as the parameter of a function, which means that a local
copy of the variable is created to be used by the function. When the value is returned to the
calling statement, any changes are lost. If you want the function to change the value of the
parameter, you must pass the value by reference, so the function works on the actual value
instead of a copy. Any changes made by the function statements remain after the function ends.

Use the textbook example on pages 80 and 81 to illustrate the difference of


passing a parameter by value or by reference.

Teaching Explain to students that a function definition should be placed above any calling
Tip statements. As of PHP4, this is not required, but is considered a good
programming practice.

Ask students to add this to their list of PHP “Best Coding Practices.”
PHP Programming with MySQL, 2nd Edition 2-5

Understanding Variable Scope

When you use a variable in a PHP program, you need to be aware of the variable's scope—that
is, you need to think about where in your program a declared variable can be used. A variable's
scope can be either global or local. Global variables are declared outside a function and are
available to all parts of the programs. Local variables are declared inside a function and are only
available within the function in which they are declared.

The global Keyword

Unlike many programming languages that make global variables automatically available to all
parts of your program, in PHP, you must declare a global variable with the global keyword
inside a function for the variable to be available within the scope of that function. When you
declare a global variable with the global keyword, you do not need to assign a value, as you
do when you declare a standard variable. Instead, within the declaration statement you only need
to include the global keyword along with the name of the variable, as in:

global $variable_name;

Teaching Demonstrate the syntax of declaring a global variable within a function using the
Tip textbook example on page 83.

Quick Quiz 1

1. In PHP, groups of statements that you can execute as a single unit are called
_________________________.
ANSWER: functions

2. A _________________________ is a statement that returns a value to the statement that


called the function.
ANSWER: return statement

3. _________________________ are declared inside a function and are only available


within the function in which they are declared.
ANSWER: Local variables

4. A _________________________is a variable that is declared outside a function and is


available to all parts of your program.
ANSWER: global variable
PHP Programming with MySQL, 2nd Edition 2-6

Making Decisions
In any programming language, the process of determining the order in which statements execute
in the program is called decision making or flow control. The special types of PHP statements
used for making decision are called decision-making statements or control structures.

if Statements

The if statement is used to execute specific programming code if the evaluation of a


conditional expression returns a value of TRUE. The syntax for a simple if statement is as
follows:

if (conditional expression)// condition evaluates to 'TRUE'


statement;

You should insert a space after the conditional keyword if before the opening
parenthesis of the conditional expression. This will help you see a visual
difference between a structure and a function. Using a line break and
indentation to enter the statements to execute makes it easier for the
programmer to follow the flow of the code.

Ask students to add the space and indentation to their list of PHP “Best Coding
Teaching Practices.”
Tip
Explain to students that if there is only one statement, they do not need to use
curly braces. If there are multiple statements, the statements should be
enclosed within beginning and ending curly braces. ({...}).

Ask students to add the use of curly braces to their list of PHP “Best Coding
Practices.”

You can use a command block to construct a decision-making structure using multiple if
statements. A command block is a group of statements contained within a set of braces, similar to
the way function statements are contained within a set of braces. When an if statement
evaluates to TRUE, the statements in the command block execute.

if...else Statements

Should you want to execute one set of statements when the condition evaluates to FALSE, and
another set of statements when the condition evaluates to TRUE, you need to add an else
clause to the if statement.
PHP Programming with MySQL, 2nd Edition 2-7

if (conditional expression) {
statements; //condition evaluates to 'TRUE'
}
else {
statements; //condition evaluates to 'FALSE'
}

Nested if and if...else Statements

When one decision-making statement is contained within another decision-making statement,


they are referred to as nested decision-making structures. An if statement contained within an
if statement or within an if...else statement is called a nested if statement. Similarly, an
if...else statement contained within an if or if…else statement is called a nested
if...else statement. You use nested if and if...else statements to perform conditional
evaluation that must be executed after the original conditional evaluation.

switch Statements

The switch statement controls program flow by executing a specific set of statements,
depending on the value of the expression. The switch statement compares the value of an
expression to a value contained within a special statement called a case label. A case label
represents a specific value and contains one or more statements that execute if the value of the
case label matches the value of the switch statement’s expression. The syntax for the switch
statement is a follows:
PHP Programming with MySQL, 2nd Edition 2-8

switch (expression) {
case label:
statement(s);
break;
case label:
statement(s);
break;
...
default:
statement(s);
break;
}

Another type of label used within switch statements is the default label. The default
label contains statements that execute when the value returned by the switch statement does
not match a case label. A default label consists of the keyword default followed by a
colon. In a switch statement, execution does not automatically end when a matching label is
found. A break statement is used to exit a control structures before it reaches the closing brace
(}). A break statement is also used to exit while, do...while, and for looping
statements.

The break statement after the default case is optional; however, it is good
Teaching programming practice to include it.
Tip
Ask the students to add this to their list of PHP “Best Coding Practices.”
PHP Programming with MySQL, 2nd Edition 2-9

Quick Quiz 2

1. The process of determining the order in which statements execute in a program is called
_________________________.
ANSWER: decision-making or flow control

2. When one decision-making statement is contained within another decision-making


statement, they are referred to as _________________________.
ANSWER: nested decision-making structures

3. The _________________________ statement is used to execute specific programming


code if the evaluation of a conditional expression returns a value of TRUE.
ANSWER: if

4. The _________________________ statement controls program flow by executing a


specific set of statements, depending on the value of the expression.
ANSWER: switch

Repeating Code

Conditional statements allow you select only a single branch of code to execute and then
continue to the statement that follows. If you need to perform the same statement more than
once, however, you need a use a loop statement, a control structure that repeatedly executes a
statement or a series of statements while a specific condition is TRUE or until a specific
condition becomes TRUE. In an infinite loop, a loop statement never ends because its conditional
expression is never FALSE.

while Statements

The while statement is a simple loop statement that repeats a statement or series of statements
as long as a given conditional expression evaluates to TRUE. The syntax for the while statement
is as follows:

while (conditional expression) {


statement(s);
}

Each repetition of a looping statement is called an iteration. The loop ends and the next
statement, following the while statement executes only when the conditional statement
evaluates to FALSE. You normally track the progress of the while statement evaluation, or
any other loop, with a counter. A counter is a variable that increments or decrements with each
iteration of a loop statement.
PHP Programming with MySQL, 2nd Edition 2-10

Programmers often name counter variables $Count, $Counter, or


something descriptive of its purpose. The letters i, j, k, l, x, y, z are also
Teaching commonly used as counter names. Using a variable name such as count or the
Tip letter i (for iteration) helps you remember (and informs other programmers)
that the variable is being used as a counter.

do...while Statements

The do...while statement executes a statement or statements once, then repeats the execution
as long as a given conditional expression evaluates to TRUE The syntax for the do...while
statement is as follows:

do {
statements(s);
} while (conditional expression);

for Statements

The for statement is used for repeating a statement or series of statements as long as a given
conditional expression evaluates to TRUE. The syntax of the for statement is as follows:

for (counter declaration and initialization; condition;


update statement) {
statement(s);
}

foreach Statements

The foreach statement is used to iterate or loop through the elements in an array. With each
loop, a foreach statement moves to the next element in an array. The basic syntax of the
foreach statement is as follows:

foreach ($array_name as $variable_name) {


statement(s);
}
PHP Programming with MySQL, 2nd Edition 2-11

Most of the conditional statements (such as the if, if...else, while,


do...while, and for) are probably familiar to students, but the foreach
Teaching statement, which iterates through elements of an array may not be as familiar.
Tip
Illustrate the syntax of the foreach statement using the basic and advanced
forms shown on pages 105 – 107 of the textbook.

Quick Quiz 3

1. Each repetition of a looping statement is called a(n) _________________________.


ANSWER: iteration

2. A _________________________ is a variable that increments or decrements with each


iteration of a loop statement.
ANSWER: counter

3. The foreach statement is used to iterate or loop through the elements in a(n)
_________________________.
ANSWER: array

Discussion Questions
 When is it better to use a global variable in programming? When is it better to use a local
variable?

 Why are conditional statements important in programming?

 Explain the difference between a while statement and a do…while statement.


PHP Programming with MySQL, 2nd Edition 2-12

Key Terms
 break statement: Used to exit control structures.
 case label: In a switch statement, represents a specific value and contains one or more
statements that execute if the value of the case label matches the value of the switch
statement’s expression.
 command block: A group of statements contained within a set of braces, similar to the way
function statements are contained within a set of braces.
 counter: A variable that increments or decrements with each iteration of a loop statement.
 decision making (or flow control): The process of determining the order in which
statements execute in a program.
 default label: Contains statements that execute when the value returned by the switch
statement expression does not match a case label.
 do…while statement: Executes a statement or statements once, then repeats the execution
as long as a given conditional expression evaluates to TRUE.
 for statement: Used for repeating a statement or series of statements as long as a given
conditional expression evaluates to TRUE.
 function definition: Line of code that make up a function.
 functions: Groups of statements that execute as a single unit.
 global variable: A variable declared outside a function and available to all parts of the
program.
 if statement: Used to execute specific programming code if the evaluation of a conditional
expression returns a value of TRUE.
 if…else statement: if statement with an else clause that is implemented when the
condition returns a value of FALSE.
 infinite loop: A loop statement never ends because its exit condition is never met.
 iteration: The repetition of a looping statement.
 local variable: A variable declared inside a function and only available with the function in
which it is declared.
 loop statement: A control structure that repeatedly executes a statement or a series of
statements while a specific condition is TRUE or until a specific condition becomes TRUE.
 nested decision-making structures: One decision-making statement contained within
another decision-making statement.
 parameter: A variable that is passed to a function from the calling statement.
 return statement: A statement that returns a value to the statement that called the function.
 switch statement: Controls program flow by executing a specific set of statements,
depending on the value of an expression.
 variable scope: The context in which a variable is accessible (such as local or global).
 while statement: Repeats a statement or a series of statements as long as a given conditional
expression evaluates to TRUE.
PHP Programming with MySQL, 2nd Edition 2-13

Best Coding Practices – Chapter 2


Topic Best Practice
Formatting code Format code consistently within a program
Indent code five spaces for readability
Writing PHP code blocks Use the Standard Script Delimiters <?php … ?>
Using the echo statement Use the echo construct exclusively
Use lowercase characters for the echo keyword
Coding the echo statement Do not use parentheses with the echo statement
Adding comments to PHP script Add both line and block comments to your PHP code
Adding a line comment Use the two forward slashes (//) to begin a line comment
Displaying array elements with built-in Enclose the print_r(), var_export(), and
functions var_dump() functions in beginning and ending <pre> tags
Writing a user-defined function The name of a user-defined function should be descriptive of the
task it will perform
Writing a function definition Do NOT space between the function name and the opening
parenthesis
Key the opening curly brace on the same line as the function
name
Indent the function statements five spaces
Key the closing curly brace on a separate line
Calling a function Place the function definition above the calling statement
Writing a control structure To differentiate a control structure from a function, space once
after the conditional keyword before the parenthesis i.e. if
(...) or else (...)
Indent the statements to make them easier for the programmer to
follow the flow
Use curly braces around the statements to execute in a control
structure if there is more than one statement.
Coding a switch statement Include the optional break statement after the default case
label in a switch statement
Naming a counter variable If appropriate, name your counter variable $Count or
$Counter or use the letters ( i, j, k, l, x, y , z)
Discovering Diverse Content Through
Random Scribd Documents
"It's generally pretty lively here," said our Intelligence Officer, as I
leaned forward to pass him the matches. "We're going to speed up a
bit—road's a bit bumpy, so hold on." Guns were roaring near and far,
and in the air above was the long, sighing drone of shells as we
raced forward, bumping and swaying over the uneven surface faster
and faster, until, skidding round a rather awkward corner, we saw
before us a low-lying, jagged outline of broken walls, shattered
towers and a tangle of broken roof-beams—all that remains of the
famous old town of Ypres. And over this devastation shells moaned
distressfully, and all around unseen guns barked and roared. So,
amidst this pandemonium our car lurched into shattered "Wipers,"
past the dismantled water-tower, uprooted from its foundations and
leaning at a more acute angle than will ever the celebrated tower of
Pisa, past ugly heaps of brick and rubble—the ruins of once fair
buildings, on and on until we pulled up suddenly before a huge
something, shattered and formless, a long facade of broken arches
and columns, great roof gone, mighty walls splintered, cracked and
rent—all that "Kultur" has left of the ancient and once beautiful Cloth
Hall.
"Roof's gone since I was here last," said the Intelligence Officer,
"come this way. You'll see it better from over here." So we followed
him and stood to look upon the indescribable ruin.
"There are no words to describe—that," said N. at last, gloomily.
"No," I answered. "Arras was bad enough, but this—!"
"Arras?" he repeated. "Arras is only a ruined town. Ypres is a rubbish
dump. And its Cloth Hall is—a bad dream." And he turned away. Our
Intelligence Officer led us over mounds of fallen masonry and débris
of all sorts, and presently halted us amid a ruin of splintered
columns, groined arch and massive walls, and pointed to a heap of
rubbish he said was the altar.
"This is the church St. Jean," he explained, "begun, I think, in the
eleventh or twelfth century and completed somewhere about 1320
—"
"And," said N., "finally finished and completely done for by 'Kultur' in
the twentieth century, otherwise I guess it would have lasted until
the 220th century—look at the thickness of the walls."
"And after all these years of civilisation," said I.
"Civilisation," he snorted, turning over a fragment of exquisitely
carved moulding with the toe of his muddy boot, "civilisation has
done a whole lot, don't forget—changed the system of plumbing and
taught us how to make high explosives and poison gas."
Gloomily enough we wandered on together over rubbish-piles and
mountains of fallen brickwork, through shattered walls, past unlovely
stumps of mason-work that had been stately tower or belfry once,
beneath splintered arches that led but from one scene of ruin to
another, and ever our gloom deepened, for it seemed that Ypres, the
old Ypres, with all its monuments of mediæval splendour, its noble
traditions of hard-won freedom, its beauty and glory, was passed
away and gone for ever.
"I don't know how all this affects you," said N., his big chin jutted
grimly, "but I hate it worse than a battlefield. Let's get on over to the
Major's office."
We went by silent streets, empty except for a few soldierly figures in
hard-worn khaki, desolate thoroughfares that led between piles and
huge unsightly mounds of fallen masonry and shattered brickwork,
fallen beams, broken rafters and twisted ironwork, across a desolate
square shut in by the ruin of the great Cloth Hall and other once
stately buildings, and so to a grim, battle-scarred edifice, its roof half
blown away, its walls cracked and agape with ugly holes, its doorway
reinforced by many sandbags cunningly disposed, through which we
passed into the dingy office of the Town-Major.
As we stood in that gloomy chamber, dim-lighted by a solitary oil
lamp, floor and walls shook and quivered to the concussion of a shell
—not very near, it is true, but quite near enough.
The Major was a big man, with a dreamy eye, a gentle voice and a
passion for archæology. In his company I climbed to the top of a
high building, whence he pointed out, through a convenient shell
hole, where the old walls had stood long ago, where Vauban's star-
shaped bastions and the general conformation of what had been
present-day Ypres; but I saw only a dusty chaos of shattered arch
and tower and walls, with huge, unsightly mounds of rubble and
brick—a rubbish dump in very truth. Therefore I turned to the quiet
voiced Major and asked him of his experiences, whereupon he talked
to me most interestingly and very learnedly of Roman tile, of
mediæval rubble-work, of herringbone and Flemish bond. He
assured me also that (Deo Volente) he proposed to write a
monograph on the various epochs of this wonderful old town's
history as depicted by its various styles of mason-work and
construction.
"I could show you a nearly perfect aqueduct if you have time," said
he.
"I'm afraid we ought to be starting now," said the Intelligence
Officer; "over eighty miles to do yet, you see, Major."
"Do you have many casualties still?" I enquired.
"Pretty well," he answered. "The mediæval wall was superimposed
upon the Roman, you'll understand."
"And is it," said I as we walked on together, "is it always as noisy as
this?"
"Oh, yes—especially when there's a 'Hate' on."
"Can you sleep?"
"Oh, yes, one gets used to anything, you know. Though, strangely
enough, I was disturbed last night—two of my juniors had to camp
over my head, their quarters were blown up rather yesterday
afternoon, and believe me, the young beggars talked and chattered
so that I couldn't get a wink of sleep—had to send and order them
to shut up."
"You seem to have been getting it pretty hot since I was here last,"
said the Intelligence Officer, waving a hand round the crumbling ruin
about us.
"Fairly so," nodded the Major.
"One would wonder the enemy wastes any more shells on Ypres,"
said I, "there's nothing left to destroy, is there?"
"Well, there's us, you know!" said the Major, gently, "and then the
Boche is rather a revengeful beggar anyhow—you see, he wasted
quite a number of army corps trying to take Ypres. And he hasn't got
it yet."
"Nor ever will," said I.
The Major smiled and held out his hand.
"It's a pity you hadn't time to see that aqueduct" he sighed.
"However, I shall take some flashlight photos of it—if my luck holds.
Good-bye." So saying, he raised a hand to his weather-beaten
trench-cap and strode back into his dim-lit, dingy office.
The one-time glory of Ypres has vanished in ruin but thereby she
has found a glory everlasting. For over the wreck of noble edifice
and fallen tower is another glory that shall never fade but rather
grow with coming years—an imperishable glory. As pilgrims sought it
once to tread its quaint streets and behold its old time beauty, so in
days to come other pilgrims will come with reverent feet and with
eyes that shall see in these shattered ruins a monument to the
deathless valour of that brave host that met death unflinching and
unafraid for the sake of a great ideal and the welfare of unborn
generations.
And thus in her ruin Ypres has found the Glory Everlasting.
XIV.
WHAT BRITAIN HAS DONE.

The struggle of Democracy and Reason against Autocracy and Brute-


force, on land and in the air, upon the sea and under the sea, is
reaching its climax. With each succeeding month the ignoble foe has
smirched himself with new atrocities which yet in the end bring their
own terrible retribution.
Three of the bloodiest years in the world's history lie behind us; but
these years of agony and self-sacrifice, of heroic achievements, of
indomitable purpose and unswerving loyalty to an ideal, are surely
three of the most tremendous in the annals of the British Empire.
I am to tell something of what Britain has accomplished during these
awful three years, of the mighty changes she has wrought in this
short time, of how, with her every thought and effort bent in the one
direction, she has armed and equipped herself and many of her
allies; of the armies she has raised, the vast sums she has expended
and the munitions and armaments she has amassed.
To this end it is my privilege to lay before the reader certain facts
and figures, so I propose to set them forth as clearly and briefly as
may be, leaving them to speak for themselves.
For truly Britain has given and is giving much—her men and women,
her money, her very self; the soul of Britain and her Empire is in this
conflict, a soul that grows but the more steadfast and determined as
the struggle waxes more deadly and grim. Faint hearts and fanatics
there are, of course, who, regardless of the future, would fain make
peace with the foe unbeaten, a foe lost to all shame and honourable
dealing, but the heart of the Empire beats true to the old war-cry of
"Freedom or Death." In proof of which, if proof be needed, let us to
our figures and facts.
Take first her fighting men; in three short years her little army has
grown until to-day seven million of her sons are under arms, and of
these (most glorious fact!) nearly five million were volunteers. Surely
since first this world was cursed by war, surely never did such a host
march forth voluntarily to face its blasting horrors. They are fighting
on many battle fronts, these citizen-soldiers, in France, Macedonia,
Mesopotamia, Palestine, Western Egypt and German East Africa, and
behind them, here in the homeland, are the women, working as
their men fight, with a grim and tireless determination. To-day the
land hums with munition factories and huge works whose countless
wheels whirr day and night, factories that have sprung up where the
grass grew so lately. The terrible, yet glorious, days of Mons and the
retreat, when her little army, out-gunned and out-manned, held up
the rushing might of the German advance so long as life and
ammunition lasted, that black time is past, for now in France and
Flanders our countless guns crash in ceaseless concert, so that here
in England one may hear their ominous muttering all day long and
through the hush of night; and hearkening to that continuous
stammering murmur one thanks God for the women of Britain.
Two years ago, in June, 1915, the Ministry of Munitions was formed
under Mr. David Lloyd George; as to its achievements, here are
figures shall speak plainer than any words.
In the time of Mons the army was equipped and supplied by three
Government factories and a very few auxiliary firms; to-day gigantic
national factories, with miles of railroads to serve them, are in full
swing, beside which, thousands of private factories are controlled by
the Government. As a result the output of explosives in March, 1917,
was over four times that of March, 1916, and twenty-eight times
that of March, 1915, and so enormous has been the production of
shells that in the first nine weeks of the summer offensive of 1917
the stock decreased by only 7 per cent. despite the appalling
quantity used.
The making of machine guns to-day as compared with 1915 has
increased twenty-fold, while the supply of small-arm ammunition has
become so abundant that the necessity for importation has ceased
altogether. In one Government factory alone the making of rifles has
increased ten-fold, and the employees at Woolwich Arsenal have
increased from a little less than 11,000 to nearly 74,000, of whom
25,000 are women.
Production of steel, before the war, was roughly 7 million tons, it is
now 10 million tons and still increasing, so much so that it is
expected the pre-war output will be doubled by the end of 1918;
while the cost of steel plates here is now less than half the cost in
the U.S.A. Since May, 1917, the output of aeroplanes has been
quadrupled and is rapidly increasing; an enormous programme of
construction has been laid down and plans drawn up for its complete
realisation.
With this vast increase in the production of munitions the cost of
each article has been substantially reduced by systematic
examination of actual cost, resulting in a saving of £43,000,000 over
the previous year's prices.
Figures are a dry subject in themselves, and yet such figures as
these are, I venture to think, of interest, among other reasons for
the difficulty the human brain has to appreciate their full meaning.
Thus: the number of articles handled weekly by the Stores
Departments is several hundreds of thousands above 50 million: or
again, I read that the munition workers themselves have contributed
£40,187,381 towards various war loans. It is all very easy to write,
but who can form any just idea of such uncountable numbers?
And now, writing of the sums of money Britain has already
expended, I for one am immediately lost, out of my depth and
plunged ten thousand fathoms deep, for now I come upon the
following:
"The total national expenditure for the three years to August 4th,
1917, is approximately £5,150,000,000, of which £1,250,000,000 is
already provided for by taxation and £1,171,000,000 has been lent
to our colonies and allies, which may be regarded as an investment."
Having written which I lay down my pen to think, and, giving it up,
hasten to record the next fact.
"The normal pre-war taxation amounted to approximately
£200,000,000, but for the current financial year (1917/18) a revenue
of £638,000,000 has been budgeted for, but this is expected to
produce between £650,000,000 and £700,000,000." Now,
remembering that the cost of necessaries has risen to an
unprecedented extent, these figures of the extra taxation and the
amounts raised by the various war loans speak louder and more
eloquently than any words how manfully Britain has shouldered her
burden and of her determination to see this great struggle through
to the only possible conclusion—the end, for all time, of autocratic
government.
I have before me so many documents and so much data bearing on
this vast subject that I might set down very much more; I might
descant on marvels of enterprise and organisation and of almost
insuperable difficulties overcome. But, lest I weary the reader, and
since I would have these lines read, I will hasten on to the last of my
facts and figures.
As regards ships, Britain has already placed 600 vessels at the
disposal of France and 400 have been lent to Italy, the combined
tonnage of these thousand ships being estimated at 2,000,000.
Then, despite her drafts to Army and Navy she has still a million
men employed in her coal mines and is supplying coal to Italy,
France, and Russia. Moreover, she is sending to France one quarter
of her total production of steel, munitions of all kinds to Russia and
guns and gunners to Italy.
As for her Navy—the German battle squadrons lie inactive, while in
one single month the vessels of the British Navy steamed over one
million miles; German trading ships have been swept from the seas
and the U boat menace is but a menace still. Meantime, British
shipyards are busy night and day; 1,000,000 tons of craft for the
Navy alone were launched during the first year of the war, and the
programme of new naval construction for 1917 runs into hundreds of
thousands of tons. In peace time the building of new merchant ships
was just under 2,000,000 tons yearly, and despite the shortage of
labour and difficulty of obtaining materials, 1,100,000 tons will be
built by the end of 1917, and 4,000,000 tons in 1918.
The British Mercantile Marine (to whom be all honour!) has
transported during the war, the following:—

13,000,000 men,
25,000,000 tons of war material,
1,000,000 sick and wounded,
51,000,000 tons of coal and oil fuel,
2,000,000 horses and mules,
100,000,000 hundredweights of wheat,
7,000,000 tons of iron ore,

and, beyond this, has exported goods to the value of £500,000,000.


Here ends my list of figures and here this chapter should end also;
but, before I close, I would give, very briefly and in plain language,
three examples of the spirit animating this Empire that to-day is
greater and more worthy by reason of these last three blood-
smirched years.
No. I.

There came from Australia at his own expense, one Thomas


Harper, an old man of seventy-four, to help in a British munition
factory. He laboured hard, doing the work of two men, and
more than once fainted with fatigue, but refused to go home
because he "couldn't rest while he thought his country needed
shells."

No. II.

There is a certain small fishing village whose men were nearly


all employed in fishing for mines. But there dawned a black day
when news came that forty of their number had perished
together and in the same hour. Now surely one would think that
this little village, plunged in grief for the loss of its young
manhood, had done its duty to the uttermost for Britain and
their fellows! But these heroic fisher-folk thought otherwise, for
immediately fifty of the remaining seventy-five men (all over
military age) volunteered and sailed away to fill the places of
their dead sons and brothers.

No. III.

Glancing idly through a local magazine some days since, my eye


was arrested by this:

"In proud and loving memory of our loved and loving son ...
who fell in France ... with his only brother, 'On Higher
Service.' There is no death."

Thus then I conclude my list of facts and figures, a record of


achievement such as this world has never known before, a record to
be proud of, because it is the outward and visible sign of a people,
strong, virile, abounding in energy, but above all, a people clean of
soul to whom Right and Justice are worth fighting for, suffering for,
labouring for. It is the sign of a people which is willing to endure
much for its ideals that the world may be a better world, wherein
those who shall come hereafter may reap, in peace and
contentment, the harvest this generation has sowed in sorrow,
anguish, and great travail.
Pike's Fine Art Press, 47-8, Gloster Road, Brighton.
*** END OF THE PROJECT GUTENBERG EBOOK SOME WAR
IMPRESSIONS ***

Updated editions will replace the previous one—the old editions


will be renamed.

Creating the works from print editions not protected by U.S.


copyright law means that no one owns a United States
copyright in these works, so the Foundation (and you!) can copy
and distribute it in the United States without permission and
without paying copyright royalties. Special rules, set forth in the
General Terms of Use part of this license, apply to copying and
distributing Project Gutenberg™ electronic works to protect the
PROJECT GUTENBERG™ concept and trademark. Project
Gutenberg is a registered trademark, and may not be used if
you charge for an eBook, except by following the terms of the
trademark license, including paying royalties for use of the
Project Gutenberg trademark. If you do not charge anything for
copies of this eBook, complying with the trademark license is
very easy. You may use this eBook for nearly any purpose such
as creation of derivative works, reports, performances and
research. Project Gutenberg eBooks may be modified and
printed and given away—you may do practically ANYTHING in
the United States with eBooks not protected by U.S. copyright
law. Redistribution is subject to the trademark license, especially
commercial redistribution.

START: FULL LICENSE


THE FULL PROJECT GUTENBERG LICENSE
PLEASE READ THIS BEFORE YOU DISTRIBUTE OR USE THIS WORK

To protect the Project Gutenberg™ mission of promoting the


free distribution of electronic works, by using or distributing this
work (or any other work associated in any way with the phrase
“Project Gutenberg”), you agree to comply with all the terms of
the Full Project Gutenberg™ License available with this file or
online at www.gutenberg.org/license.

Section 1. General Terms of Use and


Redistributing Project Gutenberg™
electronic works
1.A. By reading or using any part of this Project Gutenberg™
electronic work, you indicate that you have read, understand,
agree to and accept all the terms of this license and intellectual
property (trademark/copyright) agreement. If you do not agree
to abide by all the terms of this agreement, you must cease
using and return or destroy all copies of Project Gutenberg™
electronic works in your possession. If you paid a fee for
obtaining a copy of or access to a Project Gutenberg™
electronic work and you do not agree to be bound by the terms
of this agreement, you may obtain a refund from the person or
entity to whom you paid the fee as set forth in paragraph 1.E.8.

1.B. “Project Gutenberg” is a registered trademark. It may only


be used on or associated in any way with an electronic work by
people who agree to be bound by the terms of this agreement.
There are a few things that you can do with most Project
Gutenberg™ electronic works even without complying with the
full terms of this agreement. See paragraph 1.C below. There
are a lot of things you can do with Project Gutenberg™
electronic works if you follow the terms of this agreement and
help preserve free future access to Project Gutenberg™
electronic works. See paragraph 1.E below.
1.C. The Project Gutenberg Literary Archive Foundation (“the
Foundation” or PGLAF), owns a compilation copyright in the
collection of Project Gutenberg™ electronic works. Nearly all the
individual works in the collection are in the public domain in the
United States. If an individual work is unprotected by copyright
law in the United States and you are located in the United
States, we do not claim a right to prevent you from copying,
distributing, performing, displaying or creating derivative works
based on the work as long as all references to Project
Gutenberg are removed. Of course, we hope that you will
support the Project Gutenberg™ mission of promoting free
access to electronic works by freely sharing Project Gutenberg™
works in compliance with the terms of this agreement for
keeping the Project Gutenberg™ name associated with the
work. You can easily comply with the terms of this agreement
by keeping this work in the same format with its attached full
Project Gutenberg™ License when you share it without charge
with others.

1.D. The copyright laws of the place where you are located also
govern what you can do with this work. Copyright laws in most
countries are in a constant state of change. If you are outside
the United States, check the laws of your country in addition to
the terms of this agreement before downloading, copying,
displaying, performing, distributing or creating derivative works
based on this work or any other Project Gutenberg™ work. The
Foundation makes no representations concerning the copyright
status of any work in any country other than the United States.

1.E. Unless you have removed all references to Project


Gutenberg:

1.E.1. The following sentence, with active links to, or other


immediate access to, the full Project Gutenberg™ License must
appear prominently whenever any copy of a Project
Gutenberg™ work (any work on which the phrase “Project
Gutenberg” appears, or with which the phrase “Project
Gutenberg” is associated) is accessed, displayed, performed,
viewed, copied or distributed:

This eBook is for the use of anyone anywhere in the United


States and most other parts of the world at no cost and
with almost no restrictions whatsoever. You may copy it,
give it away or re-use it under the terms of the Project
Gutenberg License included with this eBook or online at
www.gutenberg.org. If you are not located in the United
States, you will have to check the laws of the country
where you are located before using this eBook.

1.E.2. If an individual Project Gutenberg™ electronic work is


derived from texts not protected by U.S. copyright law (does not
contain a notice indicating that it is posted with permission of
the copyright holder), the work can be copied and distributed to
anyone in the United States without paying any fees or charges.
If you are redistributing or providing access to a work with the
phrase “Project Gutenberg” associated with or appearing on the
work, you must comply either with the requirements of
paragraphs 1.E.1 through 1.E.7 or obtain permission for the use
of the work and the Project Gutenberg™ trademark as set forth
in paragraphs 1.E.8 or 1.E.9.

1.E.3. If an individual Project Gutenberg™ electronic work is


posted with the permission of the copyright holder, your use and
distribution must comply with both paragraphs 1.E.1 through
1.E.7 and any additional terms imposed by the copyright holder.
Additional terms will be linked to the Project Gutenberg™
License for all works posted with the permission of the copyright
holder found at the beginning of this work.

1.E.4. Do not unlink or detach or remove the full Project


Gutenberg™ License terms from this work, or any files
containing a part of this work or any other work associated with
Project Gutenberg™.

1.E.5. Do not copy, display, perform, distribute or redistribute


this electronic work, or any part of this electronic work, without
prominently displaying the sentence set forth in paragraph 1.E.1
with active links or immediate access to the full terms of the
Project Gutenberg™ License.

1.E.6. You may convert to and distribute this work in any binary,
compressed, marked up, nonproprietary or proprietary form,
including any word processing or hypertext form. However, if
you provide access to or distribute copies of a Project
Gutenberg™ work in a format other than “Plain Vanilla ASCII” or
other format used in the official version posted on the official
Project Gutenberg™ website (www.gutenberg.org), you must,
at no additional cost, fee or expense to the user, provide a copy,
a means of exporting a copy, or a means of obtaining a copy
upon request, of the work in its original “Plain Vanilla ASCII” or
other form. Any alternate format must include the full Project
Gutenberg™ License as specified in paragraph 1.E.1.

1.E.7. Do not charge a fee for access to, viewing, displaying,


performing, copying or distributing any Project Gutenberg™
works unless you comply with paragraph 1.E.8 or 1.E.9.

1.E.8. You may charge a reasonable fee for copies of or


providing access to or distributing Project Gutenberg™
electronic works provided that:

• You pay a royalty fee of 20% of the gross profits you derive
from the use of Project Gutenberg™ works calculated using the
method you already use to calculate your applicable taxes. The
fee is owed to the owner of the Project Gutenberg™ trademark,
but he has agreed to donate royalties under this paragraph to
the Project Gutenberg Literary Archive Foundation. Royalty
payments must be paid within 60 days following each date on
which you prepare (or are legally required to prepare) your
periodic tax returns. Royalty payments should be clearly marked
as such and sent to the Project Gutenberg Literary Archive
Foundation at the address specified in Section 4, “Information
about donations to the Project Gutenberg Literary Archive
Foundation.”

• You provide a full refund of any money paid by a user who


notifies you in writing (or by e-mail) within 30 days of receipt
that s/he does not agree to the terms of the full Project
Gutenberg™ License. You must require such a user to return or
destroy all copies of the works possessed in a physical medium
and discontinue all use of and all access to other copies of
Project Gutenberg™ works.

• You provide, in accordance with paragraph 1.F.3, a full refund of


any money paid for a work or a replacement copy, if a defect in
the electronic work is discovered and reported to you within 90
days of receipt of the work.

• You comply with all other terms of this agreement for free
distribution of Project Gutenberg™ works.

1.E.9. If you wish to charge a fee or distribute a Project


Gutenberg™ electronic work or group of works on different
terms than are set forth in this agreement, you must obtain
permission in writing from the Project Gutenberg Literary
Archive Foundation, the manager of the Project Gutenberg™
trademark. Contact the Foundation as set forth in Section 3
below.

1.F.

1.F.1. Project Gutenberg volunteers and employees expend


considerable effort to identify, do copyright research on,
transcribe and proofread works not protected by U.S. copyright
law in creating the Project Gutenberg™ collection. Despite these
efforts, Project Gutenberg™ electronic works, and the medium
on which they may be stored, may contain “Defects,” such as,
but not limited to, incomplete, inaccurate or corrupt data,
transcription errors, a copyright or other intellectual property
infringement, a defective or damaged disk or other medium, a
computer virus, or computer codes that damage or cannot be
read by your equipment.

1.F.2. LIMITED WARRANTY, DISCLAIMER OF DAMAGES - Except


for the “Right of Replacement or Refund” described in
paragraph 1.F.3, the Project Gutenberg Literary Archive
Foundation, the owner of the Project Gutenberg™ trademark,
and any other party distributing a Project Gutenberg™ electronic
work under this agreement, disclaim all liability to you for
damages, costs and expenses, including legal fees. YOU AGREE
THAT YOU HAVE NO REMEDIES FOR NEGLIGENCE, STRICT
LIABILITY, BREACH OF WARRANTY OR BREACH OF CONTRACT
EXCEPT THOSE PROVIDED IN PARAGRAPH 1.F.3. YOU AGREE
THAT THE FOUNDATION, THE TRADEMARK OWNER, AND ANY
DISTRIBUTOR UNDER THIS AGREEMENT WILL NOT BE LIABLE
TO YOU FOR ACTUAL, DIRECT, INDIRECT, CONSEQUENTIAL,
PUNITIVE OR INCIDENTAL DAMAGES EVEN IF YOU GIVE
NOTICE OF THE POSSIBILITY OF SUCH DAMAGE.

1.F.3. LIMITED RIGHT OF REPLACEMENT OR REFUND - If you


discover a defect in this electronic work within 90 days of
receiving it, you can receive a refund of the money (if any) you
paid for it by sending a written explanation to the person you
received the work from. If you received the work on a physical
medium, you must return the medium with your written
explanation. The person or entity that provided you with the
defective work may elect to provide a replacement copy in lieu
of a refund. If you received the work electronically, the person
or entity providing it to you may choose to give you a second
opportunity to receive the work electronically in lieu of a refund.
If the second copy is also defective, you may demand a refund
in writing without further opportunities to fix the problem.

1.F.4. Except for the limited right of replacement or refund set


forth in paragraph 1.F.3, this work is provided to you ‘AS-IS’,
WITH NO OTHER WARRANTIES OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO WARRANTIES OF
MERCHANTABILITY OR FITNESS FOR ANY PURPOSE.

1.F.5. Some states do not allow disclaimers of certain implied


warranties or the exclusion or limitation of certain types of
damages. If any disclaimer or limitation set forth in this
agreement violates the law of the state applicable to this
agreement, the agreement shall be interpreted to make the
maximum disclaimer or limitation permitted by the applicable
state law. The invalidity or unenforceability of any provision of
this agreement shall not void the remaining provisions.

1.F.6. INDEMNITY - You agree to indemnify and hold the


Foundation, the trademark owner, any agent or employee of the
Foundation, anyone providing copies of Project Gutenberg™
electronic works in accordance with this agreement, and any
volunteers associated with the production, promotion and
distribution of Project Gutenberg™ electronic works, harmless
from all liability, costs and expenses, including legal fees, that
arise directly or indirectly from any of the following which you
do or cause to occur: (a) distribution of this or any Project
Gutenberg™ work, (b) alteration, modification, or additions or
deletions to any Project Gutenberg™ work, and (c) any Defect
you cause.

Section 2. Information about the Mission


of Project Gutenberg™
Project Gutenberg™ is synonymous with the free distribution of
electronic works in formats readable by the widest variety of
computers including obsolete, old, middle-aged and new
computers. It exists because of the efforts of hundreds of
volunteers and donations from people in all walks of life.

Volunteers and financial support to provide volunteers with the


assistance they need are critical to reaching Project
Gutenberg™’s goals and ensuring that the Project Gutenberg™
collection will remain freely available for generations to come. In
2001, the Project Gutenberg Literary Archive Foundation was
created to provide a secure and permanent future for Project
Gutenberg™ and future generations. To learn more about the
Project Gutenberg Literary Archive Foundation and how your
efforts and donations can help, see Sections 3 and 4 and the
Foundation information page at www.gutenberg.org.

Section 3. Information about the Project


Gutenberg Literary Archive Foundation
The Project Gutenberg Literary Archive Foundation is a non-
profit 501(c)(3) educational corporation organized under the
laws of the state of Mississippi and granted tax exempt status
by the Internal Revenue Service. The Foundation’s EIN or
federal tax identification number is 64-6221541. Contributions
to the Project Gutenberg Literary Archive Foundation are tax
deductible to the full extent permitted by U.S. federal laws and
your state’s laws.

The Foundation’s business office is located at 809 North 1500


West, Salt Lake City, UT 84116, (801) 596-1887. Email contact
links and up to date contact information can be found at the
Foundation’s website and official page at
www.gutenberg.org/contact
Section 4. Information about Donations to
the Project Gutenberg Literary Archive
Foundation
Project Gutenberg™ depends upon and cannot survive without
widespread public support and donations to carry out its mission
of increasing the number of public domain and licensed works
that can be freely distributed in machine-readable form
accessible by the widest array of equipment including outdated
equipment. Many small donations ($1 to $5,000) are particularly
important to maintaining tax exempt status with the IRS.

The Foundation is committed to complying with the laws


regulating charities and charitable donations in all 50 states of
the United States. Compliance requirements are not uniform
and it takes a considerable effort, much paperwork and many
fees to meet and keep up with these requirements. We do not
solicit donations in locations where we have not received written
confirmation of compliance. To SEND DONATIONS or determine
the status of compliance for any particular state visit
www.gutenberg.org/donate.

While we cannot and do not solicit contributions from states


where we have not met the solicitation requirements, we know
of no prohibition against accepting unsolicited donations from
donors in such states who approach us with offers to donate.

International donations are gratefully accepted, but we cannot


make any statements concerning tax treatment of donations
received from outside the United States. U.S. laws alone swamp
our small staff.

Please check the Project Gutenberg web pages for current


donation methods and addresses. Donations are accepted in a
number of other ways including checks, online payments and
credit card donations. To donate, please visit:
www.gutenberg.org/donate.

Section 5. General Information About


Project Gutenberg™ electronic works
Professor Michael S. Hart was the originator of the Project
Gutenberg™ concept of a library of electronic works that could
be freely shared with anyone. For forty years, he produced and
distributed Project Gutenberg™ eBooks with only a loose
network of volunteer support.

Project Gutenberg™ eBooks are often created from several


printed editions, all of which are confirmed as not protected by
copyright in the U.S. unless a copyright notice is included. Thus,
we do not necessarily keep eBooks in compliance with any
particular paper edition.

Most people start at our website which has the main PG search
facility: www.gutenberg.org.

This website includes information about Project Gutenberg™,


including how to make donations to the Project Gutenberg
Literary Archive Foundation, how to help produce our new
eBooks, and how to subscribe to our email newsletter to hear
about new eBooks.
Welcome to our website – the ideal destination for book lovers and
knowledge seekers. With a mission to inspire endlessly, we offer a
vast collection of books, ranging from classic literary works to
specialized publications, self-development books, and children's
literature. Each book is a new journey of discovery, expanding
knowledge and enriching the soul of the reade

Our website is not just a platform for buying books, but a bridge
connecting readers to the timeless values of culture and wisdom. With
an elegant, user-friendly interface and an intelligent search system,
we are committed to providing a quick and convenient shopping
experience. Additionally, our special promotions and home delivery
services ensure that you save time and fully enjoy the joy of reading.

Let us accompany you on the journey of exploring knowledge and


personal growth!

testbankmall.com

You might also like