18-Jun-2012, 11:46 PM
My website uses SSI on almost every page to add a topbar and a sidebar. I'd like to do the same with the Commentics comment box.
My pages therefore use the .shtml extension to have an ssi tag where I want the server to add something. But the only files that will have a php type of tag inside them are the ssi files themselves.
My topbar, for example is added with a file named ssi-topbar.htm and I plan to add the Commentics box with a file named ssi-comments.htm.
Does that mean I will only have to add a line of code in my .htaccess file for .htm files?
If that works, I'll put <?php require("pathtofile/myphpfile.php"); ?> inside ssi-comments.htm? But I am confused about the path thing. Should it include http://www.and so forth down to the folder where my commentics files are? What determines how I name myphpfile.php?
I'm reasonably knowledgeable with html and css but this php stuff is brand new to me. Thanks for any help you folks can offer...
Bill
My pages therefore use the .shtml extension to have an ssi tag where I want the server to add something. But the only files that will have a php type of tag inside them are the ssi files themselves.
My topbar, for example is added with a file named ssi-topbar.htm and I plan to add the Commentics box with a file named ssi-comments.htm.
Does that mean I will only have to add a line of code in my .htaccess file for .htm files?
If that works, I'll put <?php require("pathtofile/myphpfile.php"); ?> inside ssi-comments.htm? But I am confused about the path thing. Should it include http://www.and so forth down to the folder where my commentics files are? What determines how I name myphpfile.php?
I'm reasonably knowledgeable with html and css but this php stuff is brand new to me. Thanks for any help you folks can offer...
Bill