1
I’ve seen several other similar questions here in the O.R., and outside the community, but none were really helpful, some options that in theory should have worked, but somehow didn’t work.
I currently manage a Droplet at Digitalocean where I use the control panel Runcloud, on the server I have 3 sites configured, and 2 use Wordpress and 1 to save files.
/home/runcloud/webapps/
/domain1.com/
/plugins/meu-plugin/...
/domain2.com/
/wp-content/plugins/meu-plugin/...
/domain3.com/
/wp-content/plugins/meu-plugin/...
How could I include a file that is inside the domain1.com
on my two Wordpress sites.
The idea is to create a plugin to request that files, ai instead of sending the plugin to both sites, I just send the updates to the domain1.com
I have tried using the following options:
include($_SERVER['DOCUMENT_ROOT'].'../../plugins/meu-plugin/plugin.php');
$file = '/home/runcloud/webapps/domain1.com/plugins/meu-plugin/plugin.php';
include($file);
in theory it should work, but somehow it didn’t work.
already tried it, I tried to beat drum and nothing seems to work, the files are in the same way of example, I only changed the name of the plugin same because it is extended.
– Vitor Hugo