From the course: PHP with MySQL Essential Training: 1 The Basics
Unlock this course with a free trial
Join today to access over 25,300 courses taught by industry experts.
Establish your work area
From the course: PHP with MySQL Essential Training: 1 The Basics
Establish your work area
- [Illustrator] Now that we have a blueprint for application, let's begin creating the project files that we're going to need. I use a standard structure for all of my PHP projects, and it looks something like this. I have the main project directory, here I've just called it basic PHP project, but I would rename it to be whatever the project name was. But then inside of there, I've got two sub-directories or folders. One is called public and one is called private. The idea is that we configure our web server to serve content from the public directory. In other words, public becomes our web document route. If our website was called coolsite.com, then a request for coolsite.com would come to our web server, and our web server would look for files in this public directory. Therefore, everything in public is public. This is the place where we'd put all of the webpages that a user ought to be able to see as well as images, style sheets, JavaScripts, or any other media or assets that our…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.