I believe there is a problem with the path to this file. what would be the alternative way to define the path?
require_once(dirname(FILE)."/pay_paypal.loadframework.php");
The physical path to this file is located in my root folder. i.e root/components/com_ad/plugins/payment/pay_paypal.loadframework.php
is it possible to change require_once to include the relative path and how do I do this?
The url I am trying to access is: http://tt.easy2sell.net/components/com_adsman/plugins/payment/pay_paypal.notify.php
It gives error. I have replaced the library folder and includes folder from the original zip files but still cannot access it.
Please see the php code for the pay_paypal.notify.php url
[code]<?php
// no direct access
header(“Status: 200 OK”);
require_once(dirname(FILE)."/pay_paypal.loadframework.php");
$database = & JFactory::getDBO();
require_once(JPATH_ADMINISTRATOR.'/components/com_adsman/tables/addsman.php');
require_once(JPATH_ADMINISTRATOR.'/components/com_adsman/tables/adsuser.php');
require_once(dirname(__FILE__)."/pay_paypal.php");
$payment = new pay_paypal($database);
$payment->ipn($_REQUEST);
?>[/code]
Many thanks in advance.