Comments Demo page

This page shows how comment script works.

Comments page 164 of 266
Click here to add a comment
french
Posted 6240 days ago
ola ola
SRTEVE
Posted 6241 days ago
123
testing
Posted 6241 days ago
test message test message
tester
Posted 6242 days ago
test message
Adrian
Posted 6246 days ago
Akash, I found a better answer from you, you can use include $_SERVER['DOCUMENT_ROOT'] to detect the path to site root and then you add the path relative to site root and that will work from any location in your site.
If you have comments folder in site root then use this include path:

include ($_SERVER['DOCUMENT_ROOT']. '/comments/comments.php');
Adrian
Posted 6246 days ago
Hello Akash, is more like a php limitation, php scripts are included using relative paths:
< ? php include '/comments/comments.php' ; ? >
is correct but if you try:
< ? php include 'www . site . com/comments/comments.php' ; ? >
Then you are actually including only its plain html code.
Akash
Posted 6246 days ago
Great script. I've managed to include it on my website. But a big problem is the fact that you absolutely have to include the relative path and not the absolute path, otherwise comments appear on all pages. I've tried all sorts of workarounds. Nothing doing. Please reply back adrian. Thx.