Jump to content


Photo

Sessions & include problems...


  • This topic is locked This topic is locked
1 reply to this topic

#1 xyn

xyn
  • Members
  • PipPipPip
  • Advanced Member
  • 779 posts
  • LocationNorthampton

Posted 07 August 2006 - 07:34 PM

Hey guys.
I have a index and session script in the SAME directory.
basically session.php => check user logged in or not.
index.php => the users area index.

I have linked a config file from another directory,
this worked PERFECT with the session.php. when
i include the "session.php" to the index file i get the following
errors:

Warning: main(includes/config.php): failed to open stream: No such file or directory in ...public_html/en/includes/nav1.php on line 2

Warning: main(includes/config.php): failed to open stream: No such file or directory in ...public_html/en/includes/nav1.php on line 2

Warning: main(): Failed opening 'includes/config.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in ...public_html/en/includes/nav1.php on line 2


#2 xyn

xyn
  • Members
  • PipPipPip
  • Advanced Member
  • 779 posts
  • LocationNorthampton

Posted 07 August 2006 - 07:41 PM

Someone pointed my problem sorry!
- as their in the same directory i forgotte to remove the "includes" :/
sorry to waste time.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users