Dynadot โ€” .com Transfer

Import text via .txt file

Spacemail by SpaceshipSpacemail by Spaceship
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.
GoDaddyGoDaddy
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
•••
Domain Recover
DomainEasy โ€” Live Options
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back