Muutke küpsiste eelistusi

Learning PHP [Pehme köide]

  • Formaat: Paperback / softback, 416 pages, kõrgus x laius x paksus: 233x175x25 mm, kaal: 702 g
  • Ilmumisaeg: 31-May-2016
  • Kirjastus: O'Reilly Media
  • ISBN-10: 1491933577
  • ISBN-13: 9781491933572
Teised raamatud teemal:
  • Pehme köide
  • Hind: 40,82 €*
  • * hind on lõplik, st. muud allahindlused enam ei rakendu
  • Tavahind: 48,02 €
  • Säästad 15%
  • Raamatu kohalejõudmiseks kirjastusest kulub orienteeruvalt 2-4 nädalat
  • Kogus:
  • Lisa ostukorvi
  • Tasuta tarne
  • Tellimisaeg 2-4 nädalat
  • Lisa soovinimekirja
  • Formaat: Paperback / softback, 416 pages, kõrgus x laius x paksus: 233x175x25 mm, kaal: 702 g
  • Ilmumisaeg: 31-May-2016
  • Kirjastus: O'Reilly Media
  • ISBN-10: 1491933577
  • ISBN-13: 9781491933572
Teised raamatud teemal:

If you've wanted to try your hand at PHP but haven't known where to start, thenLearning PHP 7 is the book you need. With attention to both PHP 5.x and the new PHP version 7, it provides everything from an explanation of how PHP works with your web server and web browser to the ins and outs of working with databases and HTML forms. It's also packed with new material to reflect more modern features of PHP, and exciting enhancements with recent releases and the upcoming PHP 7.

Written by the co-author of the popular PHP Cookbook, this book is for intelligent (but not necessarily highly-technical) readers.Learning PHP 7 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.

Topics include:

  • How PHP works with your web browser and web server
  • PHP language basics, including data, variables, logic and looping
  • Working with arrays and functions
  • Working with databases like MySQL, Redis, or MongoDB
  • Accessing APIs over HTTP
  • Writing tests for your code
  • Composer, command-line PHP, PHP frameworks, and features of modern 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 7 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(18)
PHP's Place in the Web World
1(3)
What's So Great About PHP?
4(2)
PHP Is Free (as in Money)
4(1)
PHP Is Free (as in Speech)
5(1)
PHP Is Cross-Platform
5(1)
PHP Is Widely Used
5(1)
PHP Hides Its Complexity
5(1)
PHP Is Built for Web Programming
6(1)
PHP in Action
6(6)
Basic Rules of PHP Programs
12(5)
Start and End Tags
13(1)
Whitespace and Case-Sensitivity
14(1)
Comments
15(2)
Chapter Summary
17(2)
2 Data: Working with Text and Numbers 19(20)
Text
19(10)
Defining Text Strings
20(4)
Manipulating Text
24(5)
Numbers
29(2)
Using Different Kinds of Numbers
30(1)
Arithmetic Operators
30(1)
Variables
31(5)
Operating on Variables
33(1)
Putting Variables Inside Strings
34(2)
Chapter Summary
36(1)
Exercises
37(2)
3 Logic: Making Decisions and Repeating Yourself 39(18)
Understanding true and false
40(1)
Making Decisions
41(2)
Building Complicated Decisions
43(8)
Repeating Yourself
51(3)
Chapter Summary
54(1)
Exercises
55(2)
4 Groups of Data: Working with Arrays 57(24)
Array Basics
57(5)
Creating an Array
58(2)
Choosing a Good Array Name
60(1)
Creating a Numeric Array
60(1)
Finding the Size of an Array
61(1)
Looping Through Arrays
62(6)
Modifying Arrays
68(2)
Sorting Arrays
70(4)
Using Multidimensional Arrays
74(3)
Chapter Summary
77(1)
Exercises
78(3)
5 Groups of Logic: Functions and Files 81(22)
Declaring and Calling Functions
82(1)
Passing Arguments to Functions
83(4)
Returning Values from Functions
87(5)
Understanding Variable Scope
92(4)
Enforcing Rules on Arguments and Return Values
96(2)
Running Code in Another File
98(2)
Chapter Summary
100(1)
Exercises
100(3)
6 Data and Logic Together: Working with Objects 103(16)
Object Basics
104(3)
Constructors
107(1)
Indicating a Problem with Exceptions
108(2)
Extending an Object
110(3)
Property and Method Visibility
113(1)
Namespaces
114(2)
Chapter Summary
116(1)
Exercises
117(2)
7 Exchanging Information with Users: Making Web Forms 119(36)
Useful Server Variables
123(1)
Accessing Form Parameters
124(3)
Form Processing with Functions
127(2)
Validating Data
129(13)
Required Elements
131(1)
Numeric or String Elements
131(3)
Number Ranges
134(1)
Email Addresses
135(1)
<select> Menus
136(2)
HTML and JavaScript
138(3)
Beyond Syntax
141(1)
Displaying Default Values
142(2)
Putting It All Together
144(9)
Chapter Summary
153(1)
Exercises
153(2)
8 Remembering Information: Databases 155(34)
Organizing Data in a Database
156(2)
Connecting to a Database Program
158(2)
Creating a Table
160(2)
Putting Data into the Database
162(6)
Inserting Form Data Safely
168(2)
A Complete Data Insertion Form
170(3)
Retrieving Data from the Database
173(5)
Changing the Format of Retrieved Rows
178(1)
Retrieving Form Data Safely
179(3)
A Complete Data Retrieval Form
182(4)
Chapter Summary
186(1)
Exercises
187(2)
9 Working with Files 189(18)
Understanding File Permissions
189(1)
Reading and Writing Entire Files
190(2)
Reading a File
190(2)
Writing a File
192(1)
Reading and Writing Parts of Files
192(3)
Working with CSV Files
195(3)
Inspecting File Permissions
198(1)
Checking for Errors
199(3)
Sanitizing Externally Supplied Filenames
202(2)
Chapter Summary
204(1)
Exercises
204(3)
10 Remembering Users: Cookies and Sessions 207(24)
Working with Cookies
208(5)
Activating Sessions
213(1)
Storing and Retrieving Information
214(4)
Configuring Sessions
218(1)
Login and User Identification
219(7)
Why setcookie() and session_start() Want to Be at the Top of the Page
226(2)
Chapter Summary
228(1)
Exercises
228(3)
11 Talking to Other Websites and Services 231(18)
Simple URL Access with File Functions
231(5)
Comprehensive URL Access with cURL
236(8)
Retrieving URLs via GET
236(3)
Retrieving URLs via POST
239(1)
Using Cookies
240(3)
Retrieving HTTPS URLs
243(1)
Serving API Requests
244(3)
Chapter Summary
247(1)
Exercises
248(1)
12 Debugging 249(16)
Controlling Where Errors Appear
249(2)
Fixing Parse Errors
251(3)
Inspecting Program Data
254(7)
Adding Debug Output
255(3)
Using a Debugger
258(3)
Handling Uncaught Exceptions
261(2)
Chapter Summary
263(1)
Exercises
263(2)
13 Testing: Ensuring Your Program Does the Right Thing 265(14)
Installing PHPUnit
266(1)
Writing a Test
266(4)
Isolating What You Test
270(3)
Test-Driven Development
273(2)
More Information About Testing
275(1)
Chapter Summary
275(1)
Exercises
276(3)
14 Software Engineering Practices You Should Be Aware Of 279(6)
Source Control
280(1)
Issue Tracking
281(1)
Environments and Deployment
282(1)
Scaling Eventually
283(1)
Chapter Summary
284(1)
15 Handling Dates and Times 285(8)
Displaying the Date or Time
285(3)
Parsing a Date or Time
288(2)
Calculating Dates and Times
290(1)
Working with Timezones
291(1)
Chapter Summary
292(1)
16 Package Management 293(6)
Installing Composer
293(1)
Adding a Package to Your Program
294(1)
Finding Packages
295(1)
Getting More Information on Composer
296(2)
Chapter Summary
298(1)
17 Sending Email 299(4)
Swift Mailer
299(2)
Chapter Summary
301(2)
18 Frameworks 303(8)
Laravel
304(1)
Symfony
305(2)
Zend Framework
307(2)
Chapter Summary
309(2)
19 Command-Line PHP 311(6)
Writing Command-Line PHP Programs
312(1)
Using PHP's Built-in Web Server
313(1)
Running a PHP REPL
314(2)
Chapter Summary
316(1)
20 Internationalization and Localization 317(8)
Manipulating Text
318(2)
Sorting and Comparing
320(1)
Localizing Output
321(2)
Chapter Summary
323(2)
A Installing and Configuring the PHP Engine 325(10)
B Answers to Exercises 335(46)
Index 381
David is an independent consultant focused on technical assistance for growing startups: architecture and strategy for platform development and API design, technical due diligence on both humans and software, and tactical software engineering. He's the author of Learning PHP 5, Essential PHP Tools, and co-author of PHP Cookbook.