Developing Web Applications
暫譯: 開發網頁應用程式

Ralph Moseley

  • 出版商: Wiley
  • 出版日期: 2007-02-01
  • 售價: $1,100
  • 貴賓價: 9.8$1,078
  • 語言: 英文
  • 頁數: 410
  • 裝訂: Paperback
  • ISBN: 0470017198
  • ISBN-13: 9780470017197
  • 下單後立即進貨 (約5~7天)

相關主題

商品描述

Description

Building applications for the Internet is a complex and fast-moving field which utilizes a variety of continually evolving technologies. Whether your perspective is from the client or server side, there are many languages to master – X(HTML), JavaScript, PHP, XML and CSS to name but a few. These languages have to work together cleanly, logically and in harmony with the systems they run on, and be compatible with any browsers with which they interact.

Developing Web Applications presents script writing and good programming practice but also allows students to see how the individual technologies fit together. It includes recent technical developments to provide a practical and modern introduction to building web applications.

Assuming no prior programming experience, this concise, accessible book ensures that essential concepts on the client side are quickly grasped, and goes on to examine the server environment and available languages, including discussion of dynamic, modern scripting languages such as PHP. Network and security issues are also discussed. The aim of this book is to deliver exactly what is needed to start producing working applications as soon as possible – and have fun along the way.

Ideal for course use or self-study, this book includes practical suggestions for mini-projects which encourage the reader to explore his or her own imaginative solutions, as well as more theoretical end-of-chapter questions. It can also easily be used as a reference work as each section is self-contained, amplifying the key aspects of its particular topic. Most software covered is freely available in the public domain and no particular development environments are required. It is a direct, contemporary and extremely useful resource for anyone interested in learning how to program applications for the World Wide Web.

 
Table of contents
Preface.

Introduction.

Features.

Additional Materials.

Trademarks.

Acknowledgments.

CHAPTER 1: THE WAY THE WEB WORKS.
A basic introduction to how the WWW works within the context of the Internet with supporting protocols and applications.

1.1 History.

1.2 The Internet and the WWW.

1.3 Protocols and Programs.

1.4 Secure Connections.

1.5 Applications and Development Tools.

1.6 The Web Browser.

1.7 Chapter Summary.

CHAPTER 2: THE CLIENT SIDE: HTML.
This chapter starts to look at the client side and static Web page development using HTML. You will learn how to develop simple Web pages and formatting, together with tables, images and frames.

2.1 Introduction.

2.2 The Development Process.

2.3 Basic HTML.

2.4 Formatting and Fonts.

2.5 Commenting Code.

2.6 Color.

2.7 Hyperlinks.

2.8 Lists.

2.9 Tables.

2.10 Images.

2.11 Simple HTML Forms.

2.12 Web Site Structure.

2.13 Chapter Summary.

CHAPTER 3: FROM HTML TO XHTML.
Here we continue the exploration of HTML into XHTML. You will learn about the various standards that have been developed for HTML. More advanced HTML will also be studied, and the ability to control search engines, cache refresh and meta information.

3.1 More History, More Standards.

3.2 The Move to XHTML.

3.3 Meta Tags.

3.4 Character Entities.

3.5 Frames and Framesets.

3.6 What Is Inside a Browser?

3.7 Chapter Summary.

CHAPTER 4: GETTING SOME STYLE: CSS.
In this chapter you will learn how to present and control the format of Web pages using CSS. This includes the ability to precisely control the positioning and attributes of content while maintaining the structure of the document itself.

4.1 The Need for CSS.

4.2 Introduction to CSS.

4.3 Basic Syntax and Structure.

4.4 Using CSS.

4.5 Background Images, Colors and Properties.

4.6 Manipulating Text.

4.7 Using Fonts.

4.8 Borders and Boxes.

4.9 Margins.

4.10 Padding.

4.11 Lists.

4.12 Positioning Using CSS.

4.13 CSS2.

4.14 Chapter Summary.

