PDA

View Full Version : PHP Edit Page Live on Website



hojo
March 23rd, 2009, 01:51 PM
Hey guys,
I tried posting this thread in Client-Side thinking the solution was Javascript. However doing some reading it looks like I need to use PHP. I need to allow a single page on an HTML site to be edited allowing a user to add/edit news.

Things I need to accomplish:
- Allow user to login to a page (even if just with a password)
- Let user edit a single page
- No use of database or CMS
- Self contained, not requiring extensive server technology (now able to alter permissions)

If anyone could point me in the right direction I would most appreciate it. I found this page (onlinetools.org/articles/editablepages_all.php), which sounded like it was what I needed. The problem was that the sample didn't even work, so needless to say my page didn't work either.

Thanks!

mlk
March 23rd, 2009, 05:36 PM
- No use of database or CMS
- Self-contained, not requiring permissions or server to setup and run


As far as I know, if you're not using a third party solution, this is not feasible

hojo
April 5th, 2009, 11:22 PM
I've read a few places that talk about accomplishing this by storing a single password within the PHP and writing to an external txt file. Here's one of them: www.onlinetools.org/articles/editablepages_all.php

The problem I had with them is it wouldn't work for me when hosted, and they wouldn't retain basic formatting like bold and itallic. Otherwise it's exactly what I need, lol.

This would be to replace an HTML page we are updating on our side.

hojo
April 8th, 2009, 04:00 PM
I just need to save news from a post file to a txt on the server. I'll password protect the directory, but I can't seem to get my post file to work.

NeoDreamer
April 10th, 2009, 04:34 PM
Of course it is possible to emulate a database with a text file, but why are you wasting your time with this inefficient and hard to manage solution?