Muutke küpsiste eelistusi

Learning PHP 5 [Pehme köide]

  • Formaat: Paperback / softback, 370 pages, kõrgus x laius x paksus: 233x178x19 mm, kaal: 590 g, 1, black & white illustrations
  • Ilmumisaeg: 03-Aug-2004
  • Kirjastus: O'Reilly Media
  • ISBN-10: 0596005601
  • ISBN-13: 9780596005603
Teised raamatud teemal:
  • Pehme köide
  • Hind: 42,39 €*
  • * saadame teile pakkumise kasutatud raamatule, mille hind võib erineda kodulehel olevast hinnast
  • See raamat on trükist otsas, kuid me saadame teile pakkumise kasutatud raamatule.
  • Kogus:
  • Lisa ostukorvi
  • Tasuta tarne
  • Lisa soovinimekirja
  • Formaat: Paperback / softback, 370 pages, kõrgus x laius x paksus: 233x178x19 mm, kaal: 590 g, 1, black & white illustrations
  • Ilmumisaeg: 03-Aug-2004
  • Kirjastus: O'Reilly Media
  • ISBN-10: 0596005601
  • ISBN-13: 9780596005603
Teised raamatud teemal:

PHP has gained a following among non-technical web designers who need to add interactive aspects to their sites. Offering a gentle learning curve, PHP is an accessible yet powerful language for creating dynamic web pages. As its popularity has grown, PHP's basic feature set has become increasingly more sophisticated. Now PHP 5 boasts advanced features--such as new object-oriented capabilities and support for XML and Web Services--that will please even the most experienced web professionals while still remaining user-friendly enough for those with a lower tolerance for technical jargon.

If you've wanted to try your hand at PHP but haven't known where to start, then Learning PHP 5 is the book you need. If you've wanted to try your hand at PHP but haven't known where to start, then Learning PHP 5 is the book you need. With attention to both PHP 4 and the new PHP version 5, it provides everything from a explanation of how PHP works with your web server and web browser to the ins and outs of working with databases and HTML forms. Written by the co-author of the popular PHP Cookbook, this book is for intelligent (but not necessarily highly-technical) readers. Learning PHP 5 guides you through every aspect of the language you'll need to master for professional web programming results. This book provides a hands-on learning experience complete with exercises to make sure the lessons stick.

Learning PHP 5 covers the following topics, and more:

  • How PHP works with your web browser and web server
  • PHP language basics, including data, variables, logic and looping
  • Working with arrays and functions
  • Making web forms
  • Working with databases like MySQL
  • Remembering users with sessions
  • Parsing and generating XML
  • Debugging
