Chapter 2
Laying the Foundation
IN THIS CHAPTER
Getting your directory structure set up
Creating the app database and adding the required tables
Understanding PHP sessions
Creating your app’s startup files
Making your coding life easier by taking a modular approach
Every great developer you know got there by solving problems they were unqualified to solve until they actually did it.
— PATRICK MCKENZIE
A well-built web app begins with a solid foundation. Sure, when you’ve got a great idea for a web app, it’s always tempting to work on the visible front end first, even if it’s just cobbling together a quick proof-of-concept page. However, party pooper that I am, I’m going to gently suggest that it’s a good idea to nail down at least some of the more fundamental work off the top. Not only does that give you some major items to check off your app to-do list, but having a solid foundation under your feet will help you immeasurably when it comes time to code the rest of your app.
This ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access