By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,985 Members | 1,776 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,985 IT Pros & Developers. It's quick & easy.

simple text editor

P: n/a
Can anyone tell me how I can open a file for editing in a textarea and save
with the changes as they are in the textarea. Do I need javascript for this
too, how does php know where to insert the cursor/data. Thanks for your
help.
Jul 17 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Carved in mystic runes upon the very living rock, the last words of Dave
of comp.lang.php make plain:
Can anyone tell me how I can open a file for editing in a textarea
<?php $thefile = file_get_contents('myfile.txt');?>

<TEXTAREA NAME="TheFile"><?php =$thefile?></TEXTAREA>
save with the changes as they are in the textarea.


http://www.php.net/fopen
http://www.php.net/fputs

--
Alan Little
Phorm PHP Form Processor
http://www.phorm.com/
Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.