Re: require_once('lib/Mail/mime.php') failing... sometimes
| From: | Josh Burley | Date: | Fri, 09 Jul 2004 20:26:17 +0000 |
| Subject: | Re: require_once('lib/Mail/mime.php') failing... sometimes | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-13580@lists.php.net to get a copy of this message | ||
I'll take a look at where the path's are set up for the Galaxia/TikiWiki interface.
Changing the line to 'Mail/mime.php' did not help, unfortunately.
.josh
Justin Patrin wrote:
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'mincluding/requiring a bunch of libraries.One of the lines is "require_once('lib/Mail/mime.php')". This line isfailing 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 aGalaxia 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 getexecuted.Any ideas?!.josh -- PEAR General Mailing List (http://pear.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php !DSPAM:40eee2e060181526918696!