Web Application Design and Implementation Apache 2 PHP5 MySQL JavaScript and Linux UNIX Quantitative Software Engineering Series 1st Edition Steven A. Gabarró instant download
Web Application Design and Implementation Apache 2 PHP5 MySQL JavaScript and Linux UNIX Quantitative Software Engineering Series 1st Edition Steven A. Gabarró instant download
https://ebookgate.com/product/professional-lamp-linux-apache-mysql-
and-php-web-development-1st-edition-jason-gerner/
ebookgate.com
https://ebookgate.com/product/php5-and-mysql-bible-tim-converse/
ebookgate.com
https://ebookgate.com/product/apache-myfaces-1-2-web-application-
development-1st-new-edition-edition-bart-kummel/
ebookgate.com
https://ebookgate.com/product/setting-up-lamp-getting-linux-apache-
mysql-and-php-working-together-1st-edition-eric-filson/
ebookgate.com
https://ebookgate.com/product/javascript-application-design-a-build-
first-approach-1st-edition-nicolas-bevacqua/
ebookgate.com
https://ebookgate.com/product/software-specification-and-design-an-
engineering-approach-1st-edition-ph-d/
ebookgate.com
https://ebookgate.com/product/javascript-the-web-warrior-series-6th-
edition-sasha-vodnik/
ebookgate.com
Web Application Design
and Implementation
•• e T ..
~I t 807 ~
=1~WlLEY:
:12007 ;
-;
• '
. l e . . . T ..... I ...
.
r
<S achgeneration has its unique needsand aspirations. When Charles Wiley first
opened his small printing shop in lower Manhattan in 1807, it was a generation
of boundless potential searching for an identity. And we were there, helping to
define a new American literary tradition. Over half a century later, in the midst
of the Second Industrial Revolution, it was a generationfocusedon building the
future. Once again, we werethere,supplyingthe criticalscientific,technical,and
engineering knowledge that helped frame the' world. Throughout the 20th
Century, and into the :new millennium, nations began to reach out beyond their
own borders and a new international community was born. Wiley was there,
expanding its operationsaround the world to enable a global exchangeof ideas,
opinions, and know-how.
For 200 years, Wiley has been an integral part of each generation's journey,
enablingthe flowof information and understanding necessaryto meet their needs
and fulfill their aspirations. Today, bold new technologies are changing the way
we live and learn. Wiley will be there, providing you the must-have knowledge
you need to imaginenew worlds, new possibilities, and new opportunities.
Generations come and go, but you can always count on Wiley to provide you the
knowledge you need,when and whereyou need it!
Lu~';'~~.~ ~~u~
WILLIAM .... PESCE PETER BaaTH WILEY
PRESIDENT AND CHIEF' EXECUTIVE DFFlCER CHAIRMAN OF" THE BOARD
Web Application Design
and Implementation
Apache 2, PHP5, MySQL,
JavaScript, and Linux/UNIX
Steven A. Gabarro
Stevens Institute of Technology
Hoboken, New Jersey
IEEE
~computer
SOciety
60TH anniversary
"'
BICENTENNIAL
it807~
.
=~WILEY=z
.-
z
:2007~
,.~
BICENTENNIAL
WILEY-INTERSCIENCE
A John Wiley & Sons, Inc., Publication
Copyright © 2007 by John Wiley & Sons, Inc. All rights reserved.
Limit of Liability/Disclaimer of Warranty: While the publisher and author have used their
best efforts in preparing this book, they make no representations or warranties with respect
to the accuracy or completeness of the contents of this book and specifically disclaim any
implied warranties of merchantability or fitness for a particular purpose. No warranty may be
created or extended by sales representatives or written sales materials. The advice and
strategies contained herein may not be suitable for your situation. You should consult with a
professional where appropriate. Neither the publisher nor author shall be liable for any loss
of profit or any other commercial damages, including but not limited to special, incidental,
consequential, or other damages.
For general information on our other products and services or for technical support, please
contact our Customer Care Department within the United States at (800) 762-2974, outside
the United States at (317) 572·-3993 or fax (317) 572-4002.
Wiley also publishes its books in a variety of electronic formats. Some content that appears
in print may not be available in electronic formats. For more information about Wiley
products, visit our web site at www.wiley.com.
Preface xiii
About the Author / xiii
Before We Get Started I xiii
Who Should Read This Book? I xiv
About the Examples I xiv
How to Read This Book I xiv
Acknowledgments xv
1. Fundamentals 5
The Origins of the Internet I 5
The World Wide Web I 6
The Web Browsers I 7
The Web Servers I 7
TCP/IP BASICS I 8
The Internet Layer I 9
The Transport Layer I 11
The Application Layer I 11
The Toolbox I 12
Browsers I 12
FTP I 13
Email Clients I 14
Programming Tools I 14
Other Useful Tools I 15
3. Introduction to HTML 27
What Do You Need to Get Started? I 27
How Does HTML Work? I 28
Syntax Basics / 28
File Structure I 28
Tag Parameters I 30
Basic Text Formatting I 30
External References I 32
Links I 32
Images I 33
CONTENTS vii
Organizing Data / 34
Lists / 35
Tables / 36
Frames / 39
Special Characters I 43
4. Work Environment 45
Introduction I 45
Downloading the Software I 45
Installing the Apache Server I 46
Installation Steps I 46
Checking the Installation I 47
Possible Errors I 47
Configuring Apache I 48
Installing PHP5 I 48
Testing PHP I 50
Installing MySQL I 50
Adding a MySQL User I 51
How Do I Know if MySQL is Running? I 51
Installing PhpMyAdmin I 51
Installing a Bulletin Board: phpBB I 52
Installation Steps I 52
Basic Security Considerations I 54
Conclusion I 55
Multidimensional Arrays / 71
Array Functions / 74
PHP Program Structure and Flow of Control / 77
Conditions / 77
Loops / 80
Functions / 82
Bibliography 269
Index 271
Preface
Steven Gabarr6 was born in 1979 and raised in Alicante, Spain. He started
programming early, learning BASIC (Beginner's All-purpose Symbolic
Instruction Code) at age 9. Later on, in high school, he learned Turbo Pascal
and C. At that point it was pretty obvious that he was going to end up as a
computer scientist. He ended up studying for a master's degree in computer
science in the Ecole Pour l'Informatique et les Techniques Avancees, where
he specialized in advanced multimedia and Web technologies, graduating
with honors, finishing third in his class. He went to the United States in
January 2002, enrolling in the Masters of Science in Information Systems at
the Stevens Institute of Technology, in Hoboken, New Jersey. There he quickly
advanced from teaching assistant to full-time instructor. On his appointment
as full-time faculty, he created the first Web programming course at Stevens,
based on his personal experiences. This book is the result of that course, and
is a close reflection of what Steven teaches his students.
The way this book is organized, it should be ideal for anyone trying to learn
how to create complete Websites with no previous knowledge of any of the
languages presented. It does require some minimum knowledge of program-
ming in general, as well as object-oriented programming basics to understand
Chapter 8.
It is also a good read for Web designers that know about making pages
look nice, but have no knowledge of how to create dynamic pages built
through a database or anyone who would like to pick up on the art of pro-
gramming pages. Realize: that I have never been a good graphic designer, so
this book will not tell you how to do things like making decisions regarding
the proper colors, fonts, or sizes to use, or other cosmetic details. I will deal
with how to set those features up, but will not tell you how to pick your layout
or color schemes, because I am definitely not good at it. Instead, I will con-
centrate on how to actually program useful pages with loads of functionality.
All the examples have been tested, and if any are not compatible with a spe-
cific browser, this will be stated in the text. You can find all the example files,
as well as an example solution for the mini exercises and the indexer/searcher
case study at ftp://ftp.wiley.com/public/sci_tech_med/web_application. I will
also work on extra examples that I will make available to illustrate other areas
of the book that did not get a full example. I would have included many more
examples, but then you would need two or three volumes this size. Instead, I
will just put everything in a Website for you to download and test. I hope you
enjoy it all!
The book is organized to be read front to back, but you may skip chapters as you
see fit, or use the book as a reference. The Introduction is a summary of Chapter
19 and should be used by people already experienced in Web development. It is
basically meant as a guide to using this book as a "Web programming cook-
book." You may read this Introduction for brief guidelines or go straight to
Chapter 19 if you need an in-depth explanation with a practical example.
Acknowledgments
I'd like to express great thanks to my family first for always being there for
me. I wouldn't be where I am without them, and I'll never manage to thank
them enough for that. To my very close (and special, a.k.a. N.B.) friends, I
thank you for your support and patience over the years; it is not easy putting
up with me for so long, but you have always given me some of the best times
I could hope for. Quick "howdy" to my online friends at COTW and BF2C
for helping me steam off when I had too much work and needed a break.
Thanks to Larry Bernstein for allowing me the opportunity to write this
book, and of course thanks to the people at John Wiley & Sons for getting
my first book published even though I'm still "a kid." Special thanks to
Whitney, Paul and Melissa for all of their help and patience; and to Ben for
the cover image. ©
xv
Introduction
OVERVIEW
You might be wondering why you are reading an "Introduction" chapter and
why this chapter is called "Web Application Recipe." Well, this chapter is
your quick guide to professional Web application design and implementation.
It is in essence a summary of the last chapter of the book (Chapter 19),
created mainly for people with enough experience in Web programming to
skip some of the chapters presented. This chapter will give you the rundown
of the major steps in the lifecycle of a Web project, and will refer to the chap-
ters where you might find more in-depth information on the topics covered.
I call it the "recipe" because it gives you the general layout of what needs to
be done, before getting into the specific details that each individual chapter
will cover. For a more in-depth guideline with a practical example, be sure to
read Chapter 19.
PROCEDURE
Web Application Design and Implementation: Apache 2, PHP5, MySQL, JavtiScript, and
Linux/UNIX, by Steven A. Gabarr6
Copyright © 2007 by John Wiley & Sons, Inc.
1
2 WEB APPLICATION RECIPE
Step 4-Backside
Once the core of the project is up and running, you need to implement the
back end of the project. This is the section of the project that will be used by
administrators to manage the Website after it has been published, and it is a
good idea to have it up and running before the regular users start meddling
with the Web application. If you need some information on writing scripts in
PHP, check out Chapters 5-9.
Step 8-Presentation
Assuming that you are not writing the application for yourself and there is
money involved, you will need to present your final project to your project
sponsor. The key here is to be relaxed and be confident that your project
is rock-solid. If you follow the guidelines in this book, this should not be
a problem. If you are presenting to a nontechnical person, start by showing
the general features of the project, getting into details only when asked to
do so. If you are presenting to a fellow developer, go straight to the
functionalities.
Step 9-Publication
When the project has been approved, it is time to release it. Place it in your
desired host and make sure that everything is set up properly so that users
worldwide can access it. This phase should be fairly fast.
4 WEB APPLICATION RECIPE
Not that long ago, in a galaxy pretty close by, men and women used to live
without practical means of communication. Paper was the main medium used
for information sharing and horses the main carrier for that medium. But
science kept working, and in 1831 Joseph Henry invented the first electric
telegraph. Four years later, Samuel Morse invented the Morse code, and
worked on the very first long-distance electric telegraph line, which he fin-
ished in 1843. A bigger leap in communication progress was made by Alex-
ander Graham Bell, who patented the electric telephone in 1876.Long-distance
communication was finally a reality, but still archaic compared to what was
to be achieved. With the arrival of computers in the midtwentieth century,
people realized the potential of storing and processing data in those amazing
new machines. Furthermore, the United States and the Soviet Union were
deep in the Cold War, and the fear of a possible strike was constantly present
in the military's mind. One of the main concerns was the possibility that all
communication between remote locations could be interrupted by an attack.
Telephone and telegraph lines were out in the open, and could be easily
damaged, so the National Security Agency (NSA) thought of a way to
preserve communications. Emulating the principles of telephone commu-
nication, in the 1960s, the NSA thought of connecting computers through
Web Application Design and Implementation: Apache 2, PHP5, MySQL, JavaScript, and
Linux/UNIX, by Steven A. Gabarr6
Copyright © 2007 by John Wiley & Sons, Inc.
5
6 FUNDAMENTALS
wide-area networks (WANs), so that if the phone lines went down, they would
still be able to send orders to detachments across the country, through the
use of computers. In order to make this idea a reality, the Advanced Research
Project Agency (ARPA) created the first computer network in 1969, and
named it the ARPANET. It was composed of only four computers, located
in the University of California at Los Angeles (UCLA), the University of
California at Santa Barbara (UCSB), the University of Utah, and the Stan-
ford Research Institute (SRI). Three years later, in 1972, the use of routers
allowed the ARPANET to have 20 nodes and 50 host computers, which could
all communicate through tools such as the tel net and FTP (File Transfer
Protocol). In 1974 Vincent Cerf, from the SRI, and Robert Kahn, from the
Defense Advanced Research Project Agency (DARPA), presented the Trans-
mission Control Protocol/Internet Protocol (TCP/IP) basics, forever chang-
ing the waycomputers would communicate. In 1983the Defense Communication
Agency (DCA) took control of the ARPANET and separated the military
section to form the MILNET, which would be used for military purposes only.
In the mid-1980s the two main existing networks, the ARPANET and the
NSFNET (created by the National Science Foundation), merged to create a
massive computer network. That merge motivated a trend that brought more
and more computers to the network, and this network of networks was then
named "the Internet." By 1990 the Internet had 3000 subnets and over 200,000
host computers. The estimated number of host computers in the year 2004
was approximately 234 million, and growing.
After creation of the Internet, great potential could be seen way beyond the
actual work that was being done. Computers were destined to do more than
utilize telnets and FTP; it was great to be able to link one computer to
another in order to send files, but the problem of communication was not yet
totally solved. Scientists doing research had to connect to a remote computer
and send their research results one at the time through FTP. This was faster
than sending manuscripts through "snail mail," but it was still not the best
option, so in 1989 Tim Berners-Lee presented the World Wide Web project
to the Conseil Europeen de Recherche Nucleaire (CERN; European Orga-
nization for Nuclear Research, based in Switzerland). The idea was to come
up with a set of standards for information sharing that scientists. around the
world would be able to use. The goal was to be able to have all research
documents in a format and location accessible to all interested regardless of
the platform being used . In 1994 the World Wide Web Consortium (W3C)
was created to lead the World Wide Web (WWW) to its full potential by
developing common protocols that would promote its evolution and ensure
its operability. You can find out more about the W3C visiting their Website,
www.w3c.org.
THE WEB SERVERS 7
Right at this point we have seen what lead to the creation of the computer
network known as "the Internet," and the reasoning behind the apparition of
the World Wide Web. But we still have a main problem that we haven't
answered yet-how do we use all this to communicate? First the Internet
brought us the media through which the information would flow, then the
WWW provided a standard format for information formatting, but there
was still the problem of how to read that information. To solve that problem,
some tool had to be created that would use the current standards and decode
Web documents and format them in such a way that would be intelligible
to the user. The Web browsers came to the rescue and solved that pro-
blem. The first graphical user interface (GUI) with the WWW to appear
was Mosaic, created by the National Center of Supercomputer Applications
(NCSA) at the University of Illinois in 1993. In 1994 Norway entered in
the pages of Internet history by creating the still-used Opera. Soon after-
ward Netscape appeared, followed by Microsoft's Internet Explorer, which
appeared along Windows 95. From that point on, the browsing market
has done nothing but evolve and-Fortunately for us, the users-improve.
Nowadays the two main browsers used are Internet Explorer and Mozilla
Firefox.
Now that we know what the Internet is, the purpose of the World Wide Web,
and why we use Web browsers, another question may arise: "Where are all
these data stored?" It is definitely enlightening to know how we access all the
information that the World Wide Web has to offer, but where is all that infor-
mation? Well, the answer is pretty simple; it is in all the computers that form
the Internet. Some people become alarmed, believing that any computer con-
nected to the Internet will automatically make all of its files accessible to the
entire world. Not to worry, that is not how it works. In order to share informa-
tion in a specific computer, some software has to be installed on the computer,
making it a "Web server." The server creates a list of folders that will be
shared when someone attempts to connect to the computer using standard
Web protocols. There are two main competitors in the Web server market.
The first one, my personal favorite and the one used throughout this book, is
Apache, developed by the Apache Software Foundation (www.apache.or~).
Apache has the great advantage of being totally free of charge and works on
every platform. It is an open-source program, which means that you can actu-
ally see the code behind the server and even participate in the improvement
of Apache. It is reliable and vastly used around the world, and pretty much
the only reliable option on UNIX/Linux. The other main server is Microsoft's
Internet Information Services (lIS, www.microsoft.com/iis). lIS is not open-
8 FUNDAMENTALS
TCP/IP BASICS
THE TOOLBOX
To conclude this chapter, I will list some programs that I believe all Web
developers should know about. All opinions are entirely personal, and you
are more than free to disagree with me.
Browsers
As mentioned earlier, browsers are essential in the use of the Internet and
choosing the right one for you is an important decision to make. Throughout
this book we will discuss some of the differences between these browsers,
especially during the JavaScript coverage. The most commonly used by
Microsoft Windows users is obviously Internet Explorer (http://www.micro-
soft.com/ie/), since it comes with the operating system. MSIE is a very user-
friendly browser, and perfect for Mr. or Mrs. Anybody that just wants to
browse the web. As a developer you must know that it is a dangerous tool,
since no matter how disgusting your HTML code might be, MSIE will manage
to make the output look decent, especially when using tables or frames. So
do not assume your page is perfectly written just because MSIE displays it
nicely. One of the advantages of MSIE is that JavaScript works perfectly well
with it, so you will probably love it when we are working on that language. It
also contains many plug-in that are required in many websites, so you might
actually be required to use it to fully appreciate some websites. The major
flaw it has as far as I'm concerned, and a reason why I stopped using it, is the
number of security holes it contains. Granted, in most cases no one will ever
attack your computer using those security holes, but as a computer scientist,
I like being protected.
Another browser that had great influence in the world of browsing is
Netscape (http://browser.netscape.com/ns8/), which had a great growth in the
late 90s. Unfortunately for Netscape, it has been going downhill for few years
now, and personally it will never cross my mind to use it again until they
improve it greatly. I actually stopped using NS when they released their
version 6, mostly due to JavaScript incompatibilities that will be mentioned
in further chapters. But basically Netscape had a set of Netscape-specific
HTML tags that were both useful and necessary for the use of JavaScript on
that browser, but they decided to wipe those out on version 6, which pretty
THE TOOLBOX 13
FTP
If you are trying to install an FTP server on a Windows machine, I would
have to recommend Serv-U FTP (www.serv-u.com).Itis a great server soft-
ware that will probably allow you to do anything you want to with it. If you
are looking for an FTP server for UNIX, there are so many good, and free,
ones that I won't even bother mentioning them (there was probably one
included in your UNIX/Linux distribution).
If you are trying to get a nice FTP client, one of the most commonly used
(or at least it was when I discovered FTP) is Cute-FTP (www.cuteftp.com).
There are many others free and not free, but my favorite would have to be
LeechFTP, which allows the use of multiple threads, which speeds up the
transfer of multiple files. Unfortunately, the development of LeechFTP has
not been continued for over a year, so there are no really recent (as of 2006)
versions. I still like myoId version, though, since it never gave me any prob-
lems. It would seem (at the time of this writing) that the people working on
LeechFTP are now working on a new client called BitBeamer (www.bit-
beamer.com). I have never tried that software, so I cannot vouch for it, but it
is supposed to have all the features that LeechFTP had.
14 FUNDAMENTALS
Email Clients
One of the most widely used email clients is Outlook Express, which comes
standard with every copy of Windows (since Windows 95). It is simple and
works well, and is preinstalled with Windows, so no need to add extra soft-
ware if that is your platform. There is also the more complicated version
called Outlook, which does all Outlook Express does but adds in a calendar,
nicer agenda, but also heavier software to run. Personally I prefer the Express
version.
Another survivor of the old ages, and the first email client I ever used in
my life, is Eudora (www.eudora.com).Ihaven·tuseditsince19970rso.so I
am not really in a position to tell you how good the latest versions are.
Many users simply like using the clients that come with their browsers,
such as Netscape mail, or directly with Web-based email clients like Hotmail
(www.hotmail.com). or Yahoo (http://mail.yahoo.com), which allow you to
view emails directly on a browser. Personally I'd recommend you use Gmail
(www.gmail.com)createdbythepeoplefromGoogle.Itis by far the best
Web-based email tool I have used in over 10 years of Internet use, and it is
still in its Beta version, so Google can still improve it. The only problem is
that you can create an account only if you are invited to do so by a current
user.
If what you use is lJNIX or Linux, the two main email clients I know
and have used are "Pine" (Program for Internet News & Mail) and "Elm"
(Electronic Mail), but I would have to vouch for Elm. It is a very small simple
application that runs straight from your shell and lets you choose your text
editor. They are both usuallyincludedwith the major UNIX/Linux distributions.
Programming Tools
Whenever you start programming Webpages, you will have to choose which
software to use, and you might think you need a lot of money for licenses and
so on. Well, think again, because you have excellent tools that will be more
than enough to program Websites (and I strongly recommend that you use
these when working with this book). On Windows platform you have two
great tools called Notepad and Wordpad. I personally prefer the first one
because it is much simpler and does not have all the unnecessary things that
Wordpad has. On UNIX you have "vi" and "emacs," which is pretty much
like choosing between Red Sox and Yankees (or between Real Madrid and
Fe Barcelona), since in most cases people that like one hate the other. In my
case it is true: I love emacs and hate vi. But it is only a question of taste.
If you think those tools are too basic for you and you would like to see
some colors in your code when you type it, you might want to choose some-
thing like HomeSite by Macromedia (www.macromedia.com/software/home-
site). It is a simple text editor adapted to Web development, so it recognizes
the syntax and highlights special words and tags. It also allows you to preview
THE TOOLBOX 15
the page and comes with a great tool for the creation of style sheets. Similar
to HomeSite but a bit simpler is UltraEdit (www.ultraedit.com). which allows
you to import or create your own set of syntax rules and colors associated
with those rules.
Another well-known editing tool is Macromedia's DreamWeaver (www.
macromedia.com/software/dreamweaver). The basic way to use Dream-
Weaver is to simply drag and drop the elements you wish to have in the page.
You can also type directly in a "preview" of the page, having DreamWeaver
take care of all the actual coding. Because of this feature, I do not recommend
it for this course, since it promotes laziness, and adds too much useless code.
If you really want to use it, please use the split view and type in the code
directly. (The split view will allow you to see both the preview and code at
the same time).
Finally, we have Microsoft's FrontPage (www.microsoft.com/frontpage).
which is definitely not my favorite tool for Web programming. It creates a
large amount of unnecessary folders and files when you are just trying to
create a simple Website, and adds useless code in the pages that you create.
It might be a great option for people wanting to create a Webpage without
having to understand any of the code, like web designers, for example. If you
are a Web developer, code should be your number one priority, making Front-
Page my last choice. Last, and least, is Microsoft's Word "Export to HTML"
feature, which should be used only by non-Web-savvy people to quickly create
pages from Word documents. It is very problematic, and I discourage its
use.
Before I head on and start explaining the different languages available in the
Web programming market, let me stress that all the opinions stated are exclu-
sively my personal views. I tend to be very opinionated, but I will try to justify
both my criticism and praises of the different languages presented.
THE BASICS-HTML
The very first programming language that must be mentioned when discuss-
ing Web programming is obviously HTML. The WWW could not be what it
is today if it weren't for this language. The HTML (Hypetrext Markup Lan-
guage) is, as the name indicates, a "markup" language, which generally means
that it is based on the use of tags to provide functionality. The "code" in an
HTML file is simply text containing those tags that provide functionality and
different looks to the page. It is an interpreted client-side language, meaning
that for an HTML page to be viewed, a browser must first download it from
a server into a client machine and then execute the code line by line.
HTML relies strongly on the use of Universal Resource Identifiers (URI).
Each URI represents a way to refer to a page, an image, or even an email
Web Application Design and Implementation: Apache 2, PHP5, MySQL, JavaScript, and
Linux/UNIX, by Steven A. Gabarr6 .
Copyright © 2007 by John Wiley & Sons, Inc.
17
18 THE DIFFERENT APPROACHES OF WEB PROGRAMMING
mydomain.com (I)
images
t mypic.jpg
myotherpic.jpg
t
files
foobar.html
otherfile.html
yetanotherfile.html
As you noticed, relative paths usually start with "..1", which means "go to
parent directory" or "'/", which means "current directory." Relative paths
are an easy way to make a Website more portable since they are independent
of the domain that the pages are in. It is especially useful if, like me, you
test all your pages in a local computer before uploading the files to your
host.
The use of URIs is pretty much a necessity in HTML because they allow
you to embed images to a page, send information from a form to a processing
script, create an image map, link to an external style sheet, create frame docu-
ments, cite an external reference, or also refer to metadata conventions to
describe the page.
THE CREATOR-SGML
Because the output produced by browsers when opening a basic XML file
tends to provide too much information, and it does not have a flexible appear-
ance, XSL was created. The eXtensible Style sheet Language is used as a
20 THE DIFFERENT APPROACHES OF WEB PROGRAMMING
In order to link our .XML file to the XSL file, you would simply add the
following line right after the «Yxml. . . . ?> line of the XML file:
SOMETHING DIFFERENT-JavaScript
Here comes one of the greater sources of confusion among young developers.
Despite the name "JavaScript," this programming language is very different
from Java. First, it is a compact, object-based scripting language, generally
used to develop client-side scripting pages, and sometimes server Internet
applications. In many cases, JavaScript is code that is embedded directly in
the HTML code of a page, to be executed by the client. This means that the
code is downloaded at the same time as is the rest of the page, making it
entirely visible. It is then interpreted line by line at the same time as are the
HTML tags. Again, it is different from Java; some of the major differences
are listed in Table 2.1.
THE SAVIOR-PHP
Well, you are probably wondering about the title I gave this section, but let
me explain my logic behind it. I am one of those old-school developers who
believe that C language is one of the best programming languages ever,
because of its flexibility and how easy it is to learn. C is a language that, with
a small toolset, can allow you to achieve pretty much anything you wish to
achieve. Well, for me, PHP is pretty much "C for the Web." The syntax is very
similar, with less syntax restrictions, as we will see little by little, but follows
the two concepts of C that I like the most: flexibility and ease of use. It is
really easy to learn; an experienced programmer can pick it up in a couple of
days. Another great asset of PHP is the fact that it runs server-side, meaning
that the code is executed before the client has access to it, but we shall discuss
this later on. Let us talk about the basics.
PHP is a recursive acronym of Hypertext PreProcessor and, as the name
indicates, works like many preprocessors found in other languages. This
means that the code is read line by line and interpreted as it goes, or at least
that was how PHP started. It is an open-source scripting language, so you will
be able to find many sites enhancing its development. It also means that the
PHP project is created and maintained by developers who wish to invest their
free time in making the product better, yet free.
PHP was designed to work for the Web, and its code is embedded directly
in HTML pages, although, as we shall see later, it is possible to separate
HTML and PHP through the use of templates. Interestingly, PHP is not
limited to work on the Web, and can actually be used to create command-line
scripts that you could run from a shell, or even GUI (Graphical User Inter-
face) applications through the use of the PHP-GTK library.
PHP is also designed to work closely with a wide variety of databases,
including Oracle, MySQL, PostgreSQL, ODBC, and Sybase among others,
making it an excellent choice for database-driven Websites, regardless of the
database you wish to use. It also includes an extensive set of libraries that
allows developers to interact with a wide range of other technologies. PHP
developers can write applications that will generate images, PDF documents,
work LDAP authentication servers, communicate with flash animations, and
many other things that unfortunately we will not be able to discuss, since it
would probably take several volumes.
THE RIVAL-ASP.NET'
Active Server Pages (ASP) and now ASP.NET are probably among the major
sources of confusion among developers. ASP used to be an actual program-
ming language developed by Microsoft that worked similarly to PHP; it was
a server-side scripting language, hence the title "the rival." With the arrival
of the .NET platform, ASP.NET received an entirely new meaning, referring
ANOTHER BIG OPTION-Perl 23
THE MYTH-CGI
Now, here is a good source of laughter among recruiters who know about Web
programming. Many people think that CGI (Common Gateway Interface) is
an actual programming language and tend to "beef up" their resumes, adding
it to their list of known programming languages, without really understanding
what CGI is. CGI is a common gateway interface, and is definitely not a pro-
gramming language. It is a standard for interfacing external applications with
information servers, or, if you prefer, a "magical door" that will allow you to
run your normal executable files in a Webpage. CGI applications are executed
in real time, allowing a dynamic output, such as, for example, generating a
Webpage adapted to a set of received inputs. The way it works is simple; you
first write an application in your favorite language and compile it to an execut-
able rename it to "file.cgi" (note that this is technically optional, and many
developers leave script names as "file.exe"; I personally discourage this).
Some of the most common allowed programming languages are etc++,
FORTRAN, Perl, TCL, UNIX Shell script, Visual Basic, and Apple script.
Of course, to make your application more useful for the Web, it is usually
written to receive a set of parameters and produce HTML code that will be
displayed as the page's output on the browser.
Even though I used Perl only when I was a computer science student, and
considering that it is never in my list of languages to use, I have nothing nega-
tive to say about it. Perl is a very powerful programming language, and also
very flexible, if anything, it is more complicated to learn and use than PHP.
It is also open-source, and one of the best options if your application is meant
to work extensively with text manipulation. Some of the most powerful regular
expression tools were created for Perl, and then exported to other languages,
24 THE DIFFERENT APPROACHES OF WEB PROGRAMMING
THE FUTURE?-C#
C# was a language created to work with .NET as a simple yet powerful object-
oriented programming language, mixing a programming interface similar to
the old Visual Basic, yet having the object-oriented features you could find
in C++. It is Microsoft's answer to Sun's Java. Java became increasingly
popular through J2EE, so Microsoft decided to create a language following
the same principles on their version of the three-tier architecture program-
ming platform, .NET. It strongly relies on XML as information exchange
format, and it is gaining popularity for programming Web services. As do
other .NET languages, it requires code to be compiled, yet it follows the
principle of Java's byte codes, by compiling into a platform-free language,
that will be interpreted by clients.
The reason behind the question mark is that even though C# is a fairly
recent language it is meant to be the flagship in the .NET revolution-or at
least that is what Microsoft representatives were announcing when they pre-
sented .NET. The reality is that its acceptance is still growing, but many .NET
developers prefer relying on older programming languages that they are more
familiar with ..NET is still gaining importance, and who knows, maybe it will
be the most predominant platform for Web services, not only on Microsoft
applications and Websites, but as a more global solution. If that happens,
surely C# will become increasingly popular and will be the first choice of
programming language for new developers.
any calculations or actions that might take place, which allows programmers
to create Webpages that will change dynamically as the code is executed.
Server-side applications run in the server, as the term indicates. This means
that when a client attempts to access a script programmed that way, the query
is sent to the server along with any input that the script might need. The script
then runs on the server, utilizing server resources only, and then sends the
final output to the client, who can see only that result, and has no access to
the source code itself. This obviously is a great asset since it protects the code,
which is very important for security reasons. Another great advantage of
having scripts run directly on the server is that you need to worry only
whether the server knows how to run it properly. Unlike the scenario in client-
side applications, the script will run exactly the same way, producing the same
output regardless of the client's platform or browser. On the negative side,
each time you wish to do something dynamic, you must communicate back
and forth between client and server.
Now that we know the differences between both sides, it is generally the
time to choose your preference, by selecting the language to use. Most devel-
opers, and therefore most books out there, tend to choose only one side, but
not me. Even though it is possible to create Websites based on just one tech-
nology, taking advantage of server-side and client-side programming simulta-
neously gives much more flexibility and allows a greater set of functionalities.
Some features run better in client-side, some in server-side, so restricting
yourself to only one will potentially limit your final project. Throughout this
book we will learn when .it is better to use a client-side language such as
JavaScript, or a server-side language like PHP.
Now that we have seen some of the most common options that programmers
face when engaging in Web programming, we must choose which technologies
to use. In our case, the choices are obviously known. One question you might
ask is why those choices and not others.
First, we have PHP. It is one of the most powerful and flexible programming
languages for the Web. It is free, is easy to learn (making it ideal for a one-
semester course), and simplifies any database access you might want to use.
JavaScript, although I do not like it as much as a language itself as it is
much more restrictive syntaxwise than PHP, is a really useful programming
language. As we will see, it is important to have a client-side language to
couple with PHP to make our pages more lifelike, dynamically changing
without having to constantly communicate with the server, and JavaScript will
help us fulfill that need.
MySQL, even though we have not discussed it yet, is a free database that
can be installed in any platform, providing a reliable solution for information
handling. It is also extremely easy to use MySQL databases with PHP, which
26 THE DIFFERENT APPROACHES OF WEB PROGRAMMING
will make our job so much easier. My "second best" option for databases
would be PostgreSQL, similar to MySQL with even some extra features, but
again, we shall follow the path of simplicity for this book.
Finally, and pretty much most importantly, these are the languages that I
have been using for years, and I never had any problems with them. Knowing
how to properly mix these three programming languages should allow you to
create any professional database-driven Website you would like to. Also,
although you might use different technologies in the future, mastering these
three will give you the mindset needed for Web development. It is like learn-
ing how to play soccer; you must learn how to kick the ball, regardless of the
shoes you will wear or the team you will support. Web programming is much
the same; if you know how to properly design a Website, the language choice
will be only secondary.
3
Introduction to HTML
Before we start discussing HTML, let me give you a checklist of things you
should have with you when programming. First, you need a basic text editor
like Notepad or emacs. You can also use more advanced tools, like the ones
mentioned in Chapter 1, but if you really wish to learn the ins and outs of
HTML, you are better off with a basic editor. The next needed thing is a
browser, which will be used to test the pages and make sure that they look
the way you want. Third, you need, obviously, some basic HTML knowledge.
Last but not least, you need good music. People usually think I'm kidding
when I mention music as a necessity, but from my experience, the right music
can activate the brain to work more efficiently. The right music will depend
on your own personal taste, but I would recommend either classical if you
work better in a calm environment or hard rock, punk, and other fast-paced
music if, like me, you prefer the music tempo to drive your fingers into a typing
frenzy. This chapter will try to make sure you have element number three:
basic HTML knowledge.
Web Application Design and Implementation: Apache 2, PHP5, MySQL, JavaScript, and
Linux/UNIX, by Steven A. Gabarr6
Copyright © 2007 by John Wiley & Sons, Inc.
27
28 INTRODUCTION TO HTML.
Syntax Basics
HTML is a markup language and, as such, works entirely through the use of
tags. Each tag is used to define different parts of the file, different styles, links,
images, embedded elements, forms, and so on. Each tag starts with the char-
acter "<" and finishes with ">". Keep this in mind because those characters
are restricted for tags, meaning that your page might behave in a strange way
if you attempt to use it in a normal string. If you wish to use that character,
refer to the special characters table shown in Appendix A. Now, some tags
require an opening and a closing tag in order to show the area of effect of the
tag. In those cases the closing tag will always start with "«I", followed by the
name of the tag it is closing (without the attributes list) and ">".
For example, to have some text appearing in white, you could use the
FONT tag, with the attribute color set to "white." To do so, your opening tag
would be <FONT color = "white"> and your closing tag would be </FONT>.
Your final portion of code would look like this:
Note that HTML is not case-sensitive, so you can mix uppercase and lower-
case letters. Nevertheless, I strongly advise everyone to capitalize all tags
since it makes code reading much easier.
Finally, remember to name your files with either .html or .htm as their
extension.
File Structure
It is very important to understand the basic structure of an HTML file,
knowing exactly where each part of your code must be written in. It is some-
thing fairly easy to remember, but unfortunately there are still people who
claim to be Web programmers but who misuse the file's main areas. Good
Web design and programming demands efficient and effective use of the
available tools. This book is designed to avoid these pitfalls.
The first thing is the full file, which must always start with the tag <HTML>
and finish with </HTMI~>. You should never have HTML tags before the
opening tag, nor after the closing one. One of the reasons for this occasional
error is the fact that most browsers can now ignore major errors like this one
and still manage to create a proper-looking output, but please always start
your files by setting up these two tags.
The next section to know is the header, limited by the tags <HEAD> and
</HEAD>. This section holds all information related to the file, including its
author, its keywords, its title, and sometimes even some JavaScript functions
that will be used in the page. Most basic pages use the header only to specify
HOW DOES HTML WORK? 29
the title that will appear on the browser window.To do so, use the <TITLE> ...
</TITLE> tags. Any text written between the opening and closing tags will
appear in the title bar of the browser.
The final area is the body, starting with <BODY> and finishing with
</BODY>. The body of a page is the actual content of the page, meaning that
the data that will appear inside the browser window. The body tag can accept
a set of properties that allow you to set up a background image (background)
or color (bgcolor); specify font colors for text (color), links (link), visited links
(vlink), active links (alink), and even action scripts to run on load or unload
of the page. There should always be a body section in a Webpage, unless you
are using the page as a frameset definition page (see discussion later).
Here is an example of what a "Hello world" HTML page should look
like:
<HTML>
<HEAD>
<TITLE>Hello World Page</TITLE>
</HEAD>
<BODY>
HELLO WORLD!!! <BR>
And have a nice day!
</BODY>
</HTML>
Note the indentation I have used. This is not required, but will improve the
readability of your code. You will also note the use of the tag <BR>, which
forces a break of line. It is important to realize that any group of white spaces
(whether it is a tab, a new line, or basic spaces) is always translated on the
screen as a single white space. This is important to know since the appearance
your code has will not necessarily be the same as in the output. Check the
following example:
<HTML>
<HEAD>
<TITLE>Hello World Page</TITLE>
</HEAD>
<BODY>
HELLO WORLD!!!
And have a nice day!
</BODY>
</HTML>
You probably noticed that this code is almost exactly the same as the previous
one except that there is no <BR> tag after "Hello World!! L" In this example,
the text "And have a nice day!" would show on the same line as "HELLO
30 INTRODUCTION TO HTML
WORLD!!!," even though it is written a line below it, because the "new line"
will be translated into a single white space.
As a teacher I enforce the use of the basic six tags needed for an HTML
proper structure, so I would recommend everyone to make it a habit to write
them all as soon as a page is created, and then fill in the blanks.
Tag Parameters
As we saw previously with the FONT and BODY tags, it is possible to add
attributes to an opening HTML tag to make it more effective. Each attribute
will affect the area after the opening tag and will finish with the closing tag.
Remember that there is no need to write the attributes in the closing tag.
Checking the W3C website (www.w3c.orG) can get you an exhaustive list of
all the attributes that tags can use, but I will give you the ones I consider most
important for the tags that I will teach you at the end of this chapter.
There are many ways to format text in HTML, but we will discuss only the
real basics right now. There will be more details on styles in Chapter 10. The
tags I am about to show you are considered to be deprecated and should be
replaced with the use of style sheets, but as much as this is true, you probably
want to get started without having to learn advanced formatting features. In
that case, the following tags are ideal.
The first basic tool commonly used for formatting text is the <P> ... </P>
tag, which stands for "paragraph." As the name indicates, it defines an area
that works as a single block, and most browsers will automatically break a new
line at the end of a paragraph. I try not to use this tag when writing normal text
since the output on the screen might be different depending on the browser, so
I prefer to handle my paragraphs manually. On the other hand, paragraphs are
really useful when using style sheets, as we will see in Chapter 10.
A very useful tool in HTML is the different heading styles that can be
used. There are six basic: levels of headings that can be used to easily write
titles, chapters, or sections. Each heading is treated as a paragraph, so a new
line is added automatically when the tag is closed. To use a heading, simply
wrap your title with «Hn» ... <IHn>, where "n" is the level of title you wish
to use from 1 to 6 (with HI the biggest heading and H6 the smallest). If you
wish to add extra linebreaks you can use, as seen earlier, the <BR> tag.
To change the appearance of text, you can use <I» ... <II> to italicize a
text, <B> . . . </B> to make it bold, or <V> . . . <IV> to underline it. As
always, these tags affect the text only between opening and closing tags. It is
also possible to use the <FONT> tag to specify colors, fonts, sizes, and back-
ground colors, for example, but it is considered poor programming practice
to use these in your HTML code since it makes it much more difficult to read.
Instead, you should use styles, which, again, we will see in Chapter 10.
BASIC TEXT FORMATTING 31
Most tags, including <P>, accept an attribute called ALIGN that allows
setting of the horizontal alignment of a block by setting it to "left," "center,"
"right," or "justify." It is also possible to center an area of the page by using
the <CENTER> . . . </CENTER> tag. The advantage of the <CENTER> tag
is that it will act on anything between opening and closing tags, regardless of
the type of element (form input, image, paragraph, button, etc.).
To do a basic enhancement on your page's look, you can use horizontal
rules. These are horizontal lines used mostly to separate sections and para-
graphs. To use it, just write <HR> with any of the following attributes:
ALIGN (left, center, or right), NOSHADE to remove the shade under the
line, SIZE (in pixels) to specify the height of the line, and WIDTH (length
in either pixels or percentage of the page) to specify the linewidth. An example
ofa nice-looking rule could be <HRALIGN=centerSIZE=l WIDTH=75%>,
which would create a line of 750/0 of the page's width, centered in the page,
and with 1 pixel height. Note that this tag does not need to be closed.
Finally, to conclude this set of basic formatting tools, I would have to add
the <BLOCKQUOTE> . . . </BLOCKQUOTE> tag. This tag was created
to be used to quote other people in a text, but it has a nice property. Any
text inside a <BLOCKQUOTE> tag is automatically indented, which is great
for a really fast indentation solution. I personally have used it in the past to
force a blank margin at the beginning of my pages, making the output
cleaner.
Here is an example using all these tags:
<HTML>
<HEAD>
<TITLE>Formatting example</TITLE>
</HEAD>
<BODY>
<BLOCKQUOTE>
All my text will show up with an indentation!
<P ALIGN=right>This is a first paragraph with right
alignment</P>
<P ALIGN=left>And this is a separate left-aligned
paragraph with things written in <I>italic</I>, <B>bold</B>,
<U>underlined</U> and even <U><B><I>all mixed up</I></B></U></P>
<CENTER>
<HR size=l width=75%>
<Hl>Headingl</Hl>
<H2>Heading2</H2>
<H6>Heading6, and like the others I'm centered!</H6>
</CENTER>
</BLOCKQUOTE>
</BODY>
</HTML>
Other documents randomly have
different content
not completed within the 10-day time limit. Mr. Baker said he would take
my 3,000 bushels at the morning bid, and Mr. Lynn’s 10,000 bushels at the
present market (one-half cent less) if he would let it go at that. And in that
case he would give me credit for the half cent, amounting to $50. He said,
rather gruffly, “We don’t owe the farmer anything. There’s the phone. See
what you can do with him.” Mr. Lynn accepted the new offer. And he was
mighty glad that he did. By the time I got around to telling him all about the
deal, corn had dropped several cents. If it had gone up, I don’t believe I
would have ever told him. The Lynn shipment totaled 13,000 bushels, with
only one car off grade.
I used to take an occasional flyer on the Board of Trade—mostly, I believe,
before my good Christian friend, Albert Zabel, told me that it was
gambling. I had 7,000 bushels of corn cribbed, and Albert had 3,000
bushels cribbed on the same lots, which he wanted me to sell. Corn was
cheap then, and getting lower as the new crop promised a good yield. A
good general rain the night before had spurred our desire to sell at once. My
top bid that morning was 17 cents.
Ed Murray, agent at the depot, showed me a wire from the Orthwine people
in East St. Louis, bidding Mike Worthy 18% cents. I had shipped some corn
to the Orthwines. I wired them, offering 10,000 bushels at 18 3/4 cents,
same as their bid to Mr. Worthy. Their reply was slow in coming, and I may
say that when it did come, the market was off nearly five cents.
I had told Albert that evidently the Orthwine people were waiting for the
market to open—and that I was going to sell mine on the Board, and asked
him if I should include his in my sale? He studied a moment, then said,
“That would be gambling, wouldn’t it?”
I said, “No—not when we have the corn to fill the contract. This will be
protection against further loss. We gambled, Albert, when we bought the
corn at the ridiculously low price of eleven to sixteen cents a bushel.”
Albert said, “I don’t know about that. If it wasn’t for them weevil in the
corn, I would hold it over until next year.” We had previously discussed
this, and decided that it would not be advisable to hold it over. He finally
said, “No, I’ll not go in with you. I never gamble.” And just think of it, the
fellow was buying and shipping hogs—continuing in the business until his
finances were “not what they used to be.”
I sold 10,000 bushels anyway, on the Chicago Board — and cleaned up
three cents a bushel by the time we sold our cribbed corn at 14 cents a
bushel. “Them” weevil had us scared. But the damage was not enough to
lower the grade beyond the number three contracted.
In the old days, many of the farmers would shuck their corn early, pile it out
in the open on a grass patch or rocky knoll, and then haul it to market after
it had taken rains and snows—the more, seemingly, the better. More than
once have I gone out to the country, and shoveled drifted snow away for
lots bought on contract. It was such corn as this that brought the weevil,
which worked mostly in the damp spots. Another trick of the old farmer
was to wait for a freeze before shelling and marketing his ground “cribbed”
corn. One such car of mine, billed for “export,” and passed by the
Greenleaf-Baker firm—that is, not unloaded in Atchison, was reported
steaming when it arrived in Galveston. It had passed inspection in Atchison.
Think I should say here—well, really it should be apparent without saying
—that our reputable farmers were not guilty of this practice. It was usually
floater-tenants, irresponsible farmers making a short stay in the community,
who devoted much time to figuring out a way to skin someone. A fellow by
the name of Groves, farming the old Adam Swerdfeger place eight miles
northwest of Wetmore, contracted to deliver to me 800 bushels of “Number
Three, or better” corn at 32 cents a bushel. When the wagons began coming,
in the afternoon, I saw the corn was not up to grade, and I held up the
haulers waiting for the arrival of the seller. In the meantime I learned from
the haulers that it was corn that had been frosted, gathered while immature,
shelled while frozen, and stored in a bin on the farm. The fellow had sent
word by the last hauler in, that there would be two more loads to follow.
When they did not show up at the proper interval, I dumped the loads (in
waiting) and let the impatient farmers go home. I knew now from the way
the fellow was holding back that I would have a tough customer to deal
with—but I would take a chance on him. I felt that I couldn’t afford to keep
the haulers, who were my friends, waiting longer. The seller came in with
the two loads between sundown and dark. I told him the corn was not up to
grade. He said,”Well, you’ve dumped it, haven’t you?” I said, “Yes, for a
fact, I have dumped thirteen loads of it—but here’s two loads I’m not going
to dump.” But I did finally dump them, on agreement with the fellow to
ship the lot separately and give him full returns. The shipment was reported
“no grade” and the price was cut six cents a bushel. I paid the man 26 cents
a bushel, on the basis of our weight—and was glad to be rid of him. Then,
the next day I received an amended report on the car. It was found to be in
such bad condition that the receiving house had called for a re-inspection—
and the price was cut another eight cents a bushel. And this was mine—all
mine.
It seemed to me that nearly everything, in the old days was, in a sense,
touched with that horrible word—gamble. And I know that I really did
gamble in an attempt to grow a crop of corn on my expensively tiled bottom
seed-corn farm down the creek a mile from town, one very dry year.
I hired all the work done, paid out $500 in good money—and got nothing
but fodder.
Another time I filled my cribs with 25 cent corn and held it for the summer
market. When I was bid 49% cents a bushel, I jokingly told Mr. Worthy that
I couldn’t figure fractions very well, and that I would wait for even money.
Fifty cents was considered a high price for corn then—but usually when it
would reach near that figure, the holders would begin to talk one dollar
corn. It was a year when the corn speculators just didn’t know what to do,
after the price began to slip.
Alpheus Kempton, over north of Netawaka near the Indian reservation, had
5,000 bushels stored on the farm. He told me he had been watching my
cribs, and thought that maybe I had inside information of a come-back in
prospect. I too had been watching some cribs, with similar thoughts. The
Greenleaf-Baker firm had 20,000 bushels stored in two long cribs at
Farmington. As I frequently traveled the railroad—on a pass—and noticed
the corn had not been moved out, I thought that maybe, after all, I had not
erred in letting the high bids get away from me. I told Mr. Baker that I had
been watching his Farmington cribs for a reminder as to when it would be
time for me to sell mine. He laughed, saying, “I’ve sold it (on the Board)
and bought it back probably twenty times.”
Well, Alpheus and I—we held our corn over another year—and then sold it
for 301/2 cents a bushel. May I say that by this time I had brushed up on my
arithmetic. And Christian or no, who is there to say I did not gamble that
time? I still maintain that I gambled when I bought the corn. However, there
were times when I sold 25-cent corn for 70 cents—and most of it went back
to the country here. The only advantage that I could see in storing corn
instead of buying it on the Board, was the possibility of striking a local
market.
And again, I bought 5,000 bushels of wheat on the Chicago Board, at 61
cents a bushel, and margined it with $100. As the market advanced, I
bought seven more five thousand bushel lots with the profits, making
40,000 bushels in all. It was a very dry time in Kansas, and wheat was
jumping three to five cents a day—and had reached a fraction under $1.00
on the Thursday before Memorial Day, which of course would be a holiday,
with no market.
My profit on the single $100 investment was now nearly $4,000.00. I had
planned to get out before the close of the market on Thursday, because I did
not want to run the risk of carrying the deal over the holiday. But the
weather map, just in from Kansas City, indicated clear skies for Kansas
over the week-end. This, coupled with the exuberant spirits of the excited
dealers on the Atchison Board, caused me to change my mind. One more
day of dry weather would likely double my earnings.
The weather man was wrong; horribly wrong.
It began raining in Wetmore about 10 o’clock that night. You’ve probably
been lulled to sleep by rain patter on the roof. Believe me, there was no
lullaby sleep in the constant rain patter on the roof over me that night. It
rained off and on here all day Friday. Everyone I met on the street here
exclaimed, “Fine rain, John!” I would say, “Yep”—and think something
else. It was truly a $4,000.00 rain, in reverse—so far as I was concerned.
On Saturday morning, the speculators were back on the Atchison Board of
Trade floor—to a man. The rain had washed their faces clean of all
animation. Mr. Roper, working with telegraph instrument, rose and faced
the weary-laden boys. “Gentlemen,” he said, “I’ve got good news — for
nobody.” The death-like quiet for a fraction of a moment, as if we were
standing in the Salt Lake Mormon tabernacle waiting for the usual pin-
dropping demonstration, gave way to a concerted sigh. It had rained
everywhere.
I sold 50,000 bushels at the opening. My profits were wiped out clean. The
extra 10,000 bushels short sale made me $63.75 in about three minutes. And
this, added to the return of my $100—and relief from liability—made me
feel rich.
Though little or no wheat was grown here at that time, the Kansas wheat
farmer was considered the biggest gambler of them all. Even so, having just
got out of a big wheat deal, by “the skin of my teeth,” would it not be good
business for me to take a “flyer” in some wheat land, and try growing the
stuff?
Land in the wheat country was going begging at $300 a quarter—the same
land that is now selling up to $200 an acre. Land agents were actually
fighting over prospective buyers. Bill Talley, born in Indiana and reared
here, was at this time operating a drink emporium in Wetmore, but had
lived, and dealt in land, at Cimarron, in Gray County. At the depot, the day I
started for the west, Bill told me to go to his friend, Johnny Harper. When I
got off the train at Cimarron at 2 o’clock at night, Johnny was there to meet
me. We by-passed the leading hotel—a rival agent, F. M. Luther, lived at
the hotel—and Johnny took me to a restaurant three blocks away. The next
morning Johnny and his partner, Mr. Emery, ate breakfast with me at the
restaurant. Mr. Emery was to drive me across the river to look at land.
Every parcel of land shown was priced at $300 a quarter. And at every
booster stop we visited, the farmer would reply to Mr. Emery’s inquiry: “I
would not take $25 an acre for mine.” A few sandhill plums, a dilapidated
barn, and weather-beaten three-room house—made the difference. We got
back to Cimarron about four o’clock in the afternoon.
As if he were sure I had seen a plenty to interest me on the side of a quick
purchase, Johnny produced a map, saying, “Now, which piece have you
decided on?” I had made no decision. Mr. Emery then thought I might like
to see a big alfalfa field four miles up the river—not that it was for sale, but
just to show me how good it was. In truth, it was just to get me out of town.
The alfalfa looked good, but you know my mind was fixed on wheat, and
this big field did not interest me.
I had company again for supper, and either Mr. Emery or Mr. Harper stayed
by me until bedtime. It was Saturday. I needed a shave. Mr. Emery took me
through the main business part of the town to a barbershop on the south side
of the tracks. And here I came as near getting a skinning as I ever did in a
business deal. There were, of course, better shops in town—but competitive
real estate agents didn’t go across the tracks for their shaves. In the
meantime Mr. Luther had dropped in at the restaurant. He was introduced
by Mr. Harper. I asked Mr. Luther if he were engaged in business in
Cimarron? He replied, “Yes, the real estate business.” Right away I had a
notion that I should like to have a private talk with Mr. Luther. Likewise,
Mr. Luther. And don’t think that Johnny didn’t catch on, too.
Mr. Luther bid us “good night,” and stepped outside. Mr. Harper bid me
“good night,” and started on his way out—and I went up to my room. We
were to start right after breakfast on a drive to Dodge City, thirty miles
down the river, where I would get a train for home. I did not go to bed
immediately. I went back downstairs for something, I don’t remember what
now. Maybe to pick up a little disinterested information from the restaurant
man. Mr. Luther came back in at the front door. Mr. Harper followed
immediately. I went back up to my room.
The following morning three real estate men ate breakfast with me. Mr.
Harper, Mr. Emery, and I started for the livery stable a block away, while
Mr. Luther lingered awhile over his coffee. Bill Talley’s friends owned their
driving team, and did their own stable work. When they got their fractious
horses partly hitched, I made an excuse to run back to the restaurant. Mr.
Luther said, “You were over in the neighborhood of the Kelly school house
yesterday, I believe. I can sell you three quarters in the same section as the
Kelly school house for $200 a quarter, or $600 for the three quarters.” I
promised to write him—or see him later.
Mr. Emery drove me to Dodge City, showing me a big 30-acre cottonwood
planting on the way, which purportedly was the reason for the drive. It did
not interest me. We had cottonwoods at home. Mr. Emery stabled his
foaming horses at a livery barn on the south side of the tracks, near the
river, a good quarter of a mile from the Santa Fe depot. We ate our dinner at
a restaurant close by the depot. It was Sunday. Mr. Emery showed me the
town. We visited “Boot Hill” Cemetery, the only visible reminder now that
Dodge City was once the wildest and toughest spot in the Old West, and
other semi-interesting and some non-interesting places. After walking our
legs off, we were now near the depot again.
Mr. Emery wished to look in on his erstwhile steaming horses. Yes, I would
go along with him. On passing the depot I dropped out of the line of march
on the pretense of wanting to get a line on the through train I was to take
that evening. This done, I hiked back to the restaurant, inquired for a real
estate office, and was told the Painter Brothers in office above the
restaurant were the men I should see. A poker game was in full swing, but
one of the brothers—I couldn’t for the life of me remember which one now
—took time out to tell me that he could sell me land as good as the best for
$200 a quarter. He gave me some literature. We planned to meet again.
I rushed back to the depot in time to meet Mr. Emery on his return from the
stable. We walked some more. A local train from the west was due at 3
o’clock. Johnny Harper got off this train—and took over. Mr. Emery bid me
“good-by” saying he would now drive his team back to Cimarron. Johnny
proposed a walk. We took in the town again—always by our lonesome. He
saw me off on the train. I did not learn how Johnny planned to get back to
Cimarron. And I didn’t care.
Bill Talley was at the depot when I got back home. He said, “Well, did you
see Johnny Harper? Fine fellow, isn’t he?” And, “Did you find anything to
suit you?” Yes, I had seen Johnny; fine fellow, too. No, I had not bought
anything—yet. But I planned to buy three quarters in the same section as
the Kelly school house, from F. M. Luther, for $600. Bill popped his fist in
the palm of his left hand, and bellowed, “Damn Luther!”—with shocking
prefix.
It is only fair for me to say that ordinarily Bill was not given to the use of
such language. But the exigencies of the situation were very much out of
the ordinary. With prospect of a cut in commission—and his fear that I
might run afoul of Mr. Luther—Bill had gambled the price of a telegram to
Johnny Harper. I did not learn the why of this explosion for a little over one
year. My brother Frank was considering a trade for a quarter of irrigated
land south of the river, two miles from Lakin, and had written from Fresno,
California, asking me to look it over, and report to him. On going through
on the train, I stepped off at Cimarron, and inquired for Johnny Harper. A
by-stander said Johnny was not among the people on the station platform—
but, he said, “Here’s his brother.” Johnny’s brother stepped forward, saying
he was going west on the train. On the train, he said, “You were out here
last year driving with Johnny. Why didn’t you buy, then?”
I told Johnny’s brother that they had “herded” me so closely as to make me
suspicious. He said they had to do that to keep their competitors from
blocking their sales. He said the competitors would quote a low price on
tracts in the neighborhood of the places visited by Johnny’s prospects—and
then, if the prospect decided to buy, the competitor would discover that his
partner had just sold it to another—but he always had other bargains to
show him.
Johnny’s brother also told me that our friend Talley had gotten into an
altercation with Mr. Luther, and that the Cimarron man had knocked the
whey out of our Wetmore boy—all while the latter was connected in the
realty business with brother Johnny.
If I could have gone out there wholly on my own—that is, without any
helpful interference from Mr. Talley, and maybe got lost on the big flat
beyond the sandhills just south of the river for a week, I could have made a
potful of money. I had planned to buy two sections. But, instead, I bought
80 acres of rather swampy bottom land here for the same money, $2400 —
and then spent $1800 more to install five miles of drain tile.
This tiling was a gamble that paid big dividends.
Michael Worthy, my late semi-partner in the grain business, had better luck
than I. He bought Gray County wheat land in the neighborhood of the Kelly
school house — which was to be passed down as a huge profit-making
legacy—even to the third generation.
Oscar Porter was a track buyer at Bancroft until Jim Wilcox, elevator
owner, crowded him out. Being a track shipper, Oscar was not eligible to
come into the Association — nor was I, but somehow I had been roped in.
Porter wanted to know how I did it, that he might do likewise. I could give
him no helpful information. His next step was to start legal action to compel
me to divulge the secret. I was subpoenaed to appear in court—supposed to
be the star witness—in a complaint lodged by Mr. Porter against the
Association.
County Attorney S. K. Woodworth called me aside, said he knew I had the
information to smash the Association, if I would just give. He said I could
tell the truth—he added, “and I know you will,” without fear of having it
used against me. I asked him if he were thinking of the time when I had
slightly stretched the truth—but I really had not done this — in behalf of his
candidacy, in my newspaper? He laughed at that.
I told Sam that he could depend on me to answer his questions truthfully, as
always—he laughed again—but that I would not make a statement. He said
he would not ask me to do that. I was not particularly in sympathy with the
Association, but I did not want to volunteer information against it—and
then, too, my Atchison friends and my partner Michael were entitled to
some consideration.
I answered the County Attorney’s questions truthfully, and I believe
satisfactorily—but still they did not get what they wanted. I had the
information, of course, but Sam and Oscar knew too little about the
business in hand to formulate the right questions. I believe they did not
know about that illegal contract.
If they could have had Michael and our illegal contract, written in violation
of the Sherman Act, brought into court, they would have had a case. But
then it was I, a lowly track buyer comparable to the complainant, who had
by some hook or crook, aided by a swift kick in the pants, bolted through
the barrier that was keeping Oscar out of the Association.
FAMILY AFFAIR
Not Hitherto Published—1947.
By John T. Bristow
In the foregoing article I made reference to Theodore Wolfley’s poor
marksmanship, with a revolver. When possible, I like to back up my
assertions with proof. I now quote from a letter dated at St. Louis, April 5,
1941, written by T. J. Wolfley to his sister May Purcell, commenting on my
writings in The Spectator, in which I likened a Belgrade story to a hot
Wolfley editorial. It was at a time when a Hitler delegation was in Belgrade
endeavoring to put pressure on the Yugoslavs to force them into the war on
the Hitler side. The quote:
“I received the copy of the Wetmore Spectator, which you so kindly sent
me. Thank you for it. I was interested in the story from Yugoslavia; and
flattered to be even remotely connected with the incident by my friend John
Bristow, who professes to think that if I wasn’t in St. Louis, I might be
running a newspaper in Yugoslavia. . . . Just as in the political wars he
mentioned, I was sometimes more friendly with the men I opposed than
with the ones I favored. But the people liked it and it was then the accepted
slogan to give the people the kind of news they wanted. . . . John was a
good newspaper man and a good squirrel hunter, so we thought a little
expert shooting might lend realism to the picture. But I wasn’t a good shot.
I couldn’t even hit the imposing stone when it stood on the side against the
wall. But I remember John could hit a penny when it laid on the floor at the
leg of the imposing stone. So we depended upon John’s ability as a shooter
to keep the enemy away. . . . Show this to John. A good many things
happened in the Spectator office even after I quit, similar to the way they
happen in Yugoslavia. He may remember some more.”
Well, yes—I do remember one more. Always one more. But first I want to
say that Theodore verifies the point I made in the preceding article—that he
could not even hit the leg of the imposing stone, in his gun-practice. To
those who are not familiar with the mechanics of the print-shop, the
imposing stone is a heavy slab of marble mounted on a stand about waist-
high, on which the forms of the newspaper are made up.
When the Spectator was in its first year, I helped Theodore Wolfley carry
out one of his “bright” ideas which gave him some sleepless nights. His
sister Mary, still too young to carry on a flirtation with a grown man, had
embarked on a whirlwind romance with a Central Branch railroad engineer.
The heavy grade at the John Wolfley farmstead five miles west of Wetmore,
made it possible for the engineer and the girl to exchange notes. And when
they might desire a few moments time together, it was said, he would drop
off at the crossing near her home, and then grab onto the caboose—and the
fireman would take the long freight train into Goff.
Theodore told me that, as her older and wiser brother, he intended to break
it up. He said it had got to a point when a talking to would do no good—and
the girl was too big to spank. We printed a ten-line item in the Spectator,
branding Mary’s Romeo as an all round bad character, even had him
arrested and jailed for drunkenness—and credited the item to one of
Atchison’s daily newspapers. After printing one copy for the Wolfley family
perusal, I lifted the spurious item before running the regular edition.
Theodore commuted on horseback between farm and town at that time. He
took the “doctored” paper home with him. He watched Mary read the item.
He said she wrinkled up her nose, shook her head as if she meant to get
even with someone. When he came back to the office the next day, he said,
“I guess that will hold her.” But it didn’t.
On the following day Theodore discovered the item had been cut out of the
Spectator—and he rightly suspicioned it had been turned over to Mr.
Romeo. He came to the office in agitated confusion. He asked me, “What
paper did we credit that darned item to?” He had maligned an Atchison man
and credited the item to one of the three Atchison daily papers—the
Champion, the Patriot, or the Globe—which made him liable to attack from
two angles. But luck was with Wolfley. John Reynolds, the engineer, came
back promptly with his daily exchange saying the item referred to another
John Reynolds living in Atchison—and the romance went merrily on.
Theodore would have felt a lot easier had he known there actually was
another John Reynolds living in Atchison. And though the second Mr.
Reynolds had a shady record, he was never guilty of the things the item
charged the engineer with. I have penned a line on this John N. Reynolds in
another article. John A. Reynolds, the engineer, was really an honorable
man, with high standing in Atchison. I came to know him well in later
years.
I shall carry on from here — after this paragraph — without Mr. Wolfley.
But I’m not forgetting the Romeo engineer. And I should say here that
Mary’s romance terminated without hitting the rocks, and that Theodore
never had any complaints from Atchison. And I might say further, as a last
tribute to my old friend, that Theodore Wolfley went from here to Phoenix,
Arizona, and became editor of the Daily Republican, owned by ex-
Governor Wolfley, of Arizona, (no relation), where he played up Republican
politics to his heart’s content. From there he went to the St. Joseph (Mo.)
Daily Gazette, where I imagine he would have been a loyal Democrat. And
from St. Joe he went to the St. Louis Globe-Democrat as Financial editor.
While in St. Joe Theodore wrote me that he was holding open for me a
place on the Gazette paying four and one-half times the ten dollar weekly
salary I was getting here. That was considered “big money” then. But I had
promised Curt and Polly Shuemaker that I would remain on the job here
when they bought the Spectator from John Stowell. Curt Shuemaker was
blind—lost his eyesight from close bookwork in the Morris store and as the
first cashier of the Wetmore State Bank. I could not quit them cold—but I
was trying to find them a reliable printer when Curt sickened and died
suddenly, leaving The Spectator in need of an editor as well. The quickest
way to help out Polly was for me to buy The Spectator—at my own price.
Not an unfair price, however. When Theodore was back home a short time
before he died, having just read my manuscript of the Green Campbell
story, he proposed that we buy The Spectator from the Turrentines—just to
show the people what we could do. From past experience, I knew he could
have shown them plenty—and I was afraid he might insist on doing it.
Some years after Mary’s romance, I was walking past the depot in Wetmore
with the girl who afterwards became my wife. Her home was on the south
side of the tracks, near the watertank. The noon passenger train was at the
tank. As we came abreast the engine the engineer hopped down from the
cab, pulled off a leather gauntlet glove, and met the girl with a hearty
handshake—and some hurried palaver. She introduced him as Mr.
Reynolds.
But you know, passenger trains must move on time — and when alone with
the girl, I said, “Let me see your hand.” She said, “Oh, you’d never get a
speck of dirt from shaking hands with Johnny Reynolds; he’s really quite
particular about keeping himself clean of engine grime.” I learned later that
she had told the truth in this particular—but how the devil did it come she
knew so much about him? I said, “I think I know something about him that
you do not know.” Then I told her about his exchange of notes with the
Wolfley girl.
She laughed and said, “Were you expecting to see a note in my hand? You
don’t need to be afraid of Johnny Reynolds. He is engaged to a Miss Spelty,
in Atchison.”
“Johnny” Reynolds had roomed at their home in Effingham before the
family came to Wetmore, when Myrtle Mercer was eight years old. Being a
very courteous man, he “made over” all members of the Mercer family
whenever and wherever he might chance to meet them. And he had gotten
lunches from their home in Wetmore.
After her husband’s death in 1888, Myrtle’s mother had rather a hard time
providing for her family of five girls, ranging in age from two to sixteen
years. She was advised to open a boarding house for trainmen — and others
—but it settled down mostly to providing lunches for the two local freight
train crews which passed through here about the noon hour. I think it was
not very helpful. She was an excellent cook, and her twenty-five cent
lunches were too elaborate to make money, even in those days. The
passenger trains had stopped here for dinner before this. The hotel charged
trainmen 25 cents—as was customary at all stops—while passengers paid
35 or 50 cents. Hence a 25 cent precedent for trainmen.
The pinch was lifted, however, some years later, when Mrs. Mercer was
granted a Government pension—for herself and the two younger children—
with several years back pay. Though only 39 years old when he died, John
Mercer was an “honorably” discharged soldier. He had enlisted in 1864,
when only 15 years old. How he managed to get in at that age, is presumed
to be the same as other under-age boys got in.
One time when I was riding the local freight to Atchison, I saw Tom
Haverty, the conductor, an Irish Catholic, open his lunch basket. It
contained a big porterhouse steak cooked just right—it was a steak that
would cost at least $2.50 now, with very few trimmings. I know that steak
was cooked just right, for my wife had learned the art from her mother, and
she had cooked many a one to the same turn for me. Well, Tom Haverty
picked up that steak, held it as though he thought it might bite, walked to
the opposite side of the caboose and chucked it out an open window.
It was Friday.
After selling my newspaper, I found time to “putter about” on my farm one
mile down the creek from town. I actually did a lot of worthwhile work,
cleaning up the bottom land of brush, trimming hedge, and cutting cockle
burrs with a “Nigger” hoe. I usually stuck a sandwich in my pocket for
lunch—but sometimes Myrtle would prepare a real dinner, even steaks like
I’ve been describing, carry it in a basket, sit down on the ground with me in
the shade of hedge or tree, fight flies and gnats while eating, and pretend to
enjoy it.
One morning she said I need not take a lunch—that she was going to cook a
real dinner, bring it down to the farm, and eat it with me. I told her I would
come for dinner, and save her that long walk. She insisted that she “loved
the walk, loved to get out in the open,” and I told her where to meet me.
But she caught a ride most of the way. Green Goodwin, conductor of the
local freight, told her to come aboard the caboose, that he would stop the
train out near the farm and let her off. He had gotten lunches from her
mother’s home. She said, “Mr. Goodwin said my lunch basket smelled good
— like old times. He told a passenger in the caboose that he could always
be sure of getting a good lunch at our home. I sure appreciated the ride, and
I offered to give him my part of the lunch, but he wouldn’t take it. I’ll bet
that traveling man who peeped in the basket wouldn’t have turned it down.
But Mr. Goodwin did eat two of the cream-puffs: he said they were as good
as the ones mamma used to put in his lunches. That leaves four cream-puffs
for you—if I don’t eat any myself.” What manner of man would have eaten
four cream-puffs—just then?
Myrtle felt pretty chesty about getting this ride—to think Green would stop
his train on a steep grade, to save her the walk. Well, it was a pretty steep
grade—and it was kind of Green to give her this lift. It recalled the time
when, on several occasions, freight trains had stopped at that same place to
let me off. And when the train had started to move again I could easily have
beaten the engine to the top of the grade, in a running walk. But that would
not Tiave been what I had been taken on the engine for, in town. I walked,
or trotted slowly, ahead of the train pretty close to the creeping engine,
shooing grasshoppers off the rails. After the 1874 invasion of grasshoppers
freight trains could not make that grade until the rails were cleared of
hoppers—and I had to stay close to the engine so that the hoppers would
not fly around me and settle on the rails again. I was always “Johnny on the
spot” to catch those rides. To ride the engine was a thrilling experience for a
twelve-year-old boy.
While eating our lunch that day, a covey of half-grown quail came out from
between the rows at the end of a cornfield. Myrtle said they were so cute
that it was a shame to kill them. “And if you shoot any more of them,” she
declared, “I will not cook them for you.” I said that I guessed I could cook
them myself—that I had roasted them suspended on a stick over a fire in the
woods.
“Well,” she said, “I’ll cook them, of course—but I promise you that I will
never eat any more of them.” I tried her out on six birds. She cooked them,
of course—and kept her promise. And then, in due time, I also thought they
were too cute to be killed. But I continued carrying feed to the quail, in
snowy times.
While Wolfley said I was a good squirrel hunter, quail was really my game.
I trapped them in my younger days, and shot them when old enough to be
trusted with a gun. I “potted” them. In the old days quail sold for 5-cents
each and no one would think of wasting a charge of ammunition on a single
bird, especially while on the wing; though I did once shoot a lone quail
sitting on top my figure-four cornstalk trap, under which were twenty live
birds. We made our traps then with any old thing we could pick up and bind
together. The twenty trapped quail had followed a tramped out path in deep
snow, baited with a thin scattering of shelled corn, with a more generous
supply of kernels under the trap—thus to engage the lead birds while the
others were coming up, lest an impatient bird might go after the nubbin on
the treadle and spring the trap too soon. I think trapping and “potting” were
legal then. I winged them in later years, same as other sportsmen were wont
to do.
One time while coming home from the farm on a Sunday morning about
eleven o’clock, three teen-age boys caught up with me. They said they were
from Fresno, California. I questioned them a little about Fresno, and
decided they were telling me the truth. Also, I knew they were not
professional tramps—and that they were hungry. I took them to the
Wetmore hotel, and told Bill Cordon to give them their dinners, fill them up
with double orders. One of the boys had about worn out his shoes—the sole
of the left shoe was dragging, making it hard for the boy to keep up with his
pals. While they were waiting in the hotel for the dinner call, I went to my
home and hunted up a pair of shoes—almost new shoes, which pinched my
feet—and took them, with a pair of clean socks, to the little fellow, and
started them on their way back to Fresno, walking of course. On parting, the
boy wearing my shoes, asked me why had I taken so much interest in them?
I told them that I might be tramping myself someday, maybe even get as far
away from home as Fresno, and in that event I hoped to meet them all
again. This is what I told the boys. For the correct answer—it is enough to
know that my people live in Fresno. One of the older boys said, “Never
doubt, we’ll be there—if we ever do get back home.” And though I have
been in Fresno a number of times since, I never had the pleasure of meeting
any of them. I lost their names.
Now—the $64 question!
A real honest-to-goodness professional tramp had hurriedly passed me by
before the boys had caught up with me. I had a couple pork sandwiches in
my pocket. My first thought was to offer them to this fellow—then thought
that maybe he was not a tramp. A tractor had been running on a farm east of
my place, and this fellow was just about smeary enough to have been the
driver. I let him pass—and later saw him go into the depot. The wife and I
were preparing to eat the sandwiches which were on the table still wrapped
in oil paper. Then, this professional tramp showed up at our kitchen door,
asking for a handout. Taking the two wrapped sandwiches off the table, I
said, “Here you are, my man—I’ve been saving them for you.” I told him
that had he not passed me by in such hurry on the railroad tracks, that I
would have offered them to him then. He said he had been sick, and was
hurrying to get in out of the weather. It had been “spitting” snow—which, I
imagine, had caused my dinner guests at the hotel to wonder why did they
leave their homes in sunny California. My home was two blocks away from
the depot—and this was the tramp’s first call. Now—had this fellow “read
my number” in passing on the railroad track? Or, did he read the sign at my
home? It was said in the old days that tramps had a way of marking the
favorable houses. My wife never let an applicant go away without
something, little or much, to allay his hunger.
I shall drop back a few years now and expand a bit on the trials and
tribulations of my wife’s family—before she was my wife, understand.
Married at the age of sixteen, and left a widow at the age of thirty-three,
with little more than the home and a houseful of kids—all girls, at that —
Kate Mercer found herself in a highly discouraging predicament. Deprived
of the bread-winner, the almost new five-room house on an acre of ground
down by the creek, on the “wrong side of the tracks,” could now hardly be
Welcome to Our Bookstore - The Ultimate Destination for Book Lovers
Are you passionate about books and eager to explore new worlds of
knowledge? At our website, we offer a vast collection of books that
cater to every interest and age group. From classic literature to
specialized publications, self-help books, and children’s stories, we
have it all! Each book is a gateway to new adventures, helping you
expand your knowledge and nourish your soul
Experience Convenient and Enjoyable Book Shopping Our website is more
than just an online bookstore—it’s a bridge connecting readers to the
timeless values of culture and wisdom. With a sleek and user-friendly
interface and a smart search system, you can find your favorite books
quickly and easily. Enjoy special promotions, fast home delivery, and
a seamless shopping experience that saves you time and enhances your
love for reading.
Let us accompany you on the journey of exploring knowledge and
personal growth!
ebookgate.com