What is the best way to call the wordpress API from a Zend Powered page outside of the wordpress installation?
I currently have this code on a php page outside of wordpress.
define('WP_USE_THEMES', false);
require('/wordpress/wp-blog-header.php');
I try and run the page and get this error:
Fatal error: Call to undefined method stdClass::set_prefix() in /wordpress/wp-settings.php on line 268
I have been trying to troubleshoot the problem using some of the suggestions on this page. But to no avail. What's the best way to load the wordpress API so I can call it on php pages outside of wordpress?