Best way to include? Include paths?
Moderator: General Moderators
Best way to include? Include paths?
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?
-
www.WeAnswer.IT
- Forum Newbie
- Posts: 24
- Joined: Wed Mar 19, 2008 6:33 pm
Re: Best way to include? Include paths?
Just including 'file.php' is fine. You can change the default include path that PHP uses later, if your include directory moves.