I'm needing to include a file from the parent directory, and other sub-directories, into a sub-directory. I've done it before by simply using include('/rootdirectory/file.php'); but now it won't seem to work.
Just wondering how I can do this, thanks.
Here's my exact line:
include('/forums/groups.php');
It's giving me this error(the page still runs):
See Question&Answers more detail:osWarning: include(/forums/groups.php) [function.include]: failed to open stream: No such file or directory in C:xampphtdocsforumslogposts.php on line
Warning: include() [function.include]: Failed opening '/forums/groups.php' for inclusion (include_path='.;C:xamppphpPEAR') in C:xampphtdocsforumslogposts.php on line 3