Beginner PHP Tutorial - 42 - include and require Functions

  Рет қаралды 137,243

thenewboston

thenewboston

Күн бұрын

Пікірлер: 57
@jasonbudd06
@jasonbudd06 12 жыл бұрын
Of the first 42 tutorials in this playlist, this is the most practical one for me so far. Global changes to a website can be so easy now. No more cutting and pasting html to every page. Thanks!
@gmwebprofiler4730
@gmwebprofiler4730 11 жыл бұрын
Best explained tutorials seen so far! Good work Alex and thank you so so much!
@RandomlyEssential
@RandomlyEssential 12 жыл бұрын
OMG thanks! Now I can just change one file rather than 80+ pages if I want to change something!
@johncharalambous2328
@johncharalambous2328 10 жыл бұрын
Say it! 0:20 "Every fucking time" *changes to* for every page
@shritejchavan6222
@shritejchavan6222 8 жыл бұрын
And I was searching through the comments to make sure that I wasn't the only one noticing it..
@dhnyshshah6021
@dhnyshshah6021 7 жыл бұрын
it is 0:22 you spud
@Stike96official
@Stike96official 11 жыл бұрын
I wish I knew about this include function before, it is going to be so helpful.
@ojbrom
@ojbrom 13 жыл бұрын
Good good been tru 1-42 many to go. Taking notes thx Alex
@兴宣大院君-h4s
@兴宣大院君-h4s 8 жыл бұрын
still 160 more to go........
@swapnilsonsurkar2136
@swapnilsonsurkar2136 8 жыл бұрын
actually :0
@JohnvdVaart
@JohnvdVaart 12 жыл бұрын
its a naming choice, so its easy to identify the type of php file. Example: MyClass.class.php MyInterface.int.php
@godfreytan1001
@godfreytan1001 11 жыл бұрын
Thank you Alex. I have learnt so much...
@lookintothesky123
@lookintothesky123 12 жыл бұрын
Im going to find this SOOO USEFUL for my project
@arnold9448
@arnold9448 9 жыл бұрын
Why do you use single brackets ' ' instead of " "?
@YuZhengwen
@YuZhengwen 10 жыл бұрын
lifesaver! i was copy/pasting template
@H0b0Gamers
@H0b0Gamers 12 жыл бұрын
Awsome exactly what i needed!
@MadridIsta7
@MadridIsta7 12 жыл бұрын
This is very helpful, thank you very much
@ichkerim
@ichkerim 10 жыл бұрын
Thanks, i'd like to know, how can i position those pages like divs in CSS, I have: index.php, header.php, content.php, sidebar.php I styled content and sidebar using (position: relative) they work fine in HTML without including them in separate pages. but when included and browsing, they overfloat when zooming the page.
@raycoustum
@raycoustum 5 жыл бұрын
What i do not understands is if the rquire method can actually instance a remote class on another PHP document
@lindhe
@lindhe 13 жыл бұрын
@paulceltics I believe that it's just a detail to help your workflow.
@JosephEaorle
@JosephEaorle 12 жыл бұрын
so the header would be removed from any css that is applied to it on the original page right?
@hasannemir9
@hasannemir9 9 жыл бұрын
Help full tutorials , Thanks
@sinisbad1235
@sinisbad1235 12 жыл бұрын
Guys! I was wondering, how do you use APIs or how do you implement them in your codes so that you can use the functions inside the APIs?
@OMGNoNamesAvailLOL
@OMGNoNamesAvailLOL 11 жыл бұрын
The extention doesn't affect the php itself at all it's like a comment to remind people the file will be included.
@gary12xxx
@gary12xxx 11 жыл бұрын
very good tuts man!
@SKtheGEEK
@SKtheGEEK 8 жыл бұрын
is it must to create the header file with extension .inc ????
@jasbirsingh1729
@jasbirsingh1729 8 жыл бұрын
No you just have to name the file with extension .php
@xXSellizeXx
@xXSellizeXx 12 жыл бұрын
I saw an .inc.php script in somebody's source code; what is the .inc for? Is it it just another php script, or is it somethinkg else?
@Muhammad-ke2qi
@Muhammad-ke2qi 10 жыл бұрын
thank you thats well job
@manojnilanga886
@manojnilanga886 7 жыл бұрын
can u please set the order again.
@trishunramgoolam8837
@trishunramgoolam8837 9 жыл бұрын
Nice! , thanks alex
@TakingItCasual
@TakingItCasual 13 жыл бұрын
It won't let me use headers from another file.
@shubhamrajpurohit4736
@shubhamrajpurohit4736 12 жыл бұрын
can we user it like this require "html.html" or die('file not found'); some 1 please reply i tried but dint work can we pass our own errors for the require method?..?
@TakingItCasual
@TakingItCasual 13 жыл бұрын
@TakingItCasual Folder, I meant.
@paulceltics
@paulceltics 13 жыл бұрын
what is the inc for?
@jphilfiker
@jphilfiker 12 жыл бұрын
Inheritance, the non-object kind.
@fakecheese94
@fakecheese94 13 жыл бұрын
@Muse94Muse Nope, there's no difference as far as I know. As long as you end your file with .php, the server won't care about what you call it before. It will read it as a php-file anyways ;)
@Dalwanaage
@Dalwanaage 13 жыл бұрын
nice tutorial.
@alexandershekhtman770
@alexandershekhtman770 10 жыл бұрын
the use for that is not just templates but to hide variables and functions away from diff php files. but i still don't see the diff btw this and require
@alexandershekhtman770
@alexandershekhtman770 10 жыл бұрын
both produce errors which you eventually need to catch. its just a matter of semantics--a big error or a bigger error
@TheMightyWolve
@TheMightyWolve 7 жыл бұрын
for what reason would you want to hide variables and functions though? Isn't PHP server side? I see the include function simply as a time saving function
@evothepker
@evothepker 13 жыл бұрын
Nice
@crystall_sh
@crystall_sh 5 жыл бұрын
Thank you
@dennis8147
@dennis8147 7 жыл бұрын
3:24 ...incluuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuded...
@johnjacob9225
@johnjacob9225 11 жыл бұрын
too good
@camelCaseFTW
@camelCaseFTW 11 жыл бұрын
damn straight :D
@jphilfiker
@jphilfiker 12 жыл бұрын
requires it to die and exit...... who wrote this language again?
@AlekVideos
@AlekVideos 12 жыл бұрын
If you check the top comments, you'll see :P But anyways, as already said, it's: "just a detail to help your workflow"... There you go! ;)
@anbofeng6882
@anbofeng6882 11 жыл бұрын
this lecture 42 was really confusing,....
@Coderama
@Coderama 4 жыл бұрын
that windows 10 error sound
@MarkVizcarra
@MarkVizcarra 12 жыл бұрын
OHHH NO.. I killed another page.. WHY!!!
@gary12xxx
@gary12xxx 11 жыл бұрын
No it actually exists.
@j2i2dity2r2thore
@j2i2dity2r2thore 12 жыл бұрын
bookmark
@ck0024
@ck0024 6 жыл бұрын
42 down
@camarenalove
@camarenalove 13 жыл бұрын
"doesntexist.php doesnt exist" say whaaaaaaa!!! :O
@dasten123
@dasten123 12 жыл бұрын
lol this text editor really sucks :O just get Notepad++ OMG! lol
Beginner PHP Tutorial - 43 - include_once and require_once
4:37
thenewboston
Рет қаралды 107 М.
小丑教训坏蛋 #小丑 #天使 #shorts
00:49
好人小丑
Рет қаралды 54 МЛН
PHP include and require Constructs Tutorial
11:32
Clever Techie
Рет қаралды 4,4 М.
Beginner PHP Tutorial - 31 - Functions with Arguments
6:17
thenewboston
Рет қаралды 150 М.
Сборник Эксклюзивов 2024 - Уральские Пельмени
1:33:24
Уральские Пельмени
Рет қаралды 1,5 МЛН
Russian secret base uncovered / Russia abandons the region
14:15
NEXTA Live
Рет қаралды 858 М.
7 Outside The Box Puzzles
12:16
MindYourDecisions
Рет қаралды 215 М.
Beginner PHP Tutorial - 32 - Functions with a Return Value
6:49
thenewboston
Рет қаралды 153 М.
PHP - include and require
10:34
Steve Griffith - Prof3ssorSt3v3
Рет қаралды 1,3 М.