So, I have problem with including the file...
The "forums.php" is in the C:\wamp\www\forum\include
The "functions.php" is in the C:\wamp\www\forum
And now, I want to include "functions.php" into "forums.php" but I got the warning message:
forums.phpWarning: include(../functions.php) [function.include]: failed to open stream: No such file or directory in C:\wamp\www\forum\include\forums.php on line 9
Warning: include() [function.include]: Failed opening '../functions.php' for inclusion (include_path='.;C:\php5\pear') in C:\wamp\www\forum\include\forums.php on line 9
Code: Select all
<?php
if(!defined("FORUM"))
{
exit;
}
include("../functions.php");
...
Please help me, thanks.