PHP 7 in easy steps

PHP 7 in easy steps

by Mike McGrath
PHP 7 in easy steps

PHP 7 in easy steps

by Mike McGrath

Paperback

$14.99 
  • SHIP THIS ITEM
    Qualifies for Free Shipping
  • PICK UP IN STORE
    Check Availability at Nearby Stores

Related collections and offers


Overview

PHP 7 in easy steps will teach you to code server-side scripts. It begins by explaining how to install a free web server and the PHP interpreter to create an environment in which you can produce your own data-driven server-side web pages. You will learn how to write PHP server-side scripts and how to make MySQL database queries. Examples illustrate how to store and retrieve Session Data, how to provide a Message Board, and how to access Web Services APIs over Hypertext Transfer Protocol.

PHP 7 in easy steps has an easy-to-follow style that will appeal to anyone who wants to begin producing data-driven web pages, as well as to web developers wanting to add server-side interaction to their websites, and the programmer who quickly wants to add PHP to his or her skills set. It will also appeal to the hobbyists who want to begin creating scripts for upload to their own ISP, the student, and to those seeking a career in computing who need a fundamental understanding of server-side programming with PHP.

Product Details

ISBN-13: 9781840787184
Publisher: In Easy Steps Limited
Publication date: 09/27/2016
Series: In Easy Steps
Pages: 192
Product dimensions: 7.20(w) x 8.80(h) x 0.40(d)

About the Author

Mike McGrath gained his extensive knowledge of computer languages while working as a developer contracting to companies around the world. Mike is an established In Easy Steps author with several guides to his credit including: C++; Javascript, Java, Linux, PHP, SQL and Visual Basic Express. He lives in Manchester, U.K.

Table of Contents

1 Getting started 7

Introducing PHP 8

Installing the Abyss server 10

Installing the PHP engine 12

Integrating Abyss and PHP 14

Embedding PHP script code 16

Scripting by the rules 18

Summary 20

2 Storing values 21

Creating variables 22

Quoting strings 24

Producing arrays 26

Sorting arrays 28

Describing dimensions 30

Checking types 32

Defining constants 34

Exploring superglobals 36

Summary 38

3 Performing operations 39

Doing arithmetic 40

Making comparisons 42

Examining conditions 44

Assessing logic 46

Comparing bits 48

Changing values 50

Grasping precedence 51

Summary 52

4 Testing conditions 53

Seeking truth 54

Providing alternatives 56

Switching branches 58

Performing loops 60

Looping while true 62

Breaking from loops 64

Summary 66

5 Employing functions 67

Defining functions 68

Passing arguments 70

Varying parameters 72

Recognizing scope 74

Returning values 76

Calling back 78

Summary 80

6 Manipulating strings 81

Comparing characters 82

Searching text 84

Extracting substrings 86

Changing case 87

Formatting strings 88

Making dates 90

Encoding entities 92

Summary 94

7 Building classes 95

Encapsulating data 96

Creating an object 98

Initializing members 100

Using constructors 102

Inheriting properties 104

Embracing polymorphism 106

Summary 108

8 Handling files 109

Reading files 110

Reading lines 112

Reading characters 113

Writing a file 114

Appending text 116

Handling errors 118

Catching exceptions 120

Summary 122

9 Producing forms 123

Performing actions 124

Checking set values 126

Validating form data 128

Filtering data 130

Sending hidden data 132

Handling submissions 134

Making sticky forms 136

Uploading files 138

Surrounding forms 140

Appending link data 142

Summary 144

10 Preserving data 145

Submitting cookie data 146

Setting cookies 147

Getting cookies 148

Viewing cookie data 150

Submitting session data 152

Setting sessions 153

Getting sessions 154

Viewing session data 156

Summary 158

11 Connecting Databases 159

Making a connection 160

Creating a forum 162

Providing the page 164

Supplying a form 166

Processing messages 168

Confirming success 170

Summary 172

12 Adding Web Services 173

Loading data 174

Getting nodes 176

Getting attributes 178

Including feeds 180

Setting parameters 182

Selecting components 184

Summary 186

Index 187

From the B&N Reads Blog

Customer Reviews