[dev] Not connecting to horde from a class

Kshema Vargheese kshemav at aztecsoft.com
Fri Mar 16 14:35:21 UTC 2007


I am trying to connect to horde from inside a class like this.



class ImportMail{



function importMail()

{

 include 'C:\Program Files\Apache
Group\Apache\htdocs\horde\imp\lib\Fetchmail.php';

@define('AUTH_HANDLER', true);

@define('HORDE_BASE', 'C:\Program Files\Apache
Group\Apache\htdocs\horde');

require_once HORDE_BASE . '/lib/core.php';

$registry = &Registry::singleton();

global $conf;

 $auth = &Auth::singleton($conf['auth']['driver']);



}

}



$obj=new ImportMail();



?>

I am getting an error like this,



A fatal error has occurred

imp is not configured in the Horde Registry.

Details have been logged for the administrator.



If u have any idea please help me.






The information contained in, or attached to, this e-mail, contains confidential information and is intended solely for the use of the individual or entity to whom they are addressed and is subject to legal privilege. If you have received this e-mail in error you should notify the sender immediately by reply e-mail, delete the message from your system and notify your system manager. Please do not copy it for any purpose, or disclose its contents to any other person. The views or opinions presented in this e-mail are solely those of the author and do not necessarily represent those of the company. The recipient should check this e-mail and any attachments for the presence of viruses. The company accepts no liability for any damage caused, directly or indirectly, by any virus transmitted in this email.

www.aztecsoft.com


More information about the dev mailing list