PHP Code:<?php include(); ?>whats the diffrencePHP Code:<?php require(); ?>
PHP Code:<?php include(); ?>whats the diffrencePHP Code:<?php require(); ?>
- Dharmil
One is probably going to get cut out in a future version of PHP, like some of the older functions that have newer codes, i might be wrong, (someone who actually knows PHP say something) im just using an educated guess, because my friend says they do this kind of stuff all the time
if its the same thing they might do that but i am not sure if its the same so i am asking
- Dharmil
Well, I would look here, as it looks to tell you what they do, basically. http://builder.com.com/5100-31-5077715.html
^^ Yes, .com.com IS CORRECT, NOT A TYPO
But, I think require happens to require the page's content in the page the "require" tag is in, while include seems to be used more to check authentication, like, (not really code), "if login=true then include ('file.php')", while require would be like, "Copyright require ('ipblicensecheck.ipb.com/8989990980.php')" to require that file to validate, otherwise, the page will not load.
Anyone, correct me if I am wrong... Thanks!
No problem, just glad to help.
So will include be removed from Php 6
no it wil still be there because there are is other things you can do with it like creat a navagation thing with it
- Dharmil
Ok thanks my site is all based in php include.