I think I did it all right (at least I tried). My directory structure looks like this:
ROOT -> comments -> include.php
ROOT -> comments -> index.php
My index.php file looks like this:
Code:
<?php include './include.php'; ?>
<html>
<head><link rel="stylesheet" href="/comments/template/default/style.css" type="text/css" /></head>
<body><?php echo $c5t_output; ?></body>
</html>
My include.php file looks like this:
Code:
<?php
/**
* GentleSource Comment Script
*
*/
define('C5T_ROOT', '/www//comments/');
include C5T_ROOT . 'comment.php';
?>
I have navigated to both pages and they both have the same two error messages:
Code:
Warning: include(/www//comments/comment.php) [function.include]: failed to open stream: No such file or directory in /www/110mb.com/s/k/y/b/o/m/b/0/skybomb0/htdocs/comments/include.php on line 10
Code:
Warning: include() [function.include]: Failed opening '/www//comments/comment.php' for inclusion (include_path='.:/usr/share/php') in /www/110mb.com/s/k/y/b/o/m/b/0/skybomb0/htdocs/comments/include.php on line 10
As I said before, I am very new to HTML and have pretty much no experience in MYSQL or PHP.