Sams Teach Yourself PHP, MySQL and Apache All in One (5th Edition) cover

Sams Teach Yourself PHP, MySQL and Apache All in One (5th Edition)

No rating yet
Chapters
39
ISBN
9787115302700

Tags

Summary

This book is the Chinese translation of the 5th edition of Sams Teach Yourself PHP, MySQL and Apache All in One, a classic introductory textbook from the American publisher Sams. Aimed at complete beginners or novice readers, it teaches the PHP scripting language, the MySQL relational database, and the Apache web server—three open-source tools—as a single integrated whole. The book is divided into 6 parts and 33 chapters. Part 1, "Basics," first guides readers to quickly set up a development environment using a third-party integrated package (XAMPP), then explains the installation, configuration, and security settings of MySQL, Apache, and PHP on Linux/UNIX, Mac OS X, and Windows. Part 2, "PHP Language Structure," covers language elements such as variables, operators, flow control, functions, arrays, and objects. Part 3, "Deeper Programming," moves into intermediate topics including string and date handling, forms, cookies and user sessions, file and directory operations, and image processing. Part 4, "PHP and MySQL Integration," begins with the database design process and introduces basic SQL commands, transactions and stored procedures, and methods for connecting to and operating MySQL with PHP. Part 5, "Basic Projects," uses a set of small projects—a mailing list, an online address book, a discussion forum, an online store and shopping cart, a calendar, access restriction, log monitoring, application localization, and XML—to tie what has been learned into complete applications. Part 6, "Management and Optimization," discusses Apache performance tuning and virtual hosts, building a secure web server, MySQL optimization and tuning, software upgrades, and using application frameworks. The book advances in a "concept—demonstration—exercise" rhythm, with a summary, Q&A, and practical exercises in each chapter, and sample code on the accompanying CD, making it suitable as a self-study guide or course reference.

Editor's review

如果你想把“动态网站”这件事一次打通,这本书的编排思路非常省心:它不把PHP、MySQL、Apache当作三门互不相干的课,而是从第一章就让你把它们装在同一台机器上,然后一路写到能运行的完整应用。对初学者最友好的地方是环境搭建部分——用XAMPP之类的集成包先把服务器跑起来,再回头逐个拆解MySQL、Apache、PHP的配置细节,避免了“还没写代码就先卡在环境”的常见挫败感。中段的语言与数据库部分讲得朴素直白,数组、对象、表单、会话、SQL命令、事务与存储过程这些核心概念都落在可执行的例子上;后段十个左右的小项目从邮件列表、地址簿一路做到论坛、在线商店与购物车,相当于把“学语法”直接翻译成“能交付的东西”。最后的性能调校、虚拟主机、安全加固与框架入门,则给了继续深入的方向。译文整体通顺,术语统一,每章的Q&A和练习很适合当作业或自测。需要提醒的是,本版成书于2013年前后,示例基于当时的PHP 5、MySQL 5.x与旧版Apache,部分函数(如mysql扩展、旧式密码散列)在今天已属过时甚至不安全,服务器配置与安全实践也与现代版本有差距。因此它更适合作为“理解LAMP运行机理与Web开发主线”的经典读物,实际动手时请配合当前官方文档,把代码迁移到新的PHP与MySQL版本。

Who it's for

A good fit for

  • 零基础想系统入门Web后端开发的自学者
  • 需要一门课把PHP、MySQL、Apache一起讲通的在校学生
  • 从其他语言转来做传统LAMP站点维护的开发者
  • 想理解动态网站从环境搭建到部署上线的完整流程的人

Not a good fit for

  • 希望直接学习现代框架(Laravel、Symfony)与最新PHP特性的读者
  • 只做前端、完全不接触服务器与数据库的读者
  • 追求云原生、容器化部署等当代运维实践的人

Reading tips

  1. 第一部分不要跳读,亲手完成XAMPP环境搭建,后面所有例子都依赖它。
  2. 第2至第4部分每章末尾的Q&A和练习建议动手写一遍,比只读代码更有效。
  3. Part 5的项目按顺序做,边做边改,把每个小项目扩展成自己的需求。
  4. 动手时对照PHP与MySQL当前版本的官方文档,替换书中已废弃的函数与配置写法。

About the publisher

Posts & Telecom Press China · Founded in 1953

