Hi
I have recently finished my, so far, largest PHP-script. In total there are about 5000 lines of code, and it does nothing visual actually. I have divided the script into several include-files, each of these containing functions with similar functionality (like createCustomer, updateCustomer, deleteCustomer in one file. createToDo, updateToDo, deleteToDo in another etc). I have one main file which call all these functions.
Is it any point in doing it like this? Should I just have one include-file with all functions, like myproject_functions.inc.php? I’m thinking first of all about readability for later developers/maintainers.
When I started I was thinking that I could use one or more of the include-files in other scripts, but so far I can’t see it happening with these specific files/functions…
Thanks for any advice.
Lubox