Publishing HTML Documents as Web Pages

This section describes how to publish a HTML document on the Apache server.

With Apache server running, I am ready to publish HTML documents as static Web pages. Here is a simple HTML document, hello.html, created with a text editor:

<html>
<body>
Hello world!
</body>
</html>

To publish this HTML document as a Web page, I copied it to the Apache document directory \local\apache\htdocs:

C:\>copy hello.html \local\apache\htdocs

Then I viewed the page at: http://localhost/hello.html, and got the page content correctly.

Hello world!

Last update: 2015.

Table of Contents

 About This Book

 PHP Installation on Windows Systems

Integrating PHP with Apache Web Server

 Downloading Apache 2.2.4 Binary for Windows

 Installing Apache 2.2.4 on Windows Systems

Publishing HTML Documents as Web Pages

 Configuring Apache for PHP CGI Scripts

 Publishing PHP Scripts as Web Pages

 charset="*" - Encodings on Chinese Web Pages

 Chinese Characters in PHP String Literals

 Multibyte String Functions in UTF-8 Encoding

 Input Text Data from Web Forms

 Input Chinese Text Data from Web Forms

 MySQL - Installation on Windows

 MySQL - Connecting PHP to Database

 MySQL - Character Set and Encoding

 MySQL - Sending Non-ASCII Text to MySQL

 Retrieving Chinese Text from Database to Web Pages

 Input Chinese Text Data to MySQL Database

 References

 PDF Printing Version