Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Old 05-16-2008, 12:42 AM edit txt file
Extreme Talker

Posts: 189
Trades: 0
how can i get php to read in one text-file, so i can edit it, and when I press submit it adds the data to the end of a different text-file
simster is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 05-16-2008, 01:04 AM Re: edit txt file
Plugin-Developer's Avatar
Weightlifting CS Student

Posts: 504
Name: Nick Ohrn
Trades: 0
fopen
__________________

Please login or register to view this content. Registration is FREE
- Custom plugin development to fit your needs. Plugins available for WordPress and Drupal, among others.
Plugin-Developer is offline
Reply With Quote
View Public Profile Visit Plugin-Developer's homepage!
 
Old 05-17-2008, 03:45 AM Re: edit txt file
Average Talker

Posts: 15
Trades: 0
You can use file handling function like as fopen.
$file=fopen("welcome.txt","w") or exit("Unable to open file!");
welcome.txt is file name. w means write mode, you can also use r to read mode only.
__________________

Please login or register to view this content. Registration is FREE


Free Templates
gazal is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to edit txt file
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.11252 seconds with 12 queries