In message <[EMAIL PROTECTED]>, Tim Makins
<[EMAIL PROTECTED]> writes
>Thanks for answering, Pete. In this case, I'm not sure that's the problem,
>unless I'm not understanding you properly.
>
>In the 'include' directory are these files:
>
>include/constants.php
>include/database.php
>include/form.php
>include/mailer.php
>include/session.php
>include/view_active.php
>
>If I look in session.php, there is the following, (from line 11):
>
>include("database.php");
>
>If I look in database.php, there is the following, (from line 11):
>
>include("constants.php");
>
>The other 2 don't have any 'includes'.
>
>
>If I click on session.php it runs without error, so that should indicate
>that the paths within the page are OK - isn't that true?

>From there, yes. include/session.php includes include/database.php

> Yet my page on the
>next level up 'test1.php' contains only some comments and this line:
>
>include("include/session.php");

Since /test1.php includes /include/session.php, it will now attempt to
include /database.php.  It isn't there, it's in /include/database.php.

Because all includes are now relative to /test1.php, the first calling
program.

The *simple* answer, if you are not normally going to call
/include/session.php by itself, is to change the include within
session.php to include("include/database.php");

And the include in /include/database.php should be 
include("include/constant.php")

All relative to the "main" calling program, which in this case is
/test1.php

>Any more thoughts, anyone?

Still the same ones <G>

>
>Tim in Ireland.

-- 
Pete Clark

http://www.hotcosta.com
http://www.spanishholidaybookings.com




------------------------ Yahoo! Groups Sponsor --------------------~--> 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/HKFolB/TM
--------------------------------------------------------------------~-> 

Community email addresses:
  Post message: [email protected]
  Subscribe:    [EMAIL PROTECTED]
  Unsubscribe:  [EMAIL PROTECTED]
  List owner:   [EMAIL PROTECTED]

Shortcut URL to this page:
  http://groups.yahoo.com/group/php-list 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/php-list/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to