Results 1 to 2 of 2

Thread: PHP PM System Without SQL Database

  1. #1
    Join Date
    Jul 2011
    Posts
    56
    Thanks
    5
    Thanked 1 Time in 1 Post

    Default PHP PM System Without SQL Database

    Is there a way to make a pretty secure PM system without having to use a SQL Database. Would TXT files or XML work? If so, how would I go about doing it?

    Thanks!

  2. #2
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    The problem is not security. The problem is how you would manage a system like that. Having a database (any kind) is useful to organize the information. You could store, for example, one text file per message, but then you would still need to have passwords and users stored somewhere. Yes, XML might help, but a database is still better.
    You'd need to use PHP to generate .xml or .txt files (it doesn't really matter-- PHP can process a text file of any kind how you'd like-- you could even make up your own extension), then save the information in them. Use sessions as you would with a database but using the information stored in the text files. Then when needed display the text from a message stored in a text file.

    But, really, you'll have a much easier time doing this if you do it with a database. Databases can be problematic but in this kind of situation they are very helpful and save a lot of time in the end.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  3. The Following User Says Thank You to djr33 For This Useful Post:

    M2com (07-28-2011)

Bookmarks

Posting Permissions

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