Integrating PHP with Apache Web Server

This chapter provides tutorial notes on installing Apache Web server on Windows systems. Topics include downloading and installing Apache 2.2.4 binary distribution; configuring Apache to run PHP as CGI scripts; testing PHP scripts on Apache server.

Downloading Apache 2.4.37 Binary for Windows

Installing Apache 2.4.37 on Windows Systems

Publishing HTML Documents as Web Pages

Configuring Apache for PHP CGI Scripts

Publishing PHP Scripts as Web Pages

Permission Error on php-cgi.exe

Takeaways:

Table of Contents

 About This Book

 PHP Installation on Windows Systems

Integrating PHP with Apache Web Server

 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

 Chinese Text Encoding Conversion and Corruptions

 Archived Tutorials

 References

 Full Version in PDF/EPUB