Brandon_R Posted August 24, 2009 Share Posted August 24, 2009 Hello guys i was wondering if this was possible. Inputting the value of a text file into a textarea based on a txt file that a user can upload just to be read then deleted (not stored in the server). If so could you post me to some guides? i've tried searching. Brandon_R Link to comment https://forums.phpfreaks.com/topic/171585-is-this-possible/ Share on other sites More sharing options...
obay Posted August 24, 2009 Share Posted August 24, 2009 that's doable. here's an algorithm. you write the code 1. do an fopen() to open the file 2. do fread()s then echo the result inside your <textarea></textarea> 3. unlink() the file to delete it Link to comment https://forums.phpfreaks.com/topic/171585-is-this-possible/#findComment-904825 Share on other sites More sharing options...
Brandon_R Posted August 24, 2009 Author Share Posted August 24, 2009 Thanks, i might need to use ajax because the textarea and the upload form are on the same page and i want to do it without reloading. Brandon_R Link to comment https://forums.phpfreaks.com/topic/171585-is-this-possible/#findComment-904848 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.