NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page Import text via .txt file

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 06-28-2005, 01:01 PM THREAD STARTER               #1 (permalink)
New Member
Join Date: Jun 2005
Posts: 4
ppffffpp is an unknown quantity at this point
 



Import text via .txt file


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
ppffffpp is offline  
Old 06-28-2005, 01:12 PM   #2 (permalink)
Senior Member

Join Date: Apr 2005
Location: .ma.us
Posts: 1,880
DropLister has much to be proud ofDropLister has much to be proud ofDropLister has much to be proud ofDropLister has much to be proud ofDropLister has much to be proud ofDropLister has much to be proud ofDropLister has much to be proud ofDropLister has much to be proud of
 


Baby Health Save a Life Save The Children
include 'file.txt';

/\php
__________________
DropLister is offline  
Old 06-28-2005, 01:12 PM   #3 (permalink)
NamePros Regular
Join Date: Feb 2004
Location: Student @ UConn
Posts: 411
gamex has a spectacular aura aboutgamex has a spectacular aura about
 



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
__________________
Joe
gamex is offline  
Old 06-29-2005, 10:33 AM THREAD STARTER               #4 (permalink)
New Member
Join Date: Jun 2005
Posts: 4
ppffffpp is an unknown quantity at this point
 



Thanx it works great!
ppffffpp is offline  
Old 06-29-2005, 10:57 AM   #5 (permalink)
NamePros Regular
Join Date: Feb 2005
Posts: 343
dabb is on a distinguished road
 



Originally Posted by gamex
You can use SSI. On my site, with PHP, on the php page I just put something like

????: NamePros.com http://www.namepros.com/programming/102520-import-text-via-txt-file.html
<!--#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.
dabb is offline  
Closed Thread

« phpBB help | Rss »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Why can't I get clicks majinbuu1023 Google Adsense 43 04-15-2005 10:24 PM
Basic HTML Tutorial webgear Webmaster Tutorials 8 04-02-2005 03:20 PM
2 Huge Name Forsale Vegas Entertainment Domains For Sale - Make Offer 9 09-21-2004 03:37 PM
cannot find script sickle Web Design Discussion 5 04-03-2004 07:36 PM

Liquid Web Smart Servers  
All times are GMT -7. The time now is 01:09 AM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger