pear include path

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
Dear All:

I am using PHPmailer for sending a mailAttached
I submit the form target to an iframe and in the target page I include
the "class.phpmailer.php"

but this way gives me an error
Fatal error: require() [function.require]: Failed opening required
'1' (include_path='.:/usr/local/lib/php/pear') in /usr/hom...

but when I get the file from outside (the target index.php?... itself)
it works fine.

any way to solve this?
Many thanks in advance !

Re: pear include path

El 26/10/2011 6:06, Beshoo escribió/wrote:
Quoted text here. Click to load it

There must be something wrong in your code because it's trying to open a
file called "1". Additionally, PEAR's mailer is called "Mail", not
PHPMailer. You simply don't need PEAR.

-- - Álvaro G. Vicario - Burgos, Spain
-- Mi sitio sobre programación web:
-- Mi web de humor satinado:

Site Timeline