Join Kevin Skoglund for an in-depth discussion in this video Embed PHP code on a page, part of PHP Essential Training.
- [Instructor] Now that we have PHP installed,…we're ready to start learning how to use it.…We're going to start by learning how to embed…PHP code in a page because there are…some basic rules that we need to know about.…We already did this in the setup chapter.…We created our first file, which was my_phpinfo.php.…We populated it with just this one little snippet of code.…You may not have completely understood what it was…at the time, you may have just followed along.…That's okay, we're now going to talk about it…and talk about how this works.…Notice that there's the beginning and ending…to this line with a bit of code in the middle.…
I'll drop out the code in the middle…so you can really see the difference.…This is the beginning of opening a PHP tag…and the end, closing PHP.…What we're doing is essentially saying…to the Apache server, 'Hey as you're processing…this document, turn on PHP, start reading…the next little bit as being PHP code'.…Then when it gets to the end and it sees…that question mark with the greater than,…
- What is PHP?
- Embedding PHP code on a page
- Inserting code comments
- Variables, strings, arrays, and Booleans
- If, else, and elseif statements
- While and for loops
- User-defined functions
- Function arguments and return values
- Debugging and troubleshooting
Skill Level Beginner
MVC Frameworks for Building PHP Web Applicationswith Drew Falkman2h 57m Intermediate
1. PHP Overview
2. First Steps
3. Explore Data Types
4. Control Structures: Logical Expressions
5. Control Structures: Loops
6. User-Defined Functions
- 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.