Hello Stephen,
On Thursday, January 09, 2003, Stephen Hovey wrote...


> On Thu, 9 Jan 2003 [EMAIL PROTECTED] wrote:

>> my error:
>>  Fatal error: Failed opening required 'SM_PATHfunctions/global.php'
>> (include_path='.;c:\php\includes') in
>> C:\Inetpub\webpub\squirrelmail\functions\prefs.php on line 14

> I would open the prefs.php file, look at line 14, check it references a
> file that exists in the correct way..  the SM_PATH part sounds like a $ is
> missing - like  

> include "SM_PATHfunctions/global.php";

> instead of

> include "$SM_PATHfunctions/global.php";

  That's not right. SM_PATH is a defined constant. PHP has this nice
  habit that if it doesn't get defined, and you use it, it just passes
  the name you called.  ie, in the above case, the code would look
  like this:

    include(SM_PATH . 'functions/global.php');

  But the output ends up as such:

    SM_PATHfunctions/global.php

  Hence breaking it.  What seems to be happening is a file isn't being
  included in the right order, or SM_PATH isn't being set.

-- 
Jonathan Angliss
([EMAIL PROTECTED])



-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
--
squirrelmail-users mailing list
List Address: [EMAIL PROTECTED]
List Archives:  http://sourceforge.net/mailarchive/forum.php?forum_id=2995
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users

Reply via email to