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!
@gmwebprofiler473011 жыл бұрын
Best explained tutorials seen so far! Good work Alex and thank you so so much!
@RandomlyEssential12 жыл бұрын
OMG thanks! Now I can just change one file rather than 80+ pages if I want to change something!
@johncharalambous232810 жыл бұрын
Say it! 0:20 "Every fucking time" *changes to* for every page
@shritejchavan62228 жыл бұрын
And I was searching through the comments to make sure that I wasn't the only one noticing it..
@dhnyshshah60217 жыл бұрын
it is 0:22 you spud
@Stike96official11 жыл бұрын
I wish I knew about this include function before, it is going to be so helpful.
@ojbrom13 жыл бұрын
Good good been tru 1-42 many to go. Taking notes thx Alex
@兴宣大院君-h4s8 жыл бұрын
still 160 more to go........
@swapnilsonsurkar21368 жыл бұрын
actually :0
@JohnvdVaart12 жыл бұрын
its a naming choice, so its easy to identify the type of php file. Example: MyClass.class.php MyInterface.int.php
@godfreytan100111 жыл бұрын
Thank you Alex. I have learnt so much...
@lookintothesky12312 жыл бұрын
Im going to find this SOOO USEFUL for my project
@arnold94489 жыл бұрын
Why do you use single brackets ' ' instead of " "?
@YuZhengwen10 жыл бұрын
lifesaver! i was copy/pasting template
@H0b0Gamers12 жыл бұрын
Awsome exactly what i needed!
@MadridIsta712 жыл бұрын
This is very helpful, thank you very much
@ichkerim10 жыл бұрын
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.
@raycoustum5 жыл бұрын
What i do not understands is if the rquire method can actually instance a remote class on another PHP document
@lindhe13 жыл бұрын
@paulceltics I believe that it's just a detail to help your workflow.
@JosephEaorle12 жыл бұрын
so the header would be removed from any css that is applied to it on the original page right?
@hasannemir99 жыл бұрын
Help full tutorials , Thanks
@sinisbad123512 жыл бұрын
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?
@OMGNoNamesAvailLOL11 жыл бұрын
The extention doesn't affect the php itself at all it's like a comment to remind people the file will be included.
@gary12xxx11 жыл бұрын
very good tuts man!
@SKtheGEEK8 жыл бұрын
is it must to create the header file with extension .inc ????
@jasbirsingh17298 жыл бұрын
No you just have to name the file with extension .php
@xXSellizeXx12 жыл бұрын
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-ke2qi10 жыл бұрын
thank you thats well job
@manojnilanga8867 жыл бұрын
can u please set the order again.
@trishunramgoolam88379 жыл бұрын
Nice! , thanks alex
@TakingItCasual13 жыл бұрын
It won't let me use headers from another file.
@shubhamrajpurohit473612 жыл бұрын
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?..?
@TakingItCasual13 жыл бұрын
@TakingItCasual Folder, I meant.
@paulceltics13 жыл бұрын
what is the inc for?
@jphilfiker12 жыл бұрын
Inheritance, the non-object kind.
@fakecheese9413 жыл бұрын
@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 ;)
@Dalwanaage13 жыл бұрын
nice tutorial.
@alexandershekhtman77010 жыл бұрын
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
@alexandershekhtman77010 жыл бұрын
both produce errors which you eventually need to catch. its just a matter of semantics--a big error or a bigger error
@TheMightyWolve7 жыл бұрын
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