相關主題
商品描述
Make your websites more dynamic by adding a feedback form, creating a private area where members can upload images that are automatically resized, or storing all your content in a database. David Powers has updated his definitive book to incorporate the latest techniques and changes to PHP with the arrival of PHP 8. New features include named attributes, constructor property promotion, the stricter and more concise match expression, union types, and more.
The problem is, you're not a programmer and the thought of writing code sends a chill up your spine. Or maybe you've dabbled a bit in PHP and MySQL, but you can't get past baby steps. If this describes you, then you've just found the right book. PHP powers four out of every five websites that use a server-side language. In combination with the MySQL database it's ideal for creating dynamic websites. PHP and MySQL are free, easy to use, and provided by many web hosting companies in their standard packages. This book also covers MariaDB, a seamless replacement for MySQL that has been adopted on many web servers.
Unfortunately, most PHP books either expect you to be an expert already or force you to go through endless exercises of little practical value. In contrast, this book gives you real value right away through a series of practical examples that you can incorporate directly into your sites, optimizing performance and adding functionality such as file uploading, email feedback forms, image galleries, content management systems, and much more. Each solution is created with not only functionality in mind, but also visual design.
But this book doesn't just provide a collection of ready-made scripts: each PHP solution builds on what's gone before, teaching you the basics of PHP and database design quickly and painlessly. You'll learn how to optimize your code using object-oriented programming (OOP) techniques. By the end of the book, you'll have the confidence to start writing your own scripts or--if you prefer to leave that task to others--to adapt existing scripts to your own requirements. Right from the start, you're shown how easy it is to protect your sites by adopting secure coding practices.
What You Will Learn
- Design and build dynamic PHP-based web sites and applications
- Get started right away through practical examples that you can reuse
- Incorporate PHP 8 elements including named attributes, constructor property promotion, and union types
- Understand the subtle, but important differences between switch and match
- Work with the latest PHP 8 techniques, innovations, and best practices
Who This Book Is For
Readers should ideally have some prior exposure to web development using PHP.
商品描述(中文翻譯)
讓您的網站更具動態性,通過添加反饋表單、創建一個私密區域讓會員上傳自動調整大小的圖片,或將所有內容存儲在數據庫中。David Powers 更新了他的權威著作,以納入 PHP 8 的最新技術和變更。新特性包括命名屬性、構造函數屬性提升、更嚴格且更簡潔的 match 表達式、聯合類型等。
問題是,您不是程序員,想到編寫代碼就感到不安。或者您可能對 PHP 和 MySQL 有所接觸,但無法超越初學者的階段。如果這描述了您,那麼您剛好找到了合適的書籍。PHP 驅動了每五個使用伺服器端語言的網站中的四個。結合 MySQL 數據庫,它非常適合創建動態網站。PHP 和 MySQL 是免費的,易於使用,並且許多網頁寄存公司在其標準套餐中提供這些工具。本書還涵蓋了 MariaDB,這是一個無縫替代 MySQL 的選擇,已在許多網頁伺服器上被採用。
不幸的是,大多數 PHP 書籍要麼期望您已經是專家,要麼迫使您經歷無數實用價值不大的練習。相比之下,本書通過一系列實用範例立即為您提供真正的價值,這些範例可以直接整合到您的網站中,優化性能並添加功能,例如文件上傳、電子郵件反饋表單、圖片庫、內容管理系統等。每個解決方案不僅考慮功能,還考慮視覺設計。
但本書不僅僅提供一系列現成的腳本:每個 PHP 解決方案都建立在之前的基礎上,快速且輕鬆地教會您 PHP 和數據庫設計的基礎知識。您將學會如何使用面向對象編程(OOP)技術來優化您的代碼。在本書結束時,您將有信心開始編寫自己的腳本,或者如果您更願意將這項任務留給他人,則可以根據自己的需求調整現有腳本。從一開始,您就會看到通過採用安全編碼實踐來保護您的網站是多麼簡單。
您將學到什麼
- 設計和構建基於 PHP 的動態網站和應用程序
- 通過可重用的實用範例立即開始
- 納入 PHP 8 元素,包括命名屬性、構造函數屬性提升和聯合類型
- 理解 switch 和 match 之間微妙但重要的區別
- 使用最新的 PHP 8 技術、創新和最佳實踐
本書適合誰
讀者理想上應該對使用 PHP 的網頁開發有一些先前的接觸。
作者簡介
David first became involved with web development in the early 1990s as Editor of BBC Japanese TV. With no marketing budget, he developed a bilingual web site to promote the channel. After leaving the BBC, he went on to develop a bilingual online database for an international consultancy, as well as teaching web development courses at two universities in the UK. In addition to writing and creating video training courses, he's a Trustee of a charity in North London that provides educational facilities for retired people and those no longer in full-time employment.
作者簡介(中文翻譯)
大衛·鮑威爾是超過30部成功的PHP視頻訓練課程和書籍的作者。他的職業生涯始於BBC的廣播和電視記者,並在日本度過了大部分時間,報導泡沫經濟的興起與崩潰。他以通俗易懂、無行話的語言報導複雜問題的背景,體現在他對PHP和網頁開發的寫作中。
大衛在1990年代初期首次參與網頁開發,擔任BBC日語電視台的編輯。由於沒有行銷預算,他開發了一個雙語網站來推廣該頻道。在離開BBC後,他為一家國際顧問公司開發了一個雙語在線數據庫,並在英國的兩所大學教授網頁開發課程。除了撰寫和創建視頻訓練課程外,他還是倫敦北部一家慈善機構的受託人,該機構為退休人士和不再全職工作的人提供教育設施。