Home »
Imported messages »
comp.lang.php »
pear include path
pear include path [message #175791] |
Wed, 26 October 2011 04:06 |
Beshoo
Messages: 1 Registered: October 2011
Karma: 0
|
Junior Member |
|
|
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 [message #175792 is a reply to message #175791] |
Wed, 26 October 2011 07:25 |
alvaro.NOSPAMTHANX
Messages: 277 Registered: September 2010
Karma: 0
|
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: Sat Nov 30 00:33:38 GMT 2024
Total time taken to generate the page: 0.02365 seconds