PHP Cookbook: Solutions & Examples for PHP Programmers, 3/e (Paperback)

David Sklar, Adam Trachtenberg

  • 出版商: O'Reilly
  • 出版日期: 2014-08-05
  • 售價: $2,180
  • 貴賓價: 9.5$2,071
  • 語言: 英文
  • 頁數: 818
  • 裝訂: Paperback
  • ISBN: 144936375X
  • ISBN-13: 9781449363758
  • 相關分類: PHP
  • 已絕版

買這商品的人也買了...

商品描述

Want to understand a certain PHP programming technique? Or learn how to accomplish a particular task? This cookbook is the first place to look. With more than 350 code-rich recipes revised for PHP 5.4, this third edition provides updated solutions for generating dynamic web content—everything from using basic data types to querying databases, and from calling RESTful APIs to testing and securing your site.

Each recipe includes code solutions that you can freely use, along with a discussion of how and why they work. Whether you’re an experienced PHP programmer or coming to PHP from another language, this book is an ideal on-the-job resource.

You’ll find recipes to help you with:

  • Basic data types: strings, numbers, arrays, and dates and times
  • Program building blocks: variables, functions, classes, and objects
  • Web programming: cookies, forms, sessions, and authentication
  • Database access using PDO, SQLite, and other extensions
  • RESTFul API clients and servers, including HTTP, XML, and OAuth
  • Key concepts: email, regular expressions, and graphics creation
  • Designing robust applications: security and encryption error handling, debugging and testing, and performance tuning
  • Files, directories, and PHP’s Command Line Interface
  • Libraries and package managers such as Composer and PECL

商品描述(中文翻譯)

想要了解某個特定的 PHP 程式技巧嗎?或者學習如何完成特定的任務?這本食譜是你應該首先查閱的地方。第三版的這本食譜書提供了超過 350 個富含程式碼的食譜,並針對 PHP 5.4 進行了修訂,提供了更新的解決方案,用於生成動態網頁內容,從使用基本的資料類型到查詢資料庫,再到呼叫 RESTful API,以及測試和保護你的網站,應有盡有。

每個食譜都包含了可以自由使用的程式碼解決方案,並討論了它們的工作原理和原因。無論你是一位經驗豐富的 PHP 程式設計師,還是從其他語言轉到 PHP 的人,這本書都是一個理想的在職資源。

你將會找到以下幫助你的食譜:

- 基本資料類型:字串、數字、陣列、日期和時間
- 程式建構塊:變數、函數、類別和物件
- 網頁程式設計:Cookie、表單、Session 和身份驗證
- 使用 PDO、SQLite 和其他擴展進行資料庫存取
- RESTful API 的客戶端和伺服器,包括 HTTP、XML 和 OAuth
- 關鍵概念:電子郵件、正則表達式和圖形創建
- 設計強大的應用程式:安全和加密錯誤處理、除錯和測試,以及性能調優
- 檔案、目錄和 PHP 的命令行介面
- 庫和套件管理器,如 Composer 和 PECL