I have an IIS host that has many websites (+10). I then have a global share PHP directory. Each of those 10 sites can include/require my classes/functions/etc from the global PHP shared directory.

Is this really the right way to share my classes? It overall seems to work good. But my main issue is whenever I move code from one server to another I always manually need to go find the files from my shared function and copy/paste... Its not only more work. but can turn into a mess if I want to edit one of the copied versions and forgot to edit the other.