Comment out your include path in your php.ini unless you really want to
globally include paths ....

;include_path='c:\php\includes\'

Just don't use the include_path if you don't really need to.

Or,  make sure the "CURRENT" path "." is in the include like so:

include_path='.\;c:\php\includes\'



And, if you have a main.php page which includes other files, be sure those
other files don't include the same files, or there will be a conflict.

example

class Entity is in file: Entity.inc

class User extends Entity is in class User.inc and requires that class
Entity be visible to class User in order to extend the Entity class.

class Company extends Entity is in class Company.inc and requires the Entity
class be visible in order to extend it.


If you have the main page that needs to use the User class and the Company
class, then you should do this:

<?
#file: main.php

include("Entity.inc");
include("Company.inc");
include("User.inc");

## do code here

?>

If you do this, no conflict will happen, but if you tried to include Entity
in BOTH of the subclasses files, you would encounter an error saying that
the Entity class already exists.

Now, this may not have been your original question, but just in case, I
think this is somewhat related anyway.

Nicole Amashta
www.aeontrek.com
================


"Chris Ogles" <[EMAIL PROTECTED]> wrote in message
000001c1b8d6$4325fe00$[EMAIL PROTECTED]">news:000001c1b8d6$4325fe00$[EMAIL PROTECTED]...
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> I have a an IIS 5.0 runing the ISAPI and have a problem getting my
> includes to work.  The situation is the main php page includes page d
> and e.  Pages d and e both have other includes in them.   When i go
> to the pages now i get an include error like the following:
>
> Warning: Failed opening 'phpbb/includes/constants.php' for inclusion
> (include_path='c:\php\includes\') in
> E:\InetPub\wwwroot\phpbb\common.php on line 113
>
> My php.ini file is pointing to only one directory for includes which
> is the "c:\php\includes".  I have trided to put in the other pathes
> to each of the includes that the other file need, but still get the
> exact same error.  Does anyone have any ideas??
>
> Drop me a line at [EMAIL PROTECTED]
>
> Thanks
> Chris
>
> -----BEGIN PGP SIGNATURE-----
> Version: PGP 7.0
>
> iQA/AwUBPHGR9KNIaumjVcTHEQIcTgCg0TnGt5mbMZfCPwVERgrlmAPav48AoOp8
> EQGLfaWs86YD7VSr8kjTNQRC
> =W09Y
> -----END PGP SIGNATURE-----
>



-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to