PHP Front To Back [Part 9] - Include & Require

preview_player
Показать описание
In this video I will show you how to include a PHP file with PHP or HTML into another file saving you a lot of time and code writing. We will look at include, require and require_once

CODE: Code for this video

VISIT US:

EDUONIX COURSES: Pleas use affiliate links from website below

SUPPORT: We spend massive amounts of time creating these free videos, please donate to show your support:

FOLLOW TRAVERSY MEDIA:
Рекомендации по теме
Комментарии
Автор

I haven't used php for many years, and find this a great review of writing php for me. I even learned something new!

lawrencekeeney
Автор

My new favorite youtube channel. Keep it up

scottyzen
Автор

Hey! Just wanted to thank you for putting your tutorials out there. Top notch quality that inspires me more then any other teacher could.

blucksy
Автор

Again - learning more from you than the last four years of Web Design courses at Uni. Great channel.

christopherlewis
Автор

You are so faster then me.. haha.. I have to watch 7 and 8 first. Bravo man. Even though I am good at PHP I love watching your videos. Respect.

reristavi
Автор

This has been a great course so far; it has helped me a lot. THANK YOU!

juanfernandez
Автор

Really enjoyed this! I appreciate the nuances of how things can be written differently. Awesome series. It really shows me I understand this stuff a bit more than I thought. Great teacher!

busyrand
Автор

Straight to the point, see myself coding my own project by analogy, can’t wait till tomorrow 👍🏾

stephenpeters
Автор

This is really helpful. Allows more organisation

IamTiernO
Автор

Fantastic Teaching! You Sir are a great Professor...

busyrand
Автор

This really blew my mind, been doing this the long way around with javascript before... this is so much better, thank you! :)

Dowmiir
Автор

What plugin do you use to create the html template just from typing "html"?

edit: nvm, i'm using Emmet plugin and i didn't know it had this.

TruIyEpicLulz
Автор

I love these short videos! Cant wait until you include mysql!

envt
Автор

learning php and a wix ad comes on, didn't skip it though.

bishaludash
Автор

Your channel is Awesome!! keep the flow of good videos :)

hwdrift
Автор

Great Tutes! But can i ask, is this method still a standard today or not? do you recommend still using this???

benderbendingrodriguez
Автор

is it working without closing the HTML tags? I wonder.

nahombiniam
Автор

New to PHP, but I created a body.php as well and set a variable for the page name and then included the page.php in each page with the header and footer php files:
<h1>
<?php
$pageName = basename($_SERVER['PHP_SELF'], '.php');
echo ucfirst(strval($pageName));
?>
</h1>

danielluna
Автор

We're getting to the fun part now. :D

melvdev
Автор

<?php include '../inc/header.php'; ?>
this worked for me!

rishabhpokarna