Home »
Imported messages »
comp.lang.php »
pear include path
Re: pear include path [message #175792 is a reply to message #175791] |
Wed, 26 October 2011 07:25 |
alvaro.NOSPAMTHANX
Messages: 277 Registered: September 2010
Karma:
|
Senior Member |
|
|
El 26/10/2011 6:06, Beshoo escribió/wrote:
> 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.
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.
--
-- http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
-- Mi sitio sobre programación web: http://borrame.com
-- Mi web de humor satinado: http://www.demogracia.com
--
|
|
|
Goto Forum:
Current Time: Wed Nov 27 00:07:29 GMT 2024
Total time taken to generate the page: 0.04986 seconds