[H-GEN] php question

Timothy Hitchens tim at hitcho.com.au
Sat Nov 1 19:54:31 EST 2003


[ Humbug *General* list - semi-serious discussions about Humbug and     ]
[ Unix-related topics. Posts from non-subscribed addresses will vanish. ]

The best way of writing a chat program would be to use shared memory
compiled into PHP.

http://au2.php.net/manual/en/ref.sem.php




------------------------------------------------------------------
Timothy Hitchens (HiTCHO)                             HiTCHO Group
                                        Web Application Consulting

Snail Mail:  PO Box 101             Arana Hills QLD 4054 Australia
E-Mail:      tim at hitcho.com.au             Voice:  +61 419 521 440
WWW:         http://www.hitcho.com.au/       Fax:  +61 7 3351 0952
------------------------------------------------------------------


-----Original Message-----
From: Majordomo [mailto:majordom at caliburn.humbug.org.au] On Behalf Of
Greg Fairbrother
Sent: Sunday, 2 November 2003 10:39 AM
To: HUMBUG GEN
Subject: [H-GEN] php question


[ Humbug *General* list - semi-serious discussions about Humbug and
]
[ Unix-related topics. Posts from non-subscribed addresses will vanish.
]

Hi all.  

Without boring you with too much info, I'm writing a chat program
(between 2 people only, not like irc) for a client.  At the moment I'm
writing each line of text to a database.  

What I'm wondering is if I use an array, how would I 'share' this
variable between the two computers.  I can do it with a session
variable, but the catch is that I really need two sessions running at
the same time.  The first has the each users details, which must stay
separate and the second one contains the chat data should be available
to both computers.

Am I barking up the wrong tree?  I looked for something that would do
the trick on sourceforge but all the chat software I found was for
multiple users.

Any suggestions or comments would be appreciated.

Greg


--
* This is list (humbug) general handled by majordomo at lists.humbug.org.au
.
* Postings to this list are only accepted from subscribed addresses of
* lists 'general' or 'general-post'.  See http://www.humbug.org.au/


--
* This is list (humbug) general handled by majordomo at lists.humbug.org.au .
* Postings to this list are only accepted from subscribed addresses of
* lists 'general' or 'general-post'.  See http://www.humbug.org.au/



More information about the General mailing list