Page 1 of 1

Best way to include? Include paths?

Posted: Mon Mar 24, 2008 2:35 pm
by toasty2
I've got a PHP project where (obviously) I need to include other scripts. They are in the same directory. Should I just do include 'file.php' or should I be manipulating the include path or including with a full path?

Re: Best way to include? Include paths?

Posted: Mon Mar 24, 2008 2:50 pm
by www.WeAnswer.IT
Just including 'file.php' is fine. You can change the default include path that PHP uses later, if your include directory moves.