Posts & Telecom Press is known for its strengths in science and technology, computing, and information and communications titles, and has extended its publishing into photography, art, software learning, and inspirational growth, giving it a fairly diverse range. Its catalog includes computing and communications works such as Refactoring and Patterns (Revised Edition) and Huawei Switch Learning Guide (Second Edition), alongside bilingual collector's editions such as The Little Prince (Chinese-English-French illustrated collector's edition), The Great Gatsby, and Three Days to See. Beijing Ten Years: 1980-1990 and Ghost Blade: WLOP Personal Illustration Collection reflect its presence in photography and art. Its authors include Antoine de Saint-Exupéry, Helen Keller, Joshua Kerievsky, Wang Da, Zhang Zhaozeng, and WLOP.

Contents

  1. Part 1 Fundamentals
  2. Chapter 1 Installation Quick Start
  3. Chapter 2 Installing and Configuring MySQL
  4. Chapter 3 Installing and Configuring Apache
  5. Chapter 4 Installing and Configuring PHP
  6. Part 2 The PHP Language Structure
  7. Chapter 5 Building Blocks of PHP
  8. Chapter 6 Flow Control Functions in PHP
  9. Chapter 7 Working with Functions
  10. Chapter 8 Working with Arrays
  11. Chapter 9 Working with Objects
  12. Part 3 Advanced Programming
  13. Chapter 10 Working with Strings, Dates, and Times
  14. Chapter 11 Working with Forms
  15. Chapter 12 Working with Cookies and User Sessions
  16. Chapter 13 Working with Files and Directories
  17. Chapter 14 Working with Images
  18. Part 4 Integrating PHP and MySQL
  19. Chapter 15 Understanding the Database Design Process
  20. Chapter 16 Basic SQL Commands
  21. Chapter 17 Using Transactions and Stored Procedures in MySQL
  22. Chapter 18 Interacting with MySQL Using PHP
  23. Part 5 Basic Projects
  24. Chapter 19 Managing a Simple Mailing List
  25. Chapter 20 Creating an Online Address Book
  26. Chapter 21 Creating a Simple Discussion Forum
  27. Chapter 22 Creating an Online Store
  28. Chapter 23 Creating a Shopping Cart Mechanism
  29. Chapter 24 Creating a Simple Calendar
  30. Chapter 25 Restricting Access to Your Applications
  31. Chapter 26 Logging and Monitoring Web Server Activity
  32. Chapter 27 Application Localization
  33. Chapter 28 Working with XML
  34. Part 6 Administration and Optimization
  35. Chapter 29 Apache Performance Tuning and Virtual Hosting
  36. Chapter 30 Setting Up a Secure Web Server
  37. Chapter 31 Optimizing and Tuning MySQL
  38. Chapter 32 Software Upgrades
  39. Chapter 33 Using Application Frameworks

FAQ

这本书适合完全没有编程基础的人吗?
适合零基础起步,但需要一点计算机操作常识。书中从安装环境讲起,PHP语法也从变量、流程控制讲起,不需要先会别的语言;不过后半部分的数据库设计与项目实践节奏较快,建议边读边敲代码。
书中的PHP和MySQL版本现在还适用吗?
本书2013年出版,示例基于当时的PHP 5、MySQL 5.x和旧版Apache。基本语法与运行机理仍然通用,但旧的mysql_*函数、旧式密码加密方式等已被移除或不安全,实操时请改用PDO或mysqli,并对照当前官方文档。
需要有Linux基础才能读吗?
不必。书中的安装章节分别覆盖Linux/UNIX、Mac OS X和Windows,并推荐先用XAMPP等集成包快速上手,Windows用户也能完整跟完所有示例。
这本第5版和市面上其他PHP入门书有什么区别?
大多数入门书只讲PHP语言本身,而本书把PHP、MySQL、Apache三件套作为一套完整开发栈来讲,并且用多个小项目(地址簿、论坛、在线商店、购物车等)串起从安装到优化调校的全流程,更接近真实建站的过程。
读完这本书能达到什么水平?
可以独立搭建LAMP开发环境,用PHP连接MySQL写出带表单、会话、文件上传与简单购物车的动态站点,并了解Apache虚拟主机与基础性能和安全调校。再往上建议学习现代框架、版本控制与部署工具。

Comments

Find this book

This site is an index: you start “Search all sources” in your browser, and the entries it lists all point to third-party sites; please judge their availability yourself.

Top rated in the same category