newb looking for simple code for site

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
denzel2364
Forum Newbie
Posts: 2
Joined: Wed Oct 03, 2007 4:39 am

newb looking for simple code for site

Post 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
User avatar
phpdevuk
Forum Contributor
Posts: 220
Joined: Mon Jul 04, 2005 5:31 am
Location: UK
Contact:

Post 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.
denzel2364
Forum Newbie
Posts: 2
Joined: Wed Oct 03, 2007 4:39 am

thank you

Post 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
User avatar
phpdevuk
Forum Contributor
Posts: 220
Joined: Mon Jul 04, 2005 5:31 am
Location: UK
Contact:

Post 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.
Post Reply