E-Book, Englisch, 625 Seiten, eBook
Simon An Introduction to PHP
1. Auflage 2024
ISBN: 979-8-8688-0177-8
Verlag: APRESS
Format: PDF
Kopierschutz: 1 - PDF Watermark
Learn PHP 8 to Create Dynamic Websites
E-Book, Englisch, 625 Seiten, eBook
ISBN: 979-8-8688-0177-8
Verlag: APRESS
Format: PDF
Kopierschutz: 1 - PDF Watermark
Use PHP to enhance your web pages. This book shows you how PHP programming works, and how to write and organize PHP code.
The book starts with steps to download and install a setup for a sample website that will form the basis for upcoming chapters. You start by writing PHP code and learn how to mix it with HTML and manage the code. From there, you will learn about dynamic content, along with a deep dive into form processing and sending email. Saving uploaded data and uploading files is discussed next. You will learn how to configure your PHP project and develop a library. You will then learn how to create an image catalog and manage data on your web page. By the end of the book, you will understand how to work with cookies, sessions, and logging in, followed by an example of creating a simple blog that reiterates the concepts developed in the previous chapters.
After reading this book, you will be able to configure, create, and manage your dynamic website.
What Will You Learn
- Know the basics of programming with the PHP language
- Use PHP to generate dynamic web pages
- Work with SQL databases
- Work with forms to upload text data and binary files
- Use tips and tricks to write clean and maintainable code
Who This Book Is For
Web developers and students learning to develop and maintain PHP code on their website
Zielgruppe
Professional/practitioner
Autoren/Hrsg.
Weitere Infos & Material
Introduction: Setup
·
Downloading and Installing the Sample
·
Setting up the Tools
·
Setting up and Configuring a Web Server
Chapter 1: Writing PHP
·
Preparing PHP files
·
Writing PHP Code
·
Mixing PHP and HTML Code
·
Managing Code
Chapter 2: Dynamic Content
·
Populating Content Dynamically
·
Updating the Navigation Block
·
Implementing Bread Crumbs
Chapter 3: Form Processing and Sending Emails
·
How PHP Handles Form Data
·
Post vs Get Data
·
Processing Submitted Data
·
Email Injection Attacks
·
Form Validation and Handling Errors
·
Persisting Submitted Data
·
Sending Email
·
Switching Page Content
Chapter 4: Preparing and Using the Database
·
Creating the Database and Tables
·
Creating a Database User
·
Working with PDO
Chapter 5: Saving Uploaded Data
·
Understanding SQL Injection Attacks
·
Working with Prepared Statements
Chapter 6: Uploading Files
·
Receiving uploaded files
·
Validating uploaded files
·
Moving and Storing Files
·
Processing File Names
·
Adding to the Database
·
Working with Zipped Files
·
Reading and Writing Files
·
Processing CSV Files
Chapter 7: Configuring your PHP Project and Developing
a Library
·
Using php.ini, .htaccess and .user.ini
configuration files
·
Configuring arbitrary values and using ini files
·
Creating a Library
Chapter 8: Creating a Catalogue
·
Saving Image Files
·
Image Processing
·
Adding to the Database
·
Paging a Catalogue
Chapter 9: Managing Data
·
Creating List Pages
·
Creating Detail Forms
·
Inserting, Updating and Deleting Data
Chapter 10: Cookies, Sessions and Logging In
·
Managing Passwords Safely
·
Storing Cookies
·
Understanding and Using PHP Sessions
·
Logging In and Logging Out
·
Restricting Access to Areas
Chapter 11: Developing a Simple Blog
This is a consolidation chapter which guides the reader
through creating a simple blog. It reiterates the concepts developed in the
previous chapters.




