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 Text file retrieval

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 08-12-2003, 09:19 PM THREAD STARTER               #1 (permalink)
NamePros Regular
Join Date: Jun 2003
Location: California
Posts: 245
Alpha is an unknown quantity at this point
 



Text file retrieval


Someone earlier asked me how they could retrieve everything from a text file and put it as the default text for a TEXTAREA form thing. For example, get the text from message.txt and place it in
Code:
<TEXTAREA NAME="textarea" ROWS="5" COLS="40" WRAP="physical">text from text file here</TEXTAREA>
Does anyone know how to do this so it is safe with most versions of PHP?
__________________
--Alpha
Alpha is offline  
Old 08-13-2003, 12:10 AM   #2 (permalink)
Senior Member
Join Date: May 2003
Posts: 2,187
adam_uk is a jewel in the roughadam_uk is a jewel in the roughadam_uk is a jewel in the rough
 


Breast Cancer
fopen?
PHP Code:
<?php
$handle 
fopen ("/home/rasmus/file.txt""r");
?>
then echo $handle, the R denotes that the file is being opened for read only or you can try this way

PHP Code:
<?php include("file.txt"); ?>

adam_uk is offline  
Old 08-15-2003, 01:23 AM THREAD STARTER               #3 (permalink)
NamePros Regular
Join Date: Jun 2003
Location: California
Posts: 245
Alpha is an unknown quantity at this point
 



Ok Thanks
__________________
--Alpha
Alpha is offline  
Closed Thread


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


Liquid Web Smart Servers  
All times are GMT -7. The time now is 08:23 PM.

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