In message <[EMAIL PROTECTED]>, Tim Makins <[EMAIL PROTECTED]> writes >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 ?
When calling an Include files, the include files will include files which have a path relative to the file that is originally calling the includes, so you have to watch your paths. /include/inc/this /include/inc /myfile If file2 in /include/inc calls a file3 in this, it can use the path /this If file1 in /myfile calls file2 in include/inc, then file3 will be searched for in /myfile/this, and it doesn't exist there. > >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/
