Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 8 of 8
  1. #1
    Senior Coder
    Join Date
    Dec 2004
    Location
    Essex, UK
    Posts
    2,636
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Making a Custom Flat-File CMS

    I want to make a very simple CMS, it will have one purpose - to allow a user to log in and add in a date and an event description. The info will then be displayed on a page.

    There will be lots of events though, so I need a way of storing them, and then displaying them, with the latest date event at the top. Preferably there should be a method of deleting events as well.

    One problem, I don't have access to MySQL so I want to do this with flat-files... I know, eek. But I'm sure it'll be possible (perhaps splitting each date/description with a character such as | and then exploding them?).

    Can anyone give me a guidance on where to start - I really have no idea where to begin!?

    .htpasswd security could suffice but I'd prefer a html login if possible - but I need to know it will be pretty safe!

    I'll be doing it in PHP.

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Do you really have to remake one? There is already a decent one. Its called Cute News. Its free, customizable if you find the right files. It stores its comments in text files.
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #3
    Senior Coder
    Join Date
    Dec 2004
    Location
    Essex, UK
    Posts
    2,636
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Well making it was part of the challenge, but thanks I'll take a look at Cute News anyway and perhaps alter to it to suite my needs.

  • #4
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    I customized it to be valid XHTML/CSS. You can see it in action here.
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #5
    Regular Coder zro@rtv's Avatar
    Join Date
    Feb 2005
    Location
    on the network
    Posts
    433
    Thanks
    0
    Thanked 1 Time in 1 Post
    ive been playin with this a bunch, too...
    dont know if its really helpful, but i had fun playin with it...
    and its super little

    http://www.mylittlehomepage.net/my_little_weblog
    ._-zro
    zro@redtv
    zro.redtv.org

    "If HTML and the Web made all the online documents look like one huge book, RDF, schema, and inference languages will make all the data in the world look like one huge database"
    -Tim Berners-Lee, Weaving the Web, 1999

  • #6
    Senior Coder
    Join Date
    Dec 2004
    Location
    Essex, UK
    Posts
    2,636
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks guys, it does look good but I really don't need all those options, hence me wanting to just create it myself.

    I've created a login system which seems to work well (just a basic PHP one), now I guess I need to create a form which will add the date/event to a text file, and then the page which will somehow read each date/event from the file and display them nicely. How would I do this? Or is it best asking in the PHP section?

  • #7
    Senior Coder
    Join Date
    Jun 2002
    Location
    The Netherlands, Baarn, Ut.
    Posts
    4,252
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Php, Xml

    For PHP-related issues you're probably better off in the PHP forum; for questions on how to create a form and how to process stored data on a web page, the HTML & CSS forum may be the better spot.

    As an alternative to flat files, storing data in XML documents might be an interesting option; I found SitePoint's "No Nonsense XML Web Development With PHP" a rather compelling read (and no, I'm not associated to SitePoint in any way; I had to fork over the cash like the next guy).
    Regards,
    Ronald.
    ronaldvanderwijden.com

  • #8
    Senior Coder
    Join Date
    Dec 2004
    Location
    Essex, UK
    Posts
    2,636
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I can build the form etc OK (already done so), I'm just not too sure on the PHP.

    Interesting you should mention XML, I just found this - http://www.sitepoint.com/article/management-system-php - definately seems quite a good way to do it.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •