Forum Moderators: coopster
Here you are supposed to have a file named whatever.php at root level (where is located your index file)
Using one or the other method allows you for not worrying about changing the include path within many different directories
It is a better practice to use include_once VS solely include, reason is that
You might create a problem when using files that includes files and could include the same inclusion many times thus generating an error
For example if you use a function to connect with your database such as
db_conn(); you might run in an error that will state “cannot REDECLARE function db_conn, already declared in whatever.php line 3333”
include_once 'included_file.php';