PHP Web Programming cover

PHP Web Programming

Rating 3.2
Word count
53K words
Chapters
115
ISBN
9787568921985

Tags

Summary

Written for beginners, this book introduces PHP development in clear, accessible language with practical examples. A complete hands-on project reinforces key concepts, task-driven exercises build practical skills, and detailed code comments are provided throughout.

Editor's review

Published by Chongqing University Press in 2021, PHP Web Programming by Liu Chun occupies a clear niche among comparable textbooks. Using PHP 7.4 as its primary development environment, the book systematically covers the core technology stack of PHP web development. Judging by reviews on platforms such as Douban, it has earned a solid reputation among university computer science students and self-taught beginners, with its clear structure and detailed examples drawing considerable positive feedback. Author Liu Chun's university teaching background informs the book's logical organization and pedagogical progression: from basic PHP syntax and object-oriented programming to MySQL database operations, session control, and on to the MVC design pattern and mainstream frameworks such as Laravel, forming a complete skills chain.

Compared with books that pursue quick results or focus on a single framework, this book's value lies in its systematic and foundational approach. It does not merely list syntax but seeks to guide readers toward understanding the full lifecycle of a web application from request to response, and the essence of front-end/back-end data interaction. The chapters on form handling, file uploads, image processing, and the PDO database abstraction layer are particularly solid, and the two comprehensive projects—a news publishing system and a shopping cart system—help readers connect discrete knowledge points and develop complete project thinking. For learners who wish to build a solid PHP foundation, understand the traditional web development workflow, and lay a firm groundwork for studying modern frameworks, this is a textbook worth investing time in. Bear in mind, of course, that technical books are time-sensitive; readers should consult the official PHP documentation to keep abreast of changes in the latest language features.

Who it's for

A good fit for

  • Undergraduate or vocational college students in computer-related majors, especially suited for use as a course textbook
  • Career changers with some programming background (e.g., familiarity with C/Java) who wish to systematically learn PHP for web development
  • Front-end or other back-end developers who need to quickly master PHP to maintain or develop related projects
  • Self-learners who prefer to start from principles and fundamentals and seek a complete body of knowledge

Not a good fit for

  • Learners in a hurry who want to quickly get up to speed with a single popular framework (e.g., ThinkPHP, Laravel) and put it into production immediately
  • Experienced PHP developers seeking to explore advanced topics such as high concurrency and microservices

Reading tips

  1. Read the chapters in order and practice every code example—this is the most effective way to master programming knowledge
  2. Focus on the chapters on database programming and the MVC pattern, the key bridge between basic syntax and real-world projects
  3. After completing the comprehensive projects at the end of the book, try extending or modifying their features—the best way to test what you have learned

About the publisher

Chongqing University Press China · Founded in 1985

Chongqing University Press is a comprehensive university press whose publishing areas span social and cultural studies, industrial technology, finance and economics, medicine, social psychology, and theory. Judging from its catalog, the press publishes both academic works and popular science titles. Representative books include E. H. Gombrich's Shadows: The Depiction of Cast Shadows in Western Art, Magnesium-Based Hydrogen Storage Materials by Pan Fusheng et al., Research on China's Regional Spatial Development Models by Sun Jiuwen, and titles from the Gynecologic Oncology Committee of the Chinese Anti-Cancer Association, such as the Guidelines for Diagnosis and Treatment of Common Gynecologic Malignancies in China (2019) and Bipolar Disorder: What You and Your Family Need to Know. Its authors work in art history, materials science, regional economics, clinical medicine, and social research methods. Public information is limited, but its publishing profile combines academic translation, industrial technology, and practical medical guides.

