View Full Version : PHP PM System Without SQL Database
M2com
07-27-2011, 10:53 PM
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!
djr33
07-27-2011, 11:34 PM
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.
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.