Recently i ordered a webserver, because i needed a mail function to work on a PHP Wordpress plugin. So i moved everything from my localhost to the webserver, but for some reason an include doesn't work anymore.
The file i need to include is in: /domains/brentlobbezoo.nl/public_html/wp-content/plugins/dnhadmin/connectie.php
The website i'm including the page in is in: /domains/brentlobbezoo.nl/public_html/wp-content/plugins/dnhadmin/leden/leden-list.inc.php
The include is made simple:
<?php include ('../connectie.php'); ?>
But that doesn't seem to work. If i move the connectie.php into the same folder as where leden-list.inc.php is in and i change the include to include ('connectie.php'), it suddenly does work.
Is there any way to keep the connectie.php in the folder where it is now, but include it in every page?
Thanks in advance!
P.S. I'm aware of the option to use golbal $wpdb; instead of the connection.php, but then i have to refactor some of my sql queries and i don't have that much time left to finish this project