Unstoppable Domains โ€” Get your daily AI drops report

Import text via .txt file

NamecheapNamecheap
Watch
Impact
0
Hi
I was wondering how you can make an area's text to come from a text file(*.txt). I don't know if this is possible with html but I also do have PHP and Coldfusion MX 7 (I would prefer this in HTML if possible but if not PHP is second on my list).
Thanx
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
Unstoppable Domains โ€” AI StorefrontUnstoppable Domains โ€” AI Storefront
include 'file.txt';

/\php
 
0
•••
You can use SSI. On my site, with PHP, on the php page I just put something like

<!--#include file="incl/header.php" -->

I think you can also do this with html as long as the page you are putting it on has a .shtml extension. I am not sure, I have only used this with PHP

Joe
 
0
•••
Thanx it works great!
 
0
•••
gamex said:
You can use SSI. On my site, with PHP, on the php page I just put something like

<!--#include file="incl/header.php" -->

I think you can also do this with html as long as the page you are putting it on has a .shtml extension. I am not sure, I have only used this with PHP

Joe

You can also use the XBitHack mode and "chmod +x" the .html file so you don't have to use the ugly .shtml extension.
 
0
•••
Dynadot โ€” .com TransferDynadot โ€” .com Transfer
CatchedCatched
Escrow.com
Spaceship
Rexus Domain
CryptoExchange.com
Domain Recover
CatchDoms
DomDB
NameFit
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back