Click to See Complete Forum and Search --> : php and text files - dynamic content
s1deus
07-14-2005, 01:43 PM
Hello all, I am wondering if loading text files onto web pages is a quick and easy way to update web pages. What are the drawbacks?
I have two sections of a site that wil need to be updated frequently. Problem is, the folks are web avvy, so I am trying to find a simple solution so they can update the site. I thought text files would be pretty simple.
Any thoughts?
TIA
BeachSide
07-14-2005, 01:58 PM
You could go that route I guess. One of the drawbacks would be that it may mess up the layout of the site. Although if you have taken that into consideration it shouldn't be too much of a problem.
One other thing I forgot to mention is that unless they knew html they won't be able to do anything except to type in plain text. So they cannot use chars. such as & or " in their text or put in links or make it bold etc...
madddidley
07-14-2005, 02:05 PM
I would go with a database.
www.maddDidley.com
BeachSide
07-14-2005, 02:12 PM
I would go with a database.
www.maddDidley.com
They could, but then that means creating an entire CMS of sorts.
To be honest, a pretty nifty wysiwyg editor that pretty much performs like Word (which most clients know how to use) is one called wysiwygEZ http://www.wysiwygez.com/
Check it out and if it is in the budget you should seriously consider something like that
Huevoos
07-14-2005, 11:16 PM
I made a javascript that allows people to write html without any knowledge, then a php script opens a file and pastes the code on top of everything……
if you want I can give you the source,
bokeh
07-15-2005, 02:44 AM
Of course you could do it. Maybe something like this:
print nl2br(strip_tags(file_get_contents('file.txt')));
What you don't want to do is allow people who don't know what they are doing adding html to your page as this will wreck validation or worse.
Zipline
07-15-2005, 08:14 AM
I would just give them a plug and play wysiwyg editor like htmlarea. I haven't used the other one mentioned but there are plenty of good free ones out there. The easiest I have worked with is htmlarea. The HTML it outputs is sometimes a bit messy but it will work for what you're trying to do and it is very easy to add to your site.
If you get your client to create their own html files, do you then require them to upload the files to the server via ftp?
How do you control it so that they don't mess everything by overwriting files, deleting files, etc?