Check this if you'll be adding code (or don't like smileys).
To confirm that you are human write OK, uppercase:: (by the way we have several filters in place and we monitor everything, so don't loose time)
shortcuts (IE and NS6 only): hit alt+s to send, alt+p to preview, or alt+r to reset
Topic Summary
Posted by: kenfowler
Posted on: Mar 5th, 2018, 5:26pm
I'm looking for a simple way to display a text file in a table cell when the page loads. The file would be located in a sub-directory of the host account. Is there some HTML I can put in the cell?
Posted by: Support Staff
Posted on: Mar 7th, 2018, 6:19am
You can do this with server side includes, you can include a text from the same folder that contains the HTML files of the website (and from subfolders) You use Insert >HTML >Within text and you write something like
<!--#include virtual="/data.inc"-->
in this case the text file is data.inc in the main web folder (that in some hosting accounts is the root folder, in others is /public_html)
This will work ONLY if server side includes are enabled on the server; how to do this depends on the server. Usually you create (in the same web root folder) a file called .htaccess, or you modify the existing .htaccess file and you add
AddHandler server-parsed .shtml .html .htm .shtm
(this way the web server e.g. Apache, Litespeed, Nginx will read the files it serves and will replace the include virtual with the file pointed.
Posted by: kenfowler
Posted on: Mar 7th, 2018, 8:01pm
Got it. Thanks. -ken-
Posted by: kenfowler
Posted on: Mar 8th, 2018, 4:59pm
Well, it didn't work at my web hosting server, GoDaddy. Called the support line and they said that their Windows support platform for economy hosting doesn't parse includes. I would have to upgrade to a Linux platform and maybe program in PHP.