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
Return to the default flat view Create a new topic Submit Reply
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:
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
--
[Message index]
 
Read Message
Read Message
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:57:11 GMT 2024

Total time taken to generate the page: 0.03848 seconds