Easy PHP Projects: Single-Serving Sites
3h 2mBeginner2015-12-15
Authors

Kevin Skoglund
Founder of NovaFabrica
Course details
Sometimes simple websites are more effective than complex ones. In this course, discover the beauty and power of single-serving sites. Easy PHP Projects is a series of small-scale PHP projects targeted at PHP beginners as well as experienced developers looking to practice their skills. Each of the projects in this installment results in a stand-alone, single-page website. Kevin Skoglund shows how to determine a user's IP address and browser details, parse and compare dates, generate dynamic page styles, and create sentences from randomized fragments.
Learning objectives
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
Learning objectives
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
Skills covered
PHPProgramming LanguagesOpen SourceSoftware DevelopmentOne-Off
Concepts
0. Introduction
- 01 - Welcome
- 02 - How to use the exercise files
- 03 - Introducing single-serving sites
1. What is My IP Address
- 04 - Find an IP address with PHP
- 05 - Understanding proxy servers
- 06 - Find forwarded IP addresses
- 07 - Validate an IP address
- 08 - Finish up
2. Browser Mirror
- 09 - Display a full request report
- 10 - Decode request time
- 11 - Browser detective
- 12 - Decode browser details
- 13 - Finding browser window size
3. Is it New Years Yet
- 14 - Work with date and time in PHP
- 15 - Is it Friday yet
- 16 - Is this a leap year
- 17 - Add a form for year selection
- 18 - Convert a time string to a timestamp
- 19 - Is Star Wars out yet
- 20 - Add a form for episode selection
4. Random Data and Styling
- 21 - Randomize data in PHP
- 22 - Random color squares
- 23 - Random text styling
- 24 - Delete elements from arrays
- 25 - You are awesome
5. Random Phrase Generator
- 26 - Introducing PHP array rand
- 27 - Generate sentence parts
- 28 - Generate complex sentences
- 29 - Increase complexity
Conclusion
- 30 - Next steps