07-Apr-2014, 08:53 PM
After spending much time getting the code to work in my HTML site I think I have a working version using the 'Many pages' code. I have five nested sites, only the portal site is in the root folder, the other sites are one level lower on the folder tree.
My root folder test page is http://www.royalnavyresearcharchive.org...._page3.htm
This, and Test_page2.htm, appear to work - several comments are on each page and the database records the two separate URLs. HOWEVER if I put the exact same code into a page that is not in the root folder, but in a sub folder, it fails completely.
Non-root folder test page http://www.royalnavyresearcharchive.org..../BLANK.htm
My .htaccess file contains the following code and is in the root folder:
AddType application/x-httpd-php .html
AddType application/x-httpd-php .htm
php_value allow_url_fopen On
The page pages codeis:
<?php
$cmtx_page_id = "cmtx_url";
$cmtx_reference = "cmtx_title";
$cmtx_path = 'commentics/';
require $cmtx_path . 'includes/commentics.php'; //don't edit this line
?>
What am I missing?
My root folder test page is http://www.royalnavyresearcharchive.org...._page3.htm
This, and Test_page2.htm, appear to work - several comments are on each page and the database records the two separate URLs. HOWEVER if I put the exact same code into a page that is not in the root folder, but in a sub folder, it fails completely.
Non-root folder test page http://www.royalnavyresearcharchive.org..../BLANK.htm
My .htaccess file contains the following code and is in the root folder:
AddType application/x-httpd-php .html
AddType application/x-httpd-php .htm
php_value allow_url_fopen On
The page pages codeis:
<?php
$cmtx_page_id = "cmtx_url";
$cmtx_reference = "cmtx_title";
$cmtx_path = 'commentics/';
require $cmtx_path . 'includes/commentics.php'; //don't edit this line
?>
What am I missing?