Re: How to program very basic chat on PHP?
| From: | Justin French | Date: | Mon, 09 Sep 2002 03:11:45 +0000 |
| Subject: | Re: How to program very basic chat on PHP? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-115698@lists.php.net to get a copy of this message | ||
An extremely basic chat would be a frame or iframe which has a meta tag
refresh (or javascript refresh) of a plain HTML page every 10-20 seconds.
As far as the flash stuff goes, have a look at macromedia.com or the 1000's
of flash sites... I'm positive you'll find some development tools for a
pre-built chat room that you can modify. I'm certain I got one of
macromedia.com a few years back (flash 4 days i think).
Justin
on 09/09/02 12:37 PM, M (meu@meucat.com) wrote:
> Gerhard Hoogterp wrote:
>
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>>> Hello Phil, your idea is interesting. I am evaluating it because it is not
>>> a true 'chat' (if user doesnt load any page he will never see incoming
>>> msg), but your idea is the only thing I have to this time.
>>
>> But with a frame or iframe and a little javascript the reloading can be
>> automated..
>>
>> gerhard
>
> Hello Gerhard, I had an idea, and would like you say to me if it is possible
> or
> not. I program little javascript, and I think there is a timer function into
> JS.
>
> My question is: what if some timer start every nn seconds a function to read
> stored msgs table?
>
> My doubt is: how to start a function in JS to read a table?. Remember PHP and
> Mysql are server-sided operations, while JS is cliente side op.
>
> Maybe your idea is JS start a new window embedded into iframe, and this window
> then would exec a PHP script to check msgs table.
>
> Is this true?
>
> Thanks
>
> Mig
>
>