FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » pear include path
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
pear include path [message #175791] Wed, 26 October 2011 04:06 Go to next message
Beshoo is currently offline  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 Go to previous message
alvaro.NOSPAMTHANX is currently offline  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
--
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: execute php in template
Next Topic: New start-up seeking a programmer (vesting only!)
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat Nov 30 00:33:38 GMT 2024

Total time taken to generate the page: 0.02365 seconds