Re: require_once('lib/Mail/mime.php') failing... sometimes
| From: | Justin Patrin | Date: | Fri, 09 Jul 2004 20:22:11 +0000 |
| Subject: | Re: require_once('lib/Mail/mime.php') failing... sometimes | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-13578@lists.php.net to get a copy of this message | ||
Sounds like it can't find the file.
You *should* be including PEAR scripts like this:
require_once('Mail/mime.php');
Without the 'lib/'. If you have 'lib/' it means you haven't set up
your include path correctly. The PEAR packages won't be able to do
their own includes and fail. If your include is failing one one app
but no the other, it's probably the path that it's in or the path that
is being set by the app.
On Fri, 09 Jul 2004 11:27:08 -0700, Josh Burley <jburley@ebuilt.com> wrote:
> Hey all,
>
> Here's a strange once, at the beginning of a function I'm
> including/requiring a bunch of libraries.
>
> One of the lines is "require_once('lib/Mail/mime.php')". This line
> is
> failing and I can't quite tell why. Is there any sort of debug level I
> can turn on to see why it might be failing?
>
> To make things even stranger, this routine is being called from a
> Galaxia Workflow. When it's called directly from a standalone php, the
> exact same require line does not fail.
>
> By "fail" I mean that any lines after the require_once line do not get
> executed.
>
> Any ideas?!
>
> .josh
>
> --
> PEAR General Mailing List (http://pear.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
> !DSPAM:40eee2e060181526918696!
>
>
--
DB_DataObject_FormBuilder - The database at your fingertips
http://pear.php.net/package/DB_DataObject_FormBuilder
paperCrane --Justin Patrin--