PHP: require_once library -> failed to open stream

Posted by matt on Stack Overflow See other posts from Stack Overflow or by matt
Published on 2012-12-08T17:01:23Z Indexed on 2012/12/08 17:03 UTC
Read the original article Hit count: 348

Filed under:
|
|
|

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';

enter image description here

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

© Stack Overflow or respective owner

Related posts about php

Related posts about class