Say you have 100 domains on the same server. Say those 100 domains use the same PhP code. Say there are a bunch of functions or library that you want to be available to all 100 domains that you created.
One way to do it is to copy the PhP code to all 100 domains. That's how wordpress work right. There is the same code for all wordpress installation.
However, when you want to change code you will have to change code to all 100 domains.
Now, if all 100 domains can access the code in one domain that'll be more manageable.
Is there a way to do so?