Login Register






Need some help filter_list
Author
Message
Need some help #1
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.

Reply

RE: Need some help #2
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/showt...s-with-php
[Image: eAwhVeW.png]

Reply

RE: Need some help #3
(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.
http://www.dynamicdrive.com/forums/showt...s-with-php

I will take a look. Thanks.

Reply

RE: Need some help #4
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.

Reply

RE: Need some help #5
(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.
http://www.dynamicdrive.com/forums/showt...s-with-php

I tried their methods and it didn't update each time.

Reply

RE: Need some help #6
Did you check to make sure the folder the files in and the file it's self is 777 on presmissions?
[Image: eAwhVeW.png]

Reply

RE: Need some help #7
(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.

Reply

RE: Need some help #8
(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.
[Image: eAwhVeW.png]

Reply

RE: Need some help #9
(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?

Reply

RE: Need some help #10
(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.
[Image: eAwhVeW.png]

Reply