PHP Upload, edit and save text files

I have been having a lot of trouble with a simple PHP task for school. First, our task is to let the user upload a text file, let them edit it and then they have to be able to save it again. It needs to be in the GET format and the security of the upload doesn’t matter as its not going on a site. I’ve tried googling my problem, but I cant seem to find exactly what I need (im really new to PHP so I don’t know enough to edit what I get). I see how to upload files but I don’t know how to put the uploaded file into a textbox, and then save the edited file. Any help would be greatly appreciated :slight_smile:


Have a look at the fopen function: That will allow you to open, get the text of the file then rewrite back to the file. Fairly straight forward to do. :slight_smile:

Sponsor our Newsletter | Privacy Policy | Terms of Service