My Account Log in

1 option

Beginning PHP : master the latest features of PHP 7 and fully embrace modern PHP development / David Carr, Markus Gray.

Knovel General Engineering & Project Administration Academic Available online

View online
Format:
Book
Author/Creator:
Carr, David, author.
Contributor:
Gray, Markus, editor.
Language:
English
Subjects (All):
PHP (Computer program language).
Physical Description:
1 online resource (214 pages) : illustrations
Edition:
1st edition
Other Title:
Beginning Personal Home Page
Place of Publication:
Birmingham ; Mumbai : Packt, 2018.
System Details:
text file
Summary:
Learn all the fundamentals of PHP with a book that blends theory with practice to build up the skills you need for modern web development. Key Features Brush up on basic PHP 7 syntax and work with variables, data types, arrays, and loops Master advanced concepts like building your own frameworks and creating your own applications Apply your newly learned PHP skills to a variety of real-life business scenarios Book Description PHP is the preferred server-side scripting language for tech giants such as Facebook, Wikipedia, and Tumblr despite full-stack JavaScript gaining popularity with upcoming developers. This is because PHP performs better when dealing with heavy computations on the back end. In this book, you'll learn everything you need to get up and running with the latest version of PHP, including package management with tools such as composer, secure database operations, and a whole host of other best practices that will help you stay a step ahead of traditional programmers. What you will learn Understand the fundamentals of PHP and work with classes and inheritance Learn about database operations and package management with composer Tackle common security concerns and pitfalls using authentication and validation Build effective PHP applications and frameworks for your business needs Who this book is for If you're already familiar with another programming language and want to learn about the fundamentals of PHP programming, you'll find the flow of this book to be an ideal fit. Having a prior understanding of HTML, MySQL, CSS, and JavaScript will be beneficial, but is not mandatory.
Contents:
Intro
Preface
Getting Started with PHP
The Basics
Using PHP to Display "Hello World
Variables and Data Types
Working with Variables
Operators
Comparison Operators
Logical Operators
Mathematical Operators
Combining Variables and Operators
Conditionals
Working with Conditionals
Activity: Building an Employee Salary Calculator
Summary
Arrays and Loops
Arrays
Indexed Arrays
Associative Arrays
Working with Arrays
Converting a String into an Array
Merging an Array into a String
Slicing Arrays
Sorting an Array
Multidimensional Arrays
Including an Array of Hobbies in Our Existing Project
Loops
for Loop
Combining Loops and Arrays
while Loops
Working with the while Function
Do-While Loops
Conversion of a while Loop to a do-while Loop
foreach Loops
Activity: Working with the foreach Loop
Functions and Classes
Functions
Creating a Simple Function
Classes
Activity: Calculate the Monthly Pay of an Employee
Data Operations
Inputting and Outputting Data
Building a Form for Our User List
Connect to a Database
MySQL Basics
Create a Database Table
Insert a Record into the Database
Fetch a Single Row from a Database Table
Fetch Multiple Rows from a Database Table
Update a Record in a Database Table
Delete a Record in a Database Table
Creating an employee Table
Adding Users to a Database
Building a PHP Web Application
Concepts of OOP in a Framework Environment
Namespaces
Namespace App, Controllers, and Use Statements
Defining Classes and Objects Using Namespaces
Methods
Access Modifiers
Structure of a Framework
Activity: Adding Contacts to a Directory
Building a PHP Framework
Setting up a Project Development Environment.
Error Reporting Using Composer and Whoops
Setting up Composer
Activity: Using Composer to Install Dependencies
Configuration Class, Default Classes, and Routing
Loading a View File
Manipulating the Output
Base Controller, Default States, and Routing
Setting up Base Controller, Default States, and Routing
Activity: Exploring the Results
Working with PDO
Creating a Contact Controller and Viewing the Records
Activity: Creating and Executing the Model
Authentication and User Management
Setting Up Paths and Inclusion of Bootstrap
Setting up the Paths and Creating the Absolute Paths to the Files Directory
Creating Layout Files
Inclusion of Bootstrap
Inclusion of Bootstrap and HTML Markup
Adding Security to the Project
Helpers
Authentication
Dashboard
Login
Password Hashing
Implementing Validation in PHP
Password Recovery
Introduction to a Third-Party Dependency PHP Mailer
Building a Password Reset Mechanism for Our Application
Building CRUD for User Management
CRUD
Optional Activity
Building a Contacts Management System
Overview CMS
CRUD, the Contact Application
Inserting CRUD functionality in Our Contacts Application
Activity: Executing our Application
Comments, Joins, and Date Formatting
Creating a View Page and Building the Comments System
Activity: Loading the Application
Index
Blank Page
Blank Page.
Notes:
Includes index.
Description based on print version record.
ISBN:
1-5231-2542-X
1-78953-432-1
OCLC:
1048794707

The Penn Libraries is committed to describing library materials using current, accurate, and responsible language. If you discover outdated or inaccurate language, please fill out this feedback form to report it and suggest alternative language.

My Account

Shelf Request an item Bookmarks Fines and fees Settings

Guides

Using the Library Catalog Using Articles+ Library Account