Page 1 of 1

newb looking for simple code for site

Posted: Wed Oct 03, 2007 4:44 am
by denzel2364
Hi there,

im currently learning php but need a little hand.

What i need is a code that pulls a text document online so that it can be edited online. similar to a File manager that you get on servers for web developing.

1- I need it to get the text,

2- Display the results,

3- able to edit, delete etc,

4- then save the new results

Posted: Wed Oct 03, 2007 5:19 am
by phpdevuk
Well you could look at something like FCKeditor or tinyMCE for a start they are applets which let you edit text in a style similar to word, from there its a simple process of storing the information in a mysql table and then displaying it on a page, if you google for it you could probably find a good example.
There are many free CMS systems out there which do this job already if you are happy to use them. Joomla, openCMS, typeo3 to name a few, you could even go as far as using something like phpnuke or even wordpress or another blog system to manage this if you really wanted.

thank you

Posted: Wed Oct 03, 2007 5:30 am
by denzel2364
hi there, thanks for the reply.

I have got Joomla, but it didnt do what i want it to.

I also want to embed it into a html page if possible so would a script do it all for me. All i need is buttons, edit, and save

Posted: Wed Oct 03, 2007 6:04 am
by phpdevuk
something like tinyMce or FCKeditor will handle being embeded to a page, but you need to write the code for the post page to store the edit in a database with them. Its basically as simple as using a textarea and storing it in a database, but you have the plugin load instead of the textarea, still sends text, just html which can be stored in a database for later use on your display page.