PHP Includes for Web Content
Uploader Comments (rrphillips)
Top Comments
-
great tutorial!
-
Very good information and the presentation was such that I could understand it and not be put to sleep.
Steve Dougherty
All Comments (32)
-
Subscribed, great videos! :)
-
@phgh1520 i think i love you!!!
-
you are so good teacher!
-
Seriously man, you have all the answers. Subscribed
-
I learned something very valuable today. Solid video, thanks for the good work.
-
great tutorial.. but if you have a web page with the include file in separate folders or directories, the navigation will get an error.. I'm not a php expert.. still looking for an answer..
-
@Krazeel .htm .xhtml .xhtm
-
MATE! If you see this and you can help please reply! I am trying to include something in a different directory... I am in c:\\xampp\htdocs\REG\reg.php and i am trying to include something in c:\\xampp\htdocs\config\config
.php Its telling me invalid stream although i wrote .. include("reg\config\config.php
") but it didnt help!! WHAT TO DO PLEASE ANYONE! -
what can i say! Absolutely clear your explanation ;) Amazing, I loved the lesson. You even made a conclusion to summarize the main steps! 10/10! I agree with MCMdizajn. I didn't fall sleep this time! I feel i actually learnt! So now it's time to give it a try! :P wish me luck! :P Thank youuuuuuuuuuuuuuu!! :D
-
Thats help me a lottttttttttt.......thx dude
This is exactly what I was looking for! I still wonder if it's possible to include files via simple JavaScript, but I think I'm okay with this method as long as I don't mess up my .htaccess file.
I do have one important question though: can you use any other extension than .inc? (like .html)
Krazeel 1 year ago
@Krazeel
Although using a .inc extension is the most common, you can use any text-friendly extension including .html or .txt. I like the idea of using something other than html so that you can keep track of your independent web page files (html) vs your files that are part of a bigger page (inc).
rrphillips 1 year ago