944,111 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Unsolved
  • Views: 611
  • PHP RSS
Nov 3rd, 2009
-1

Messaging System

Expand Post »
Hello,

I'm a pretty basic php user, and I'm wondering how someone would go about implementing a message system into a website with different users. It doesn't have to be anything specific, I'm just wondering about the basic design of it.

Thanks
Similar Threads
Reputation Points: 10
Solved Threads: 1
Junior Poster in Training
phouse512 is offline Offline
75 posts
since Jul 2008
Nov 4th, 2009
-2
Re: Messaging System
browse around you will get thousand of free website design templates
Reputation Points: 29
Solved Threads: 76
Practically a Master Poster
network18 is offline Offline
616 posts
since Sep 2009
Nov 4th, 2009
-1
Re: Messaging System
Hey.

What do you mean by "a message system"?
Like a blog, or like a messenger?

If it's a blog, there are probably hundreds of codes available online for you to choose from. Wordpress being something of a leader among them.

If you mean a messenger system, then PHP alone is probably not the best way to go. Something involving AJAX wold be more promising.
Last edited by Atli; Nov 4th, 2009 at 4:25 am. Reason: Wrong wordpress link.
Reputation Points: 93
Solved Threads: 70
Posting Pro
Atli is offline Offline
526 posts
since May 2007
Nov 4th, 2009
0
Re: Messaging System
Not a IM app or blog

I don't mean anything really complicated, I'm mainly just wondering how you would store data from a message that one user sent to another. You wouldn't be able to store it in databases right?
Reputation Points: 10
Solved Threads: 1
Junior Poster in Training
phouse512 is offline Offline
75 posts
since Jul 2008
Nov 4th, 2009
0
Re: Messaging System
Why not?
You can use PHP to send emails/store messages from one user to another in a DB. This implementation can be as simple or as complex as you like.

If you're interested in making a simple messaging system. A possible mysql setup would be:

users table
user_id
username
pw
email

msgs table
msg_id
msg_title
msg_body
msg_sender (foreign key on user_id)
msg_recipient (foreign key on user_id)
msg_status (e.g. pending/read/etc)
notify_when_open (find out if your msg has been read)

If you're new to php, you will have some fun creating forms for msgs and validating /cleaning input and then improving the design to incorporate diffrent msb folders, send to multiple recipients etc. This is a really good 'project' to get your teeth into. Ready made scripts may be useful, but if you're starting out, they may cause more confusion than anything, especially if they're object-orientated.
Sponsor
Featured Poster
Reputation Points: 1067
Solved Threads: 954
Disgraced Poster
ardav is offline Offline
6,726 posts
since Oct 2006
Nov 4th, 2009
0
Re: Messaging System
Ohh...I see, I wasn't sure about the database design part. I'll go try that and then post it back here to see if its ok.

Thanks
Reputation Points: 10
Solved Threads: 1
Junior Poster in Training
phouse512 is offline Offline
75 posts
since Jul 2008
Nov 8th, 2009
-1
Re: Messaging System
this is what i "derived" off of LOL.
http://www.astahost.com/Private-Mess...em-t18247.html
Reputation Points: 15
Solved Threads: 7
Posting Pro in Training
SKANK!!!!! is offline Offline
428 posts
since Apr 2009

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: Password encoding/decoding
Next Thread in PHP Forum Timeline: Echo URL in PHP - having problems with a href in echo





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC