Français (Google)
|  |
Español (Google)
|  |
Italiano
| |
1SITE: create a business or personal Website with ease...
|  |
CDFrontEnd: distribute documentation, CD brochures & CD business cards; protect CD (Fra, Ita)
|  |
HyperPublish: create Website, product catalog (also from DB CSV), multimedia CD... (Ita)
|  |
EBooksWriter: edit, pack and protect smart ebooks... (Esp, Ita)
|  |
PaperKiller: create a manual, hypertext, manage electronic documentation
|  |
RoboAuthor: make software helpfile and documentation .CHM .HLP HTML Help
|  |
VisionHost: web space hosting for VV customers
|  |
EasyWebEditor: build your own Web site, create good Internet pages without code or "HTML"
|  |
Français (Google)
Créer une page Internet personnelle ou d'entreprise avec facilité; distribuer de la documentation, des brochures avec CD DVD à démarrage automatique / auto exécutable, protéger CD / DVD; logiciel pour catalogue de produits (database, CSV); modifier, emballer et protéger ebooks; créer un manuel, un hypertexte, gérer la documentation électronique; construire votre site Web, créer des pages...
|  |
Español (Google)
Crear un negocio o sitio web personal con facilidad; distribuir la documentación, manuales, folletos y CD / DVD tarjetas de visita; proteger CD; crear catálogo de productos (database, CSV), editar, empaquetar y proteger ebook; crear un manual, hipertexto, gestión de documentación electrónica y ayuda CHM y HLP; construir su propio sitio Web, crear páginas de Internet...
|  |
|
|
Author |
Topic: Read Text File when page loads (Read 1398 times) |
|
kenfowler
YaBB Newbie

 I love Visual Vision!
Posts: 5
|
 |
Read Text File when page loads
« on: Mar 5th, 2018, 5:26pm » |
Quote Modify
|
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?
|
|
Logged |
|
|
|
Support Staff
YaBB Administrator
    
 Meow!

Gender: 
Posts: 919
|
 |
server side inc Re: Read Text File when page loads
« Reply #1 on: Mar 7th, 2018, 6:19am » |
Quote Modify
|
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.
|
|
Logged |
|
|
|
kenfowler
YaBB Newbie

 I love Visual Vision!
Posts: 5
|
 |
Re: Read Text File when page loads
« Reply #2 on: Mar 7th, 2018, 8:01pm » |
Quote Modify
|
Got it. Thanks. -ken-
|
|
Logged |
|
|
|
kenfowler
YaBB Newbie

 I love Visual Vision!
Posts: 5
|
 |
Re: Read Text File when page loads
« Reply #3 on: Mar 8th, 2018, 4:59pm » |
Quote Modify
|
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.
|
|
Logged |
|
|
|
|
|
|