Question:
creating mailbox with php.. i need advice.. please help?
Hex
2010-12-16 15:28:03 UTC
i am creating an mailbox something similar facebook... but i was wondering.. where would be better to store the conversations? mysql or .txt files?
i dont wanna save it in sql because it'll make it too heavy(i think) and im not sure about .txt because of security risks.. would .htaccess secure the folder good enough?
Three answers:
juliepelletier
2010-12-16 17:25:11 UTC
If you're worried about performance issues, then maybe you're right to want to consider an alternative like text files.



Your worry about security is only valid as long as the files are accessible from outside the server.



You could, for example, place them in a sub-folder protected with an .htaccess file and make a PHP script to retrieve them based on the user.
2010-12-16 15:32:15 UTC
If the number of messages and simultaneous users is small, then you could do it in text files, but typically MySQL would be the better option. It's really a lot easier to program as well.
?
2016-11-02 06:37:31 UTC
No, no longer yet...I probable ought to nonetheless. inspite of the shown fact that it does no longer do any stable to deliver me a contravention observe, with the aid of fact there is undercover agent ware in my laptop, and it hides my messages...Oh darn...


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...