Hi - is there something that can block an *include* ?

I have a page 'include/sessions.php' that opens amongst other things, opens
a database. If I go to the 'include' directory and click on the page, it
runs without error.

I have another page on the level above it with only this line in it:

include("include/session.php");

When I click on the 2nd page, I get lots of errors, such as:

Warning: main(database.php): failed to open stream: No such file or
directory in /home/..mysite../public_html/include/session.php on line 11.

Why would I get errors including a file, when if I click on the file itself
all is quiet ?

Tim in Ireland.



------------------------ 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