CHAPTER 5: JAVASCRIPT: INTRODUCTION TO CLIENT SIDE SCRIPTING.
This chapter will prepare you for developing with this popular scripting language, showing you the syntax and possibilities of use. The aims here are to show you how it is placed within a page, variables, strings, arrays and loops. Program flow is also discussed and how conditional operators and commands are used.

5.1 What Is JavaScript?

5.2 How to Develop JavaScript.

5.3 Simple JavaScript.

5.4 Variables.

5.5 Functions.

5.6 Conditions.

5.7 Loops and Repetition.

5.8 Chapter Summary.

CHAPTER 6: JAVASCRIPT: DEVELOPING MORE ADVANCED SCRIPTS.
In this chapter you will learn about using objects in JavaScript, both the built-in types and creating your own. You will also learn about the Document Object Model (DOM), which allows HTML documents to be manipulated and accessed. Forms and ways of validating information submitted are explored here too.

6.1 JavaScript and Objects.

6.2 JavaScript’s Own Objects.

6.3 The DOM and the Web Browser Environment.

6.4 Forms and Validation.

6.5 Chapter Summary.

CHAPTER 7: DHTML.
The aim of this chapter is to bring dynamic aspects of site design together. You will learn about animation, caching, event driven scripting and browser compatibility. It’s in this chapter you will also find out more about compatibility and the need to provide alternatives for different browsers.

7.1 Combining HTML, CSS and JavaScript.

7.2 Events and Buttons.

7.3 Controlling Your Browser.

7.4 Chapter Summary.

CHAPTER 8: XML: EXTENSIBLE MARKUP LANGUAGE.
In this chapter you will learn about the basics of XML and how it can be used to store information away from the mechanism of processing or formatting of such data. You will learn how to build simple XML files, and be able to manipulate and refer to them.

8.1 Introduction to XML.

8.2 The Many Uses of XML.

8.3 Simple XML.

8.4 XML Key Components.

8.5 Document Type Definitions and Schemas.

8.6 Well Formed?

8.7 Using XML with Applications.

8.8 Chapter Summary.

CHAPTER 9: XML, XSL AND XSLT: TRANSFORMING XML.
The aim of this chapter is to learn about and explore the possibilities of using XML as the starting point for data to be transformed into other target formats using XSLT. Style sheets are used and linked to documents. It is shown here that it is possible to process XML with a browser or a programing language on the client side.

9.1 Introducing XSL.

9.2 XML Transformed.

9.3 A Simple Example.

9.4 XSL Elements.

9.5 Transforming with XSLT.

9.6 Chapter Summary.

CHAPTER 10: WEB SERVICES, FEEDS AND BLOGS.
Here you will learn about three important areas of Web activity: how it is possible to create language- and platform-independent services that utilize common Web protocols and XML; how information can be disseminated automatically to interested people; and finally, the phenomenon of the blog!

10.1 The Need for Web Services.

10.2 SOAP.

10.3 SOAP, XML and HTTP.

10.4 Web Feeds.

10.5 Blogs.

10.6 Chapter Summary.

CHAPTER 11: THE SERVER SIDE.
This chapter aims to give you your first contact with the server side and introduces you to the server; the various possible packages and platforms; how to set up and the options involved; testing your server; logging users and dealing with dynamic IPs.

11.1 What Is a Server?

11.2 Choices.

11.3 Setting Up.

11.4 Unix and Linux Web Servers.

11.5 Which OS?

11.6 Logging Users.

11.7 Dynamic IPs.

11.8 Chapter Summary.

CHAPTER 12: PHP 1: STARTING TO SCRIPT ON THE SERVER SIDE.
This chapter gives a basic introduction to PHP and dynamic programing on the server side. You will learn how to develop simple PHP, how to structure your programs and embed script within HTML.

12.1 Starting to Script with PHP.

12.2 Variables.

12.3 Getting Some Input.

12.4 Decisions.

12.5 Looping.

12.6 Chapter Summary.

