PHP: require_once library -> failed to open stream
- by matt
I might be a bit confused and may need your help with this.
I'm inside inc/newsletter.php and want to include a library that is inside lib/mailchimp-api-class
How do I refer to this class file?
I thought it should be …
require_once '../lib/mailchimp-api-class/MCAPI.class.php';
However, this doesn't work …
Warning: require_once(../lib/mailchimp-api-class/MCAPI.class.php) [function.require-
once]: failed to open stream: No such file or directory in /Users/myname/htdocs/wr/
wp-content/themes/mytheme/inc/newsletter.php on line 6