Everybody! This is important. In a few days, these forums will be moving over to using the totally sweet Discourse platform. To ensure this migration happens smoothly with no loss of content, these forums are currently in a read-only mode. I do apologize for the inconvenience.

There is never a good time to turn the forums off for an extended period of time, but I promise the new forums will be a billion times better. I'm pretty sure of it.

See you all on the other side in a few days, and if you have any (non-technical) questions, please e-mail me at kirupa@kirupa.com. For technical questions, try to find a tutorial that corresponds to what you are looking for and post in the comments section of that page.

Cheers,
Kirupa

Results 1 to 15 of 15

Thread: [php] forum w/ ANY database - using text files only :)

  1. #1

    [php] forum w/ ANY database - using text files only :)

    hi

    lately i've done forum for my group @ university - i'll post the source code
    you are free to give suggestions, report bugs etc.

    main functions:

    - bbcode
    - attaching files to posts
    - pms
    - customisable (?) profile

    functions to be added ASAP:

    - search

    ALL'S BEEN BUILT FROM SCRATCH AND IT'S ILLEGAL TO USE IT OR IT'S ANY PART WITHOUT MY PERMISSION

    cheers

  2. #2
    Using only text files ? Congratulations if you did, because that's one hellova job.
    Wait, what?

  3. #3
    i did 2 versions

    you can see the login screen @ www.kapi.pl

  4. #4
    What possibly can we learn from the login screen???
    CyanBlue / Jason Je / Flash Developer
    http://CyanBlue.FlashVacuum.com
    http://www.FlashVacuum.com

  5. #5
    763
    posts
    Registered User
    Yea seriously, at least post a demo or this thread is pointless

  6. #6
    Wouldn't this be ridiculously insecure though?

    Just curious is all, cool nonetheless.

  7. #7
    4,029
    posts
    home cooking is killing the restaurant industry
    Quote Originally Posted by xxviii
    Wouldn't this be ridiculously insecure though?

    Just curious is all, cool nonetheless.
    Not neccessarily - you can use .htaccess to make it so that the web server doesn't serve the text files (or you could use a setuid/setgid binary and permissions, but that's a little more complicated, so I won't explain that here)
    There are only 10 kinds of people in this world:
    Those that might know ternary, those that do, and those that don't
    Say NO to DRM.

  8. #8
    Ah, true. That's what I get for speaking

  9. #9
    insecure - not really

    demo - sure, but i wrote that it's being developed (v3 i mean)

    i'll post it ASAP

  10. #10
    Quote Originally Posted by λ
    Not neccessarily - you can use .htaccess to make it so that the web server doesn't serve the text files (or you could use a setuid/setgid binary and permissions, but that's a little more complicated, so I won't explain that here)
    Or you can just keep the text files outside of the web root, and then it's not a problem anyway.

    suid? Why would you bother with that? So many easier ways...

  11. #11
    you'll see

  12. #12
    See what???
    CyanBlue / Jason Je / Flash Developer
    http://CyanBlue.FlashVacuum.com
    http://www.FlashVacuum.com

  13. #13
    eeeeeeeeeeverything - i'm rewriting it (cleaning up, upgrading)

  14. #14
    flatfile isn't that hard

    it just takes a lot more coding then a real database system...

    this is because most of mysql's functions are already programmed into the script

    so typing select * from table is much more straight forward then the explode scripts etc.

    basically a lot more coding goes into text file databases... also it is incredibly hard to create search engines for it... but it is possible
    got pwnt?

  15. #15
    no, it's not that hard, but it's CPUs' power consumpting ;-)

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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

Home About kirupa.com Meet the Moderators Advertise

 Link to Us

 Credits

Copyright 1999 - 2012