CHAPTER 13: PHP 2: ARRAYS, FUNCTIONS AND FORMS.
Here, you learn how to further manipulate data within PHP and in the process get to grips with new functions, loop structures and the verification of data input through forms. Simple arrays to dynamic structures are discussed, along with the ability to manipulate strings through special functions. Attention is particularly given to how to enlist specific features of PHP when processing data and how these can be used to add security.

13.1 Arrays.

13.2 Functions.

13.3 Browser Control.

13.4 Browser Detection.

13.5 String Manipulation with PHP.

13.6 Files.

13.7 Passwords.

13.8 Email.

13.9 Uploading.

13.10 Chapter Summary.

CHAPTER 14: MORE ADVANCED PHP.
The aim here is to provide a glimpse of the further possibilities within PHP, including cookies, sessions, objects and more advanced file handling.

14.1 Further File Handling.

14.2 Cookies.

14.3 Sessions.

14.4 Mobile Technologies.

14.5 Other Advanced PHP Features.

14.6 Object-Oriented Programing.

14.7 Chapter Summary.

CHAPTER 15: NETWORK AND WEB SECURITY.
The aim of this chapter is to make you aware of threats to online security that you and your users must guard against. The most common forms of attack are studied, such as viruses and worms, cross site scripting, email problems, Trojan horses, phishing and many other mechanisms. Possible solutions are also looked into, including firewalls and anti-virus software.

15.1 Introduction.

15.2 How Hacking Began.

15.3 Who Is Hacking Now?

15.4 Types of Attack and Intrusion.

15.5 Firewalls.

15.6 Passwords.

15.7 Defense!

15.8 Chapter Summary.

CHAPTER 16: DATABASES.
The aim of this chapter is to help you understand databases so that they can easily be utilized in your Web applications and sites. The basic idea of the database is explored, together with how well it can be linked in with server side scripting. All the basic functions are studied, together with how these can be communicated directly to the database server.

16.1 Introduction.

16.2 Relational Databases.

16.3 SQL.

16.4 Basic Commands with PHP Examples.

16.5 phpMyAdmin.

16.6 Database Bugs.

16.7 Examples.

16.8 Chapter Summary.

CHAPTER 17: ALTERNATIVE SCRIPTING LANGUAGES.
The aim of this chapter is to have a look at the various technologies available for developing Web applications. This can be useful to familiarize you with legacy code that may be met while maintaining older applications and Web sites.

17.1 Legacy Code and Application Development Choices 340

17.2 Chapter Summary 356

CHAPTER 18: FUTURE: GAINING A PERSPECTIVE.
This chapter’s main focus is to acquaint the reader with the leading edge of Internet and Web technology, to give some idea of the currently active research areas and inspire interest for future study.

18.1 Introduction.

18.2 Looking Back: Timeline.

18.3 Looking Forward: Themes for the Future.

18.4 Chapter Summary.

Glossary.

Sources.

Index.

商品描述(中文翻譯)

**描述**
建立應用程式以供互聯網使用是一個複雜且快速變化的領域,利用各種不斷演變的技術。無論您的視角是來自客戶端還是伺服器端,都有許多語言需要掌握——例如 X(HTML)、JavaScript、PHP、XML 和 CSS 等。這些語言必須能夠在其運行的系統上協同工作,並與任何互動的瀏覽器兼容。
《開發網頁應用程式》介紹了腳本編寫和良好的編程實踐,同時讓學生了解各種技術如何相互配合。它包括最近的技術發展,提供了一個實用且現代的網頁應用程式構建入門。
假設讀者沒有先前的編程經驗,這本簡明易懂的書確保讀者能迅速掌握客戶端的基本概念,並進一步探討伺服器環境及可用語言,包括對動態現代腳本語言如 PHP 的討論。網絡和安全問題也會被討論。本書的目標是提供開始製作可運行應用程式所需的所有內容,並在過程中享受樂趣。
本書非常適合課程使用或自學,包含實用的迷你專案建議,鼓勵讀者探索自己的創意解決方案,以及更理論性的章末問題。每個部分都是獨立的,強調其特定主題的關鍵方面,因此也可以輕鬆用作參考資料。大多數涵蓋的軟體都是公共領域中的免費資源,且不需要特定的開發環境。這是一本直接、當代且對任何有興趣學習如何為全球資訊網編程的讀者來說極其有用的資源。

