0

How does include statement work?

25th Aug 2016, 3:50 PM
Shraddha Behra
4 ответов
+ 1
include statement helps you to include php script from other file (say "your_file.php"). if no such file is found then it shows error but still runs other codes whereas if you use require then the page dies if the file is not found. i hope this helps you
27th Aug 2016, 4:48 PM
Bibek Karki
Bibek Karki - avatar
+ 1
it attach an existing file
15th Oct 2016, 12:19 AM
ultimate
ultimate - avatar
0
Its very easy. in the top of your document you should add this code: <?php include "yourfile.php"?> enjoy.
25th Aug 2016, 10:51 PM
gabriel
0
the include is statement can also be added anywhere in your html code
27th Sep 2016, 9:35 AM
Nkateko Siweya
Nkateko Siweya - avatar