![]() |
|
Need some help - Printable Version +- Sinisterly (https://sinister.li) +-- Forum: Coding (https://sinister.li/Forum-Coding) +--- Forum: PHP (https://sinister.li/Forum-PHP) +--- Thread: Need some help (/Thread-Need-some-help) |
Need some help - Mafia - 10-12-2013 So I have a web app what I need some help with. I need to add something to the admin CP which is PHP. What I need it to do: 1. Be able to write a new line to a .txt file with a text box. Example: A admin inputs the text into the text box. They press save It then adds it onto a new line in the txt file Thanks Mafia. RE: Need some help - Spartan - 10-12-2013 I don't know much about coding, but you'd have to write a code that could access the sever file and then overwrite the old one after the save, I googled this a little bit and found this link could help you. http://www.dynamicdrive.com/forums/showthread.php?4539-how-do-i-modify-existing-txt-files-with-php RE: Need some help - Mafia - 10-12-2013 (10-12-2013, 08:06 PM)Spartan Wrote: I don't know much about coding, but you'd have to write a code that could access the sever file and then overwrite the old one after the save, I googled this a little bit and found this link could help you. I will take a look. Thanks. RE: Need some help - Ominous - 10-12-2013 You would need a PHP file which would use the fopen() or whatever function to open the file once submitted and use the write function to append the value of the textbox to the text file then close the stream. RE: Need some help - Mafia - 10-12-2013 (10-12-2013, 08:06 PM)Spartan Wrote: I don't know much about coding, but you'd have to write a code that could access the sever file and then overwrite the old one after the save, I googled this a little bit and found this link could help you. I tried their methods and it didn't update each time. RE: Need some help - Spartan - 10-12-2013 Did you check to make sure the folder the files in and the file it's self is 777 on presmissions? RE: Need some help - Mafia - 10-12-2013 (10-12-2013, 08:38 PM)Spartan Wrote: Did you check to make sure the folder the files in and the file it's self is 777 on presmissions? What's your skype? PM it to me. RE: Need some help - Spartan - 10-12-2013 (10-12-2013, 08:39 PM)Mafia_DZ Wrote: What's your skype? PM it to me. Currently do not use skype or any other IM services. RE: Need some help - Mafia - 10-12-2013 (10-12-2013, 08:40 PM)Spartan Wrote: Currently do not use skype or any other IM services. Could you get it? Because I would appreciate your help? RE: Need some help - Spartan - 10-12-2013 (10-12-2013, 08:42 PM)Mafia_DZ Wrote: Could you get it? Because I would appreciate your help? I'm using aschool laptop so I can't Beside I told you I have little to no PHP knowledge, I couldn't help to much. |