I always get this error when I am trying to require the file "./../includes/footer.php"

This is my code from "index.php"
<?php
session_start();
$site_root_path = "./../";
require($site_root_path."includes/header.php");
$query = "SELECT * FROM category";
$result = mysql_query($query);
while($fetch = mysql_fetch_array($result)) {
echo("<table class='cat'>
<tr class='header'>
<td>".$fetch['cat_name']."</td>
</tr>");
$query = "SELECT * FROM forum WHERE cat_id = '".$fetch['cat_id']."'";
$result_forum = mysql_query($query);
while($fetch_forum = mysql_fetch_array($result_forum)){
echo("<tr>
<td><a href='".$site_root_url."viewforum.php?f="
.$fetch_forum['forum_id']."'>".$fetch_forum['forum_name']."
</a></td>
</tr>");
}
echo("</table>");
}
require($site_root_path."includes/footer.php");
?>
And here is the code from "./../includes/footer.php";
<?php
require($site_root_path."config.php");
?>
</div>
<div id="footer">
© 2007
</div>
</body>
</html>
I tried so many things to fix it, but still comes up with the error. Can someone please help me