1) We are creating a SINGLE config file and put it in the includes directory (includes/config.php).
2) If we use functions, they must be included in the directory (include/functions.php).
The two directories are different (includes and include), i need your confirmation on this. I ask because i dont want the application to fall over and fail to find relevent files when you unzip it onto your server.
Please confirm if the directories are the same or two different directories.
Rather put the config.php and function.php in the same folder. Be it include or includes. The app will still work if it is in different folders, you then have to put this at the top of each page:
So it is much better to have it like this:
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning...