Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #3573 > unrolled thread
| Started by | Beshoo <basheermoro@gmail.com> |
|---|---|
| First post | 2011-10-25 21:06 -0700 |
| Last post | 2011-10-26 09:25 +0200 |
| Articles | 2 — 2 participants |
Back to article view | Back to comp.lang.php
pear include path Beshoo <basheermoro@gmail.com> - 2011-10-25 21:06 -0700
Re: pear include path "Álvaro G. Vicario" <alvaro.NOSPAMTHANX@demogracia.com.invalid> - 2011-10-26 09:25 +0200
| From | Beshoo <basheermoro@gmail.com> |
|---|---|
| Date | 2011-10-25 21:06 -0700 |
| Subject | pear include path |
| Message-ID | <ba93c80f-7340-431c-bb62-845bb7c8c131@i15g2000yqm.googlegroups.com> |
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 !
[toc] | [next] | [standalone]
| From | "Álvaro G. Vicario" <alvaro.NOSPAMTHANX@demogracia.com.invalid> |
|---|---|
| Date | 2011-10-26 09:25 +0200 |
| Message-ID | <j88cm2$hrv$1@dont-email.me> |
| In reply to | #3573 |
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 --
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.php
csiph-web