Contents

  1. 版权信息
  2. 内容提要
  3. 前言
  4. 第1章 WEB程序设计概述
  5. 1.1 IP地址、域名
  6. 1.2 Internet网络协议
  7. 1.3 WEB工作原理
  8. 1.4 动态网页开发技术简介
  9. 本章小结
  10. 练习
  11. 第2章 开发环境搭建与配置
  12. 2.1 什么是PHP
  13. 2.2 PHP环境搭建
  14. 2.3 编码规范
  15. 2.4 PHP常用开发工具
  16. 2.5 常用学习资源
  17. 本章小结
  18. 练习
  19. 第3章 PHP基本语法
  20. 3.1 PHP标识符
  21. 3.2 注释
  22. 3.3 常量
  23. 3.4 变量
  24. 3.5 PHP运算符
  25. 3.6 数据类型
  26. 3.7 PHP自定函数的创建与使用
  27. 本章小结
  28. 练习
  29. 第4章 PHP流程控制
  30. 4.1 if条件控制及多分支
  31. 4.2 switch条件语句
  32. 4.3 while循环控制
  33. 4.4 for循环语句及其多层嵌套
  34. 4.5 跳转语句
  35. 本章小结
  36. 练习
  37. 第5章 字符串
  38. 5.1 字符串的定义
  39. 5.2 字符串的常用函数
  40. 本章小结
  41. 练习
  42. 第6章 正则表达式
  43. 6.1 概念
  44. 6.2 语法规则
  45. 6.3 函数介绍
  46. 6.4 综合案例
  47. 本章小结
  48. 练习
  49. 第7章 数组
  50. 7.1 数组的定义
  51. 7.2 数组的申明
  52. 7.3 多维数组
  53. 7.4 数组的输出
  54. 7.5 数组的遍历
  55. 7.6 数组的删除
  56. 7.7 数组的修改
  57. 7.8 数组与字符串的转换
  58. 7.9 数组的常用函数
  59. 本章小结
  60. 练习
  61. 第8章 表单交互
  62. 8.1 表单
  63. 8.2 表单提交与PHP获取
  64. 8.3 案例
  65. 本章小结
  66. 练习
  67. 第9章 MySQL操作
  68. 9.1 MySQL概述
  69. 9.2 SQL语句
  70. 9.3 PHP与MySQL
  71. 9.4 案例
  72. 本章小结
  73. 练习
  74. 第10章 日期与时间操作
  75. 10.1 系统时区设置
  76. 10.2 常用函数
  77. 本章小结
  78. 练习
  79. 第11章 cookie与session
  80. 11.1 cookie
  81. 11.2 session
  82. 11.3 案例
  83. 本章小结
  84. 练习
  85. 第12章 PHP图像处理
  86. 12.1 创建图像
  87. 12.2 常用图像函数
  88. 12.3 添加文字
  89. 12.4 PHP验证码生成
  90. 本章小结
  91. 练习
  92. 第13章 PHP文件与应用
  93. 13.1 文件处理
  94. 13.2 设置文件属性
  95. 13.3 操作文件目录
  96. 13.4 操作文件指针
  97. 13.5 文件上传
  98. 本章小结
  99. 练习
  100. 第14章 面向对象
  101. 14.1 面向对象基本概念
  102. 14.2 PHP类的创建
  103. 14.3 PHP对象的创建与使用
  104. 14.4 数据隐藏
  105. 14.5 面向对象编程的三大特点
  106. 14.6 抽象类与接口
  107. 14.7 魔术方法
  108. 本章小结
  109. 练习
  110. 第15章 综合项目实践:基于RBAC的简单后台管理系统
  111. 15.1 功能需求
  112. 15.2 数据库设计
  113. 15.3 系统实现
  114. 本章小结
  115. 参考文献

FAQ

Which PHP version is the code environment based on?
The book is primarily based on PHP 7.4, and the features and code covered run on that version. Readers can use any PHP 7.x version for compatibility, but if using PHP 8.x or above, note that some functions or features have changed; consult the official documentation.
Does the book cover front-end content (e.g., HTML/CSS/JavaScript)?
The book focuses on PHP back-end development. Although necessary basic front-end knowledge such as HTML forms is included for the sake of complete web applications, it is not a systematic treatment of front-end technologies. Readers need basic HTML and CSS knowledge to better understand the front-end/back-end interaction process.
What level can I reach after finishing this book?
By studying systematically and completing the hands-on exercises, readers will master core PHP syntax, object-oriented programming, MySQL database operations, session management, file handling, and more, and will understand the MVC design pattern. They will be able to independently develop traditional dynamic websites such as news systems and content management systems (CMS), laying a solid foundation for learning modern frameworks such as Laravel and ThinkPHP.

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.

About the author

刘纯 Author

Public information about Liu Chun is limited. The works attributed to this name span a notably wide range of subjects, covering medicine, literary appreciation, and programming design. In medicine there are Yuji Weiyi (Subtle Meanings of the Jade Pivot) and Zhibing Zhili (Therapeutic Cases of Miscellaneous Diseases); judging by their titles, they belong to the tradition of medical theory and the diagnosis and treatment of miscellaneous diseases, suggesting that the author compiled discussions of syndrome differentiation and clinical experience in Chinese medicine. The literary appreciation title shows a range of reading beyond a single specialty. A further work, PHP Web Programming Design, indicates that the author's writing also extends to textbooks on web programming. This cross-disciplinary pattern of attribution may stem from different authors sharing the same name or from different directions of writing at different times, and the available materials are not enough to establish the person's identity or life. Readers approaching these works should rely on what each individual title presents and evaluate the medical writings and the programming textbook on their own merits.