**目錄**
**前言**
**介紹**
**特點**
**附加材料**
**商標**
**致謝**
**第一章:網絡的運作方式**
對 WWW 在互聯網背景下如何運作的基本介紹,包括支持的協議和應用程式。
1.1 歷史
1.2 互聯網與 WWW
1.3 協議與程式
1.4 安全連接
1.5 應用程式與開發工具
1.6 網頁瀏覽器
1.7 章節摘要
**第二章:客戶端:HTML**
本章開始探討客戶端和靜態網頁開發,使用 HTML。您將學習如何開發簡單的網頁和格式,並使用表格、圖像和框架。
2.1 介紹
2.2 開發過程
2.3 基本 HTML
2.4 格式與字型
2.5 註解程式碼
2.6 顏色
2.7 超連結
2.8 列表
2.9 表格
2.10 圖像
2.11 簡單的 HTML 表單
2.12 網站結構
2.13 章節摘要
**第三章:從 HTML 到 XHTML**
在這裡,我們繼續探索 HTML 到 XHTML 的過程。您將學習有關 HTML 的各種標準。還將研究更高級的 HTML,以及控制搜索引擎、緩存刷新和元信息的能力。
3.1 更多歷史,更多標準
3.2 向 XHTML 的轉變
3.3 元標籤
3.4 字元實體
3.5 框架和框架集
3.6 瀏覽器內部的內容是什麼?
3.7 章節摘要
**第四章:獲得一些樣式:CSS**
在本章中,您將學習如何使用 CSS 呈現和控制網頁的格式。這包括精確控制內容的位置和屬性,同時保持文檔本身的結構。
4.1 CSS 的必要性
4.2 CSS 介紹
4.3 基本語法和結構
4.4 使用 CSS
4.5 背景圖像、顏色和屬性
4.6 操作文本
4.7 使用字型
4.8 邊框和框
4.9 邊距
4.10 內邊距
4.11 列表
4.12 使用 CSS 進行定位
4.13 CSS2
4.14 章節摘要
**第五章:JavaScript:客戶端腳本的介紹**
本章將為您準備使用這種流行的腳本語言,展示其語法和使用可能性。這裡的目標是向您展示它在頁面中的位置、變數、字串、數組和循環。還將討論程式流程以及如何使用條件運算符和命令。
5.1 JavaScript 是什麼?
5.2 如何開發 JavaScript
5.3 簡單的 JavaScript
5.4 變數
5.5 函數
5.6 條件
5.7 循環和重複
5.8 章節摘要
**第六章:JavaScript:開發更高級的腳本**
在本章中,您將學習如何在 JavaScript 中使用對象,包括內建類型和創建自己的對象。您還將學習文檔對象模型 (DOM),這使得可以操作和訪問 HTML 文檔。還將探討表單及驗證提交信息的方法。
6.1 JavaScript 和對象
6.2 JavaScript 的自有對象
6.3 DOM 和網頁瀏覽器環境
6.4 表單和驗證
6.5 章節摘要
**第七章:DHTML**
本章的目標是將網站設計的動態方面結合在一起。您將學習有關動畫、緩存、事件驅動腳本和瀏覽器兼容性。您還將在本章中了解更多有關兼容性以及為不同瀏覽器提供替代方案的必要性。
7.1 結合 HTML、CSS 和 JavaScript
7.2 事件和按鈕
7.3 控制您的瀏覽器
7.4 章節摘要
**第八章:XML:可擴展標記語言**
在本章中,您將學習 XML 的基本知識以及如何將其用於存儲信息,而不依賴於處理或格式化這些數據的機制。您將學習如何構建簡單的 XML 文件,並能夠操作和引用它們。
8.1 XML 介紹
8.2 XML 的多種用途
8.3 簡單的 XML
8.4 XML 的關鍵組件
8.5 文檔類型定義和架構
8.6 形式良好?
8.7 將 XML 與應用程式一起使用
8.8 章節摘要
**第九章:XML、XSL 和 XSLT:轉換 XML**
本章的目標是學習和探索使用 XML 作為數據起點的可能性,將其轉換為其他目標格式,使用 XSLT。使用樣式表並將其鏈接到文檔。在這裡顯示可以使用瀏覽器或客戶端的編程語言處理 XML。
9.1 介紹 XSL
9.2 XML 轉換
9.3 一個簡單的例子
9.4 XSL 元素
9.5 使用 XSLT 進行轉換
9.6 章節摘要
**第十章:網絡服務、供稿和博客**
在這裡,您將學習網絡活動的三個重要領域:如何創建語言和平台無關的服務,利用通用的網絡協議和 XML;如何自動將信息傳播給感興趣的人;最後,博客現象!
10.1 網絡服務的必要性
10.2 SOAP
10.3 SOAP、XML 和 HTTP
10.4 網絡供稿
10.5 博客
10.6 章節摘要
**第十一章:伺服器端**
本章旨在讓您首次接觸伺服器端,並介紹伺服器;各種可能的套件和平台;如何設置及相關選項;測試您的伺服器;登錄用戶和處理動態 IP。
11.1 什麼是伺服器?
11.2 選擇
11.3 設置
11.4 Unix 和 Linux 網頁伺服器
11.5 哪個操作系統?
11.6 登錄用戶
11.7 動態 IP
11.8 章節摘要
**第十二章:PHP 1:開始在伺服器端編寫腳本**
本章對 PHP 和伺服器端的動態編程進行基本介紹。您將學習如何開發簡單的 PHP,如何結構化您的程式並將腳本嵌入 HTML 中。
12.1 開始使用 PHP 編寫腳本
12.2 變數
12.3 獲取一些輸入
12.4 決策
12.5 循環
12.6 章節摘要
**第十三章:PHP 2:數組、函數和表單**
在這裡,您將學習如何進一步操作 PHP 中的數據,並在此過程中掌握新函數、循環結構以及通過表單驗證數據輸入。討論從簡單數組到動態結構,以及通過特殊函數操作字串的能力。特別關注如何在處理數據時利用 PHP 的特定功能,以及如何使用這些功能來增強安全性。
13.1 數組
13.2 函數
13.3 瀏覽器控制
13.4 瀏覽器檢測
13.5 使用 PHP 操作字串
13.6 文件
13.7 密碼
13.8 電子郵件
13.9 上傳
13.10 章節摘要
**第十四章:更高級的 PHP**
這裡的目標是提供 PHP 進一步可能性的概覽,包括 cookies、會話、對象和更高級的文件處理。
14.1 進一步的文件處理
14.2 cookies
14.3 會話
14.4 移動技術
14.5 其他高級 PHP 特性
14.6 面向對象編程
14.7 章節摘要
**第十五章:網絡和網頁安全**
本章的目標是讓您意識到您和您的用戶必須防範的在線安全威脅。研究最常見的攻擊形式,如病毒和蠕蟲、跨站腳本、電子郵件問題、木馬、網絡釣魚和許多其他機制。還將探討可能的解決方案,包括防火牆和防病毒軟體。
15.1 介紹
15.2 黑客是如何開始的
15.3 現在誰在黑客?
15.4 攻擊和入侵的類型
15.5 防火牆
15.6 密碼
15.7 防禦!
15.8 章節摘要
**第十六章:數據庫**
本章的目標是幫助您理解數據庫,以便能夠輕鬆地在您的網頁應用程式和網站中使用。探討數據庫的基本概念,以及它如何與伺服器端腳本良好連接。研究所有基本功能,以及如何將這些功能直接傳達給數據庫伺服器。
16.1 介紹
16.2 關聯數據庫
16.3 SQL
16.4 基本命令及 PHP 範例
16.5 phpMyAdmin