Jump to content

lazytiger

New Members
  • Posts

    1
  • Joined

  • Last visited

    Never

Contact Methods

  • Website URL
    http://lazytiger.com/

Profile Information

  • Gender
    Not Telling
  • Location
    Chicago

lazytiger's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I'm a PHP newbie, and I'm trying to roll my own simple webpage editor based on the following idea: You have a webpage constructed with a template handling the common parts (header, footer, menu) and it calls in a separate file with the content. The content is called based on what is asked for in the URL, i.e., "whatever.com/intro" displays the template and pulls in a file called "intro". On this page is an "edit" link, which replaces the normal content with an editable text box containing the content. Hit "save" and you are taken back to the updated view-only content. Simple enough, but I don't want to use a database. I've already cobbled together a simple CMS that pulls in content from MySQL, and it seems like overkill. Why not just store the content in plain old text files, one per page? I have not been able to find a tutorial DOESN'T use a database to do what I described above. It seems like it should be so simple that I'm getting extremely frustrated that I can't find an example script to learn from. I know enough PHP that I could make it work with a good example to start from, but I haven't a clue how to start it from scratch. Obviously, this is highly insecure. The next step would be to wrap the editing into a logged-in session. Please let me know if you know of any scripts that I could start from, or if you could give me a few clues about how to write it from scratch. Thank you!
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.