罗平 Author

Luo Ping is an author about whom limited public information is available. Three works can currently be confirmed under this name, spanning industrial technology, programming design, and education. In industrial technology, the author has written Electrical Control and PLC Application Technology (2nd Edition), which focuses on the practical application of electrical control and programmable logic controllers. In programming design, the author wrote PHP WEB Programming, an introduction to web development. In education, the author compiled College Student Orientation Education, intended to help new university students adapt and find guidance. These three works cover a fairly wide range of subjects, suggesting that the author's writing combines technical practice with teaching applications and leans toward practicality, with language and structure suited to courses and self-study. Because no public information is available on dates of birth and death, nationality, education, or professional experience, a fuller personal biography cannot yet be provided; the above introduction is based only on the subjects and categories of the works in the database.

苟英 Author · Chinese

Gou Ying is a Chinese author of programming and technical books, about whom limited public information is available; two titles are known under this name. The writing focuses on programming design and web development, with representative works Python Network Programming from Beginner to Mastery and PHP Web Programming. Judging from these titles, Gou Ying addresses practical, entry-level technical tutorials for beginners, covering the use of Python in network programming and the fundamentals and implementation of PHP in web program design. Books of this kind typically explain concepts step by step and combine them with examples and exercises, helping readers grasp language syntax and the basic workflow of project development. Although no public record of the author's background, education, or professional experience has been disclosed, the technical scope of the works suggests that Gou Ying writes for readers hoping to enter network programming and web development, emphasizing the connection between language knowledge and real development scenarios, with a strong instructional and introductory character.

李华平 Author

Public information about Li Huaping is limited, and little is known about his identity or background. Judging from the three works held in the collection, his writing spans several fields, touching on basic education, agricultural popular science and computer programming. In This Is How Chinese Lessons Should Be Taught: An Appreciation of Excellent Teaching Segments by Master Chinese Teachers (Middle School Volume), he focuses on the middle school Chinese classroom, presenting concrete teaching ideas and methods through an analysis of master teachers' lessons; the book is aimed at frontline teachers and is highly practical. Guangdong Tobacco Pest Identification and Control turns to agricultural science, covering the identification and prevention of tobacco pests, and is a technical work oriented toward production practice. PHP Web Programming, meanwhile, reflects his involvement in programming and design, with content geared toward the basics of website development. The three books fall under different categories, including examinations, science popularization and programming design, suggesting a broad range of interests, with writing that is teaching- and practice-oriented, plain in language and attentive to hands-on operation. In the absence of biographical information, no speculation is offered here.

陶雪娇 Author

Tao Xuejiao is an author about whom very limited public information is currently available; her full biography, nationality, and educational background cannot be confirmed. Based on the holdings in our database, she is associated with books on programming and design, and her representative work is PHP Web Programming. The book is aimed at introductory web development and classroom use, covering the basic syntax of PHP, page interaction, and the organization of web programs. It follows a typical textbook approach: chapters proceed step by step, with concepts introduced first and examples following, so that readers can learn and practice as they go. The available information supports only a judgment about the direction of her work, not a full picture of her personal experience or writing. Readers who wish to learn more about her background will need to wait for further public information; until then, attention is best focused on the introductory programming content and teaching purpose presented in the book.

朱长娥 Author

Zhu Chang'e: publicly available information is limited. At present, it is known only that the author has one work in the field of programming and design, namely PHP WEB Programming. Judging from the title and its common classification, the book is intended for introductory Web development and teaching, focusing on the application of the PHP language in network programming and covering basic topics such as script writing and the coordination between pages and back-end logic. It is suitable as a course textbook or for self-study. Since no reliable records of the author's biography, academic background, or research direction have been found, this profile makes no speculation about her personal experience. Based only on the available bibliographic information, Zhu Chang'e's writing is technically practical and oriented toward programming and design instruction; the work offers readers an entry point for learning PHP Web development, while its specific content and features require further examination of the book itself.

陶薇薇 Author

Publicly available information about Tao Weiwei is currently limited. It is known only that she has one work, PHP Web Programming, classified under programming and design. Judging from this title, her writing is oriented toward introductory Web development and teaching, focusing on the PHP language and web programming, and covering foundational topics such as server-side scripting and page interaction. The book is suitable for readers who need to study PHP development systematically or use it in coursework. Existing information is not yet sufficient to outline her full background or identity, but it is clear that she participates in organizing and spreading programming knowledge through technical textbook writing. For readers seeking a foundation in PHP Web development, this book can serve as an introductory reference; its specific style and depth still need to be judged in light of the original text.

More by the same author

Top rated in the same category