Join Kevin Skoglund for an in-depth discussion in this video Is Star Wars out yet?, part of Easy PHP Projects: Single-Serving Sites.
- Now that we understand how to use string to time,…let's use it to build a single serving site…that will answer the question,…is Star Wars out yet?…You can see that I've already got…a starter template for us in my Sites directory.…isstarwarsoutyet.php…and I've even already even loaded it up in the browser.…As you can see it's just got some basic formatting in it.…Let's open it up…and you can see here's the title,…Is Star Wars Out Yet.…I got the same CSS we've been using in other chapters…and then down here it just says…Is Star Wars Out Yet…and I've left in my timezone setting.…
It's always a good idea to make sure…that you have a timezone set…when we're working with dates and times.…If you'll recall,…the best place to set that is in your php.ini file…but if you haven't done that,…if you can't do that for some reason…then you can also just set it here like I've done.…Alright so now let's get down to the meat of this.…How are we going to figure out…when the Star Wars movies are out?…Well, I'm going to paste in a handy list here…
- 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
Skill Level Beginner
1. What is My IP Address?
2. Browser Mirror
3. Is it New Years Yet?
4. Random Data and Styling
5. Random Phrase Generator
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.