So hey guys I'm trying to figure the difference between these two.
include('inc/config.php');
with
include_once 'inc/config';
I try google the question above on Google but nothing direct me. So hope you guys can help me to explain. Thanks .
So hey guys I'm trying to figure the difference between these two.
include('inc/config.php');
with
include_once 'inc/config';
I try google the question above on Google but nothing direct me. So hope you guys can help me to explain. Thanks .
There is one difference between include() and include_once(). If the code from a file has been already included then it will not be included again if we use include_once(). It means that include_once() include the file only once at a time.
Here is another answer see here
But, You are asking very basic question. You have to analyse the question and do some research about it. You should read this before asking question How to ask questions?