PHP & MySQL : Your visual blueprint for creating dynamic , database-driven Web sites (Paperback)
Janet Valade
- 出版商: Hungry Minds
- 出版日期: 2006-09-14
- 定價: $1,050
- 售價: 1.9 折 $199
- 語言: 英文
- 頁數: 307
- 裝訂: Paperback
- ISBN: 0470048395
- ISBN-13: 9780470048399
-
相關分類:
MySQL、PHP、SQL、資料庫
立即出貨(限量) (庫存=1)
買這商品的人也買了...
-
$2,330$2,214 -
$990$782 -
$880$748 -
$880$695 -
$880$581 -
$650$514 -
$650$507 -
$850$723 -
$450$383 -
$270$213 -
$760$600 -
$520$442 -
$750$593 -
$680$537 -
$480$379 -
$720$569 -
$550$429 -
$590$502 -
$620$490 -
$680$578 -
$299$236 -
$880$616 -
$780$702 -
$620$558 -
$560$504
相關主題
商品描述
Description
* Covers all the essentials for adding dynamic content to a site with PHP and linking it to an MySQL database
* Explains more than 125 key tasks, from using cookies to monitor the activity of Web site visitors to retrieving information from MySQL databases, creating images and Web pages on the fly, and processing XML documents
* PHP-Hypertext PreProcessor-open-source scripting language is in use on over 16 million Web sites worldwide; the latest version of MySQL was downloaded more than one million times in the first few weeks of its release
* Companion Web site features a fully searchable e-version of the book, plus all code in the book
Table of Contents
HOW TO USE THIS BOOK.
1 SETTING UP YOUR DEVELOPMENT ENVIRONMENT.
Introducing Dynamic Web Sites.
Set Up Your Development Environment.
Obtain Apache.
Install Apache.
Obtain MySQL.
Install MySQL.
Configure MySQL.
Install MySQL Administration Programs.
Create MySQL Accounts for Use in PHP Scripts.
Obtain PHP.
Install PHP.
Configure Apache to Process PHP Code.
Configure PHP.
Test Your Development Environment.
2 LEARNING PHP BASICS.
How PHP Works.
Add PHP Code to a Web Page File.
Using PHP Statements.
Understanding PHP Output Statements.
Using PHP Variables.
Using PHP Constants.
Work with Numbers.
Work with Character Strings.
Work with Dates and Times.
Modify or Remove Variables.
Using Variable Variables.
Understanding Error Messages.
Add Comments to a Script.
3 USING ARRAYS.
Create an Array.
Modify or Remove an Array.
Get Information about an Array.
Sort an Array.
Walk through an Array with foreach.
Walk through an Array Manually.
Find Values in an Array.
Compare Arrays.
Split and Merge Arrays.
Convert an Array into a String and Vice Versa.
Store a Set of Variables in an Array.
Store Array Elements in Separate Variables.
Create a Multidimensional Array.
Walk through a Multidimensional Array.
Using Built-in PHP Arrays.
4 CONTROLLING THE FLOW OF THE SCRIPT.
Change the Order of Statement Execution.
Check the Contents of a Variable.
Set up Conditions with Comparison Operators.
Introducing Regular Expressions.
Match Character Strings to Patterns Using Regular Expressions.
Join Multiple Comparisons with Logical Operators.
Using an if Statement.
Using a switch Statement.
Using a for Loop.
Using a while Loop.
Using a do-while Loop.
Avoid an Infinite Loop.
Break Out of a Loop.
5 REUSING PHP CODE.
Include a Code File.
Configure the Path to the include Files.
Include Files Automatically.
Store include Files Securely.
Define and Use a Function.
Using Variables in a Function.
Pass Values to a Function.
Return Values from a Function.
6 SOME USEFUL PHP BUILT-IN FUNCTIONS.
Format a Number.
Round a Number.
Find the Largest or Smallest Number.
Remove Leading and Trailing Blank Spaces.
Change the Case of a String.
Format a String.
Count the Characters or Substrings in a String.
Locate a Substring in a String.
Get a Substring.
Find and Replace Substrings.
Add a Substring to a String.
Using Regular Expressions to Replace Text.
Pad or Repeat a String.
Convert a Character to and from an ASCII Value.
Compare Strings.
Convert a String into an Array.
Send an Email Message.
Send an HTTP Header.
Read Configuration Settings.
Set a Local PHP Configuration Option.
7 USING MYSQL DATABASES.
How a MySQL Database Works.
Send a Query with the mysql Client.
Send a Query with the MySQL Query Browser.
Create, Select, or Remove a MySQL Database.
Define a MySQL Table.
Create and Remove a MySQL Table.
Modify the MySQL Table Structure.
Add a Row of Data to a Database.
Add Data from a Text File to a Database.
Store Incremental Values in a Column.
Retrieve Data from a Database.
Limit Query Execution to Specific Rows with a WHERE Clause.
Retrieve Data from Multiple Tables with UNION.
Retrieve Data from Multiple Tables by Joining Tables.
Update Data in a Database.
Remove Data from a Database.
Query a MySQL Database from a PHP Script.
Display Database Data on a Web Page in a PHP Script.
Handle MySQL Errors.
8 ADMINISTERING MYSQL DATABASES.
Understanding MySQL Accounts.
View Existing Accounts.
Create a MySQL Account.
Change the Password of a MySQL Account.
Add and Remove Privileges.
Change the Name of a MySQL Account.
Remove a MySQL Account.
Stop and Start the MySQL Server.
Using MySQL Logs.
Back Up Data.
Restore Data.
Upgrade MySQL.
9 ADDING HTML FORMS TO A WEB PAGE.
Display an HTML Form.
Add a Text Field.
Add a Multiline Text Area.
Add a Hidden Field.
Add a Dynamic Selection List to a Form.
Add a Date Selection List.
Add Dynamic Radio Buttons.
Add Dynamic Check Boxes.
Create One or More Submit Buttons.
Choose the POST or GET Method for a Form.
Create a Form That Uploads a File.
10 PROCESSING DATA FROM FORMS.
Process Information from a Form.
Display Data from a Form.
Display and Process a Form in One Script.
Check for Blank Fields.
Verify Form Data.
Clean Form Data.
Add Form Data to a Database.
Insert Form Data into a Database.
Update or Remove Database Data.
Process an Uploaded File.
11 MANAGING USER SESSIONS.
Understanding User Sessions.
Send a New Web Page to the Browser.
Add Information to a URL.
Store Information in Cookies.
Store Information in a PHP Session.
Using PHP Sessions without Cookies.
12 OBJECT-ORIENTED PROGRAMMING IN PHP.
Understanding Object-Oriented Programming.
Create and Use an Object.
Set Properties in a Class.
Add Methods to a Class.
Write a Constructor or a Destructor Method.
Using PHP Magic Methods to Get or Set Properties.
Using Inheritance in a Class.
Using Exceptions.
Copy and Compare Objects.
Get Information about Objects and Classes.
Using Abstract Classes.
Using Interfaces.
APPENDIX A: PROGRAMMING EDITORS AND IDES FOR PHP.
APPENDIX B: TROUBLESHOOTING TIPS.
INDEX.
商品描述(中文翻譯)
描述
這本書涵蓋了使用PHP將動態內容添加到網站並將其連接到MySQL數據庫的所有基本知識。它解釋了超過125個關鍵任務,從使用cookie監控網站訪問者的活動到從MySQL數據庫檢索信息,動態創建圖像和網頁,以及處理XML文檔。PHP是一種開源腳本語言,目前在全球超過1600萬個網站上使用;最新版本的MySQL在發布的前幾周內已經被下載了超過100萬次。附帶的網站提供了全文搜索的電子版本以及書中的所有代碼。
目錄
1. 如何使用本書
2. 設置開發環境
3. 學習PHP基礎知識
4. 使用數組