I have to include external NUSOAP library in my custom made extension. What steps do I have to take as PHP's require_once() or include() doesn't work in Magento.

1 Answer 1


please include your nusoap.php inside lib folder, (for example ) :


so it can be called with this code part :

require_once Mage::getBaseDir().DS.'lib'.DS.'nusoap'.DS.'nusoap.php';

$client = new nusoap_client(...);

hope this help

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.