Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I make an 'edit file' form in PHP?

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hi,
Now I know how to upload files, and I'd also like to make a form with an ability to edit files. Can somebody there show me the way ?

TIA
tachyonism
 
Are you editing text files?

If so, then this is a simple way.

Have a simple form that submits to a normal file writing script. Make your form input:

<TEXTAREA><?@readfile(&quot;your.file&quot;);?></TEXTAREA>

That will come up with a form with the contents of the file inside the textarea. So when you edit, you submit and it overwrites the old one.

Hope that was what you were after. Dean Owen
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top