Written by David Sklar, coauthor of the PHP Cookbook and an instructor in PHP, this book offers the ideal classroom learning experience whether you're in a classroom or on your own. From learning how to install PHP to designing database-backed web applications, Learning PHP 5 will guide you through every aspect of the language you'll need to master to achieve professional web programming results.
Preface xi
1. Orientation and First Steps
1(15)
PHP's Place in the Web World
1(3)
What's So Great About PHP?
4(2)
PHP in Action
6(5)
Basic Rules of PHP Programs
11(4)
Chapter Summary
15(1)
2. Working with Text and Numbers
16(17)
Text
16(9)
Numbers
25(2)
Variables
27(4)
Chapter Summary
31(1)
Exercises
32(1)
3. Making Decisions and Repeating Yourself
33(15)
Understanding true and false
34(1)
Making Decisions
35(2)
Building Complicated Decisions
37(6)
Repeating Yourself
43(3)
Chapter Summary
46(1)
Exercises
46(2)
4. Working with Arrays
48(21)
Array Basics
48(4)
Looping Through Arrays
52(5)
Modifying Arrays
57(3)
Sorting Arrays
60(3)
Using Multidimensional Arrays
63(3)
Chapter Summary
66(1)
Exercises
67(2)
5. Functions
69(15)
Declaring and Calling Functions
70(1)
Passing Arguments to Functions
71(3)
Returning Values from Functions
74(4)
Understanding Variable Scope
78(4)
Chapter Summary
82(1)
Exercises
82(2)
6. Making Web Forms
84(30)
Accessing Form Parameters
88(2)
Form Processing with Functions
90(3)
Validating Data
93(10)
Displaying Default Values
103(2)
Putting It All Together
105(7)
Chapter Summary
112(1)
Exercises
112(2)
7. Storing Information with Databases
114(37)
Organizing Data in a Database
115(2)
Connecting to a Database Program
117(2)
Creating a Table
119(2)
Putting Data into the Database
121(5)
Inserting Form Data Safely
126(1)
Generating Unique IDs
127(1)
A Complete Data Insertion Form
128(3)
Retrieving Data from the Database
131(5)
Changing the Format of Retrieved Rows
136(2)
Retrieving Form Data Safely
138(3)
A Complete Data Retrieval Form
141(4)
MySQL Without PEAR DB
145(3)
Chapter Summary
148(1)
Excrcises
149(2)
8. Remembering Users with Cookies and Sessions
151(19)
Working with Cookies
152(4)
Activating Sessions
156(1)
Storing and Retrieving Information
157(3)
Configuring Sessions
160(1)
Login and User Identification
161(6)
Why setcookie() and session_start() Want to Be at the Top of the Page
167(1)
Chapter Summary
168(1)
Exercises
169(1)
9. Handling Dates and Times
170(22)
Displaying the Date or Time
170(5)
Parsing a Date or Time
175(1)
Dates and Times in Forms
176(10)
Displaying a Calendar
186(4)
Chapter Summary
190(1)
Exercises
190(2)
10. Working with Files 192(18)
Understanding File Permissions
192(1)
Reading and Writing Entire Files
193(4)
Reading and Writing Parts of Files
197(3)
Working with CSV Files
200(3)
Inspecting File Permissions
203(1)
Checking for Errors
204(2)
Sanitizing Externally Supplied Filenames
206(2)
Chapter Summary
208(1)
Exercises
208(2)
11. Parsing and Generating XML 210(11)
Parsing an XML Document
211(6)
Generating an XML Document
217(2)
Chapter Summary
219(1)
Exercises
219(2)
12. Debugging 221(11)
Controlling Where Errors Appear
221(1)
Fixing Parse Errors
222(4)
Inspecting Program Data
226(3)
Fixing Database Errors
229(1)
Chapter Summary
230(1)
Exercises
230(2)
13. What Else Can You Do with PHP? 232(23)
Graphics
232(1)
PDF
233(1)
Shockwave/Flash
234(2)
Browser-Specific Code
236(1)
Sending and Receiving Mail
236(1)
Uploading Files in Forms
237(2)
The HTML_QuickForm Form-Handling Framework
239(3)
Classes and Objects
242(2)
Advanced XML Processing
244(3)
SQLite
247(1)
Running Shell Commands
248(1)
Advanced Math
249(1)
Encryption
250(1)
Talking to Other Languages
251(1)
IMAP, POP3, and NNTP
251(2)
Command-Line PHP
253(1)
PHP-GTK
253(1)
Even More Things You Can Do with PHP
254(1)
A. Installing and Configuring the PHP Interpreter 255(25)
B. Regular Expression Basics 280(16)
C. Answers To Exercises 296(39)
Index 335
David Sklar is an independent consultant specializing in software development, strategic planning, and technical training. He was a co-founder and the Chief Technology Officer of Student.Com and TVGrid.Com. At both companies, David oversaw the architecture and development of varied systems to deliver personalized dynamic content to users around the world. After discovering PHP as a solution to his web programming needs in 1996, he created the PX (http://px.sklar.com/), which enables PHP users to exchange programs. Since then, he has continued to rely on PHP for personal and professional projects. He is the author of Essential PHP Tools (Apress) and the coauthor of PHP Cookbook (O'Reilly). When away from the computer, David eats mini-donuts, plays records, and likes to cook. He lives in New York City and has a degree in Computer Science from Yale University.