Join Kevin Skoglund for an in-depth discussion in this video How to use the exercise files, part of Easy PHP Projects: Single-Serving Sites.
- Some users will have access to the Exercise Files that are used throughout this title. The Exercise Files are arranged by Chapter and by movie, and you can find the Exercise Files that correspond to the movie that you're watching by first looking for the Chapter number and then, the movie number. You'll want to copy the contents of the Exercise Files folder into your web document root directory. That is the directory which your web server uses by default. If you're on a Mac configured like mine, that's going to be inside your main user directory inside the Sites directory.
If you're using a package like MAMP or WAMP, they may be configured to use a special directory of their own. Once you've identified your web document root directory, you can copy over the File. It's always a good idea to make a copy of the Exercise Files so that you still have the original to refer back to if you make changes. I will option drag the File in order to create a new copy. Once you have the Files in place, you'll be able to work right along with me. If you do not have the Exercise Files that accompany this tutorial, you can still follow along with me.
Everything that's in the Exercise Files will be shown during the tutorial. Remember that you can pause the video or rewind if you need more time to copy something down.
- Finding and validating an IP address with PHP
- Parsing the HTTP request for browser details
- Comparing dates and times in PHP
- Randomizing data with PHP
- Styling page content dynamically
- Generating random sentences