Developing Web Applications

Ralph Moseley

  • 出版商: Wiley
  • 出版日期: 2007-02-01
  • 售價: $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。