Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed Build a Basic PHP Website!
You have completed Build a Basic PHP Website!
Preview
In this video, we’ll convert the home page HTML file into a PHP file and start adding some PHP code.
Update to html
index.php unordered list for our random items should have a class of "items".
<ul class="items">
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
the header that we can include
in all the pages of our library.
0:00
This will make our site easier to maintain
0:01
by giving us one place to
update shared elements,
0:04
like navigation links, instead of needing
to update each page individually.
0:07
Go ahead and launch the workspace
that is on this page or
0:11
download the project
files to work locally.
0:14
Most web servers, including the one in
Workspaces, are configured to display
0:17
a file named index.html or
index.php as the main file by default.
0:21
If you click the preview icon,
a new window opens.
0:28
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up