Please help: Require_once or Includes relative path

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.

Appears that issue is at the page ‘/public_html/tt/includes/framework.php’ . The path to ‘/libraries/import.php’ is not defined properly. Please check ‘framework.php’ file.

Sponsor our Newsletter | Privacy Policy | Terms of Service