Muutke küpsiste eelistusi

Joy of PHP: A Beginner's Guide to Programming Interactive Web Applications with PHP and mySQL [Pehme köide]

  • Formaat: Paperback / softback, 248 pages, kõrgus x laius x paksus: 235x191x13 mm, kaal: 431 g
  • Sari: The Joy of PHP 1
  • Ilmumisaeg: 04-Dec-2015
  • Kirjastus: Createspace Independent Publishing Platform
  • ISBN-10: 1522792147
  • ISBN-13: 9781522792147
Teised raamatud teemal:
  • Formaat: Paperback / softback, 248 pages, kõrgus x laius x paksus: 235x191x13 mm, kaal: 431 g
  • Sari: The Joy of PHP 1
  • Ilmumisaeg: 04-Dec-2015
  • Kirjastus: Createspace Independent Publishing Platform
  • ISBN-10: 1522792147
  • ISBN-13: 9781522792147
Teised raamatud teemal:
Third Edition now with bonus chapters.Have you ever wanted to design your own website or browser application but thought it would be too difficult or just didn't know where to start? Have you found the amount of information on the Internet either too daunting or not geared for your skill set or worse-- just plain boring? Are you interested in learning to program PHP and have some fun along the way? If so, then The Joy of PHP by Alan Forbes is the book for you!! Alan starts with some basic HTML so the absolute beginner can catch up quickly and then goes step by step on how PHP works. You start with the easy stuff--like how to create and run simple PHP scripts that modify web pages-- and then build on what you've learned through a series of cohesive (and fun) exercises that carry over from lesson to lesson. As the chapters progress you begin to build a web site for a growing used car dealership business. This approach keeps the material fun and challenging-- and gives what you've learned a context to be relevant. A car dealership needs a constantly changing web site because the inventory of cars is always changing. HTML is not the answer for this kind of web site-- but PHP and mySQL are! Throughout the book you will be working with the web site for the car dealership and adding features and modifying it as the needs of the business (and your knowledge) grow. This writing style reinforces the previous lessons and keeps you engaged in a "real" project -- giving you both a sense of accomplishment and an opportunity to apply what you've learned to a realistic scenario. You are far more likely to retain what you've learned using this approach than just reading dry syntax documentation. The author has an easy and fun style of writing that teaches you PHP in a simple, matter of fact manner while showing you the most common uses of the commands you need to get the job done. This keeps your learning pace quick and uncluttered. If you need it, he also points you to several resources where you can learn more about the other options a PHP function can offer and-- even better--how to read and understand those resources. If you want to learn the PHP language in an easy, enjoyable, well laid out manner and to learn why PHP and mySQL are so powerful and fun to use then buy this book!! Do not buy this book if you are looking for a comprehensive reference of boring PHP syntax. This book does not attempt to cover everything about PHP. What it does do-- and does well-- is take you from being a beginner who isn't even sure what PHP is to someone who knows the sheer joy that only programming dynamic sites can provide. You will become someone who can read, write, and modify PHP scripts and you will be able make your website come alive. Bonus Code All the source code referenced in the book is available for easy download and well organized. You don't have to cut and paste out of Kindle or retype code, unless you want to. There is even a video tutorial showing how to get started. Topics Covered... - Installing and configuring PHP - Introduction to HTML - Basic PHP Syntax - Some Fun Right Away - Editors and Staying Organized - Variables, Numbers, Dates and Strings - Control Structures - How to use a database, such as mySQL - Using PHP and mySQL Together - How to create forms to Display, Add, Edit, and Delete data - Session Variables - Working with Images - PHP File Uploads - PHP Quirks and Tips - Security Considerations This book is NOT the only book you'll ever need to read to master PHP. The book is a gentle introduction to a very rich topic. The hope of the author is to show you that PHP isn't really that scary after all, it is something YOU can do, and it can even bring you joy once you get it.
Introduction 9(4)
Introduction
9(2)
Praise for "The Joy of PHP"
11(2)
What is PHP? 13(4)
Introducing PHP
14(1)
Example
15(1)
A little history
16(1)
Installing and Configuring PHP 17(6)
Introduction
17(1)
Windows Users
17(1)
Using WampServer
18(1)
Mac Users
19(1)
How Do I Know it is Working?
19(2)
Oracle VM Virtual Box
21(1)
Installing for a Web Site
21(1)
Exercise
22(1)
Introduction to HTML 23(12)
Introduction
23(1)
Basic HTML
23(1)
Basic Elements of HTML
24(1)
Tags
24(1)
Nested Tags
25(1)
Required Tags
25(1)
DocType
25(1)
Head
26(1)
Optional Tags
26(1)
Meta Tags
26(1)
Useful Tags
26(2)
Headers
26(1)
DIV
27(1)
Images/Picture
27(1)
Links
27(1)
Lists
28(1)
Exercise
28(1)
HTML Tables
28(2)
Table Example
29(1)
HTML Table Headers
29(1)
HTML Forms
30(5)
The Input tag
31(1)
HTML Form Actions & Methods
32(3)
Basic PHP Syntax 35(2)
Introduction - Basic PHP Syntax
35(1)
Your first PHP-enabled page — Hello World
35(2)
Some Fun Right Away 37(4)
A Countdown Counter
37(2)
Exercise
39(2)
Editors and Staying Organized 41(6)
Editors
41(2)
Microsoft Expression Web
41(1)
phpStorm
42(1)
EditRocket
43(1)
Free Editors
43(1)
Includes
43(4)
Basic example
44(1)
HTML example
44(1)
Code example
45(1)
Best Practices
45(2)
Variables, Numbers, Dates, and Strings 47(12)
Variables
47(1)
Variable Naming Conventions and Best Practices
48(1)
Numbers
49(1)
Basic Arithmetic
49(1)
Common Arithmetic Shortcuts
50(1)
Useful Numeric Functions
50(1)
Strings
50(1)
Useful String Functions
51(1)
Sources of Documentation
51(3)
Exercise
51(1)
How to Interpret PHP.NET documentation
51(2)
Return Value
53(1)
Function Name
53(1)
Parameters
53(1)
Dates
54(3)
Example: Calculating Age in Years
56(1)
Variable Scope
57(2)
Control Structures 59(6)
Introduction
59(1)
if
59(1)
if... else
60(1)
Exercise: Open Hours
60(1)
PHP Switch
61(1)
PHP Looping
61(4)
PHP while
61(1)
PHP for
62(3)
How to use a database, such as mySQL 65(20)
Introduction
65(1)
What are Databases?
65(2)
Getting Started with phpMyAdmin
67(4)
What is phpMyAdmin?
68(1)
Using phpMyAdmin to create a database
68(1)
Introduction to SQL
69(1)
Using phpMyAdmin to create a Table in a database
69(2)
Defining our first table
71(1)
What defines an automobile?
71(1)
Datatypes
72(4)
Numbers
72(1)
Characters
72(1)
Dates
72(3)
Exercise: Create a Table
75(1)
Working with SQL Statements
76(9)
INSERT Statements
76(1)
SELECT Statements
77(2)
WHERE Statements
79(2)
Comparison Operators
81(1)
ORDER BY
81(1)
UPDATE Statements
82(1)
DELETE Statements
83(2)
Using mySQL and PHP Together 85(8)
Introduction
85(1)
Code
85(4)
Code Listing: createdb.php
86(3)
Code Explained: createdb.php
89(4)
Hey, where's the HTML?
92(1)
Creating forms to Display, Add, Edit, and Delete data 93(22)
Introduction
93(1)
Forms that Add Data to a Database
93(6)
A Basic Form
93(1)
HTML Code
93(1)
Form Action
94(1)
PHP Code
94(5)
A Brief Time Out...include files
99(2)
Forms that Display Summary Data
101(1)
Code
101(8)
Code Explained
102(3)
Exercise: Tweaking the SELECT
105(1)
Improving the look of the table with CSS
105(1)
CSS Explained
106(1)
Modifying the form to link to the detail page
107(2)
Forms that Display Detail Data
109(3)
Code
109(2)
Code Explained
111(1)
Forms that Edit Data
112(1)
Forms that Delete Data
112(1)
Code to delete data
113(1)
Code Explained
113(1)
Exercise
114(1)
Session Variables 115(4)
Introduction
115(1)
Sessions
116(1)
Starting a PHP Session
117(1)
Using Session Variables
117(2)
Store a variable
117(1)
Retrieve a variable
117(1)
Checking for a variable
117(1)
Destroying a Session
118(1)
Working with Images 119(4)
Introduction
119(2)
Exercise: Viewing Images
121(1)
Pulling an unknown number of images from a database
121(1)
Exercise: Create a Database Table to store images
121(1)
Exercise: Modify the viewcar.php page to show multiple images
122(1)
Code explained
122(1)
PHP File Uploads 123(8)
Introduction
123(1)
Create an Upload File form
123(1)
Create a Script to Process the Uploaded File
124(1)
Code: ViewCarsAddlmage.php
125(1)
Code Explained
126(5)
PHP Quirks and Tips 131(4)
Introduction
131(1)
Single Quotes vs Double Quotes
131(1)
The Equal Sign
132(2)
Comparison Operators
134(1)
Security Considerations 135(4)
Introduction
135(1)
Balancing Security and Usability
135(1)
SQL Injection
136(2)
Additional Resources
138(1)
Appendix A: Installing PHP on a Website 139(2)
How to install on a Windows Server
139(1)
How to install on a Linux Server
139(2)
Appendix B: Deep Dive into Sessions 141
Introduction
141