Still no luck.
Here's my active.inc.php file:
Code:
<?php
// Set this to the max number of threads to display
$maxthreads = 5;
chdir("forums/admin");
require("config.php");
$db=mysql_connect($servername,$dbusername,$dbpassword);
mysql_select_db($dbname);
$query = "SELECT * FROM thread ORDER BY lastpost DESC LIMIT $maxthreads";
$resultlatest = mysql_query($query,$db);
while ($latest_array = mysql_fetch_array($resultlatest)) {
echo "<FONT SIZE=\"2\" FACE=\"Verdana, Arial, Helvetica, sans-serif\"> °
<A HREF=\"http://www.extremeforums.com/forums/showthread.php?threadid=$latest_array[threadid]\">$latest_array[title]</A></FONT><BR>";
}
?>
It has been uploaded into the forums/admin directory.
I use this line to call the file: include("forums/admin/active.inc.php");
I get this error: Fatal error: Failed opening required 'config.php' (include_path='') in forums/admin/active.inc.php on line 6
Line 6 is the one requesting config.php - I'm perplexed!