Jump to content

Question?


adam291086

Recommended Posts

Hello,

 

I am a third year student and i am looking into my final year project. I was looking into the possibility in creating a chat program. As i am a systems design student and not a programmer i am trying to stick to what i know, i.e php and mysql. I plan to have a database that stores information about friends and port information. I know chat programs work via sending messages directly to another computer, via ports.

 

This is my question. Is it possible to use php to send a message to another computer, via ports? if so what ports do i use.

 

Sorry if this sounds silly but i dont have a lot of php knowledge or coding knowledge in general.

Link to comment
https://forums.phpfreaks.com/topic/77177-question/
Share on other sites

Hey,

 

Yes i do mean like those chat programs. I want to create that for myself. How have they done it? I dont want to have to run a query every minute searching for new messages. I'd rather send messages directly from one computer to another. Is this possible with php?

Link to comment
https://forums.phpfreaks.com/topic/77177-question/#findComment-391385
Share on other sites

Because it is browser based it ALWAYS need to be between the client -> server , i.e. the client is asking the server for the latest information, unless you want to create a java applet, but that's a long dark road...

 

Pretty much the same way those scripts that revraz pointed you to do. You have the client querying for new messages every so often. In theory the request is small, the updated message is small, the database query (if you are using one) ought to be relatively simple also.

 

My advice (as a former final year Comp Sci. student), is to not think up your own project but take one of the ones that is on offer. Yes they seem harder but it'll prompt you to work better and not rely on the knowledge you already have.

 

If you are really adament about doing a chat program then take it out of the browser and make it standalone (like MSN/Yahoo Chat).

Link to comment
https://forums.phpfreaks.com/topic/77177-question/#findComment-391394
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.