My problem is when on the main plugin file i include a php file something like this:
include(WP_PLUGIN_URL . '/wordpress-group-buying/ipn/paypal-ipn.php');
//or
include_once(WP_PLUGIN_URL . '/wordpress-group-buying/ipn/paypal-ipn.php');
//or
require(WP_PLUGIN_URL . '/wordpress-group-buying/ipn/paypal-ipn.php');
//or
require_once(WP_PLUGIN_URL . '/wordpress-group-buying/ipn/paypal-ipn.php');
and on that file i have a call to a WordPress function like add_action('hook,'callback');
and i get Fatal Error: Call to undefined function add_action() ....
now before you say "use if(function_exists('add_action')){" if i use that then it just doesn't work.
the questions:
- what would be the correct way to do that?
- what are the difference between include ,include_once,require and when do i use witch?
thanks for any help!

WP_PLUGIN_URLin your code above :) – One Trick Pony Jan 21 '11 at 4:04