Re: [PHP] How to program very basic chat on PHP?

2002-09-09 Thread timo stamm

Hi Mig,


you have to look for the XMLSocket (data will be transported in 
XML documents). It is available since Flash 5.

But building a socket deamon on the server appears to be not 
that easy. The easiest way should be to use Pearl if you are 
unfamiliar with C.


Timo

> timo stamm wrote:
>
>> Hi Mig,
>>
>> to create something that behaves more like a true "chat", you
>> need an active client side.
>> For example, you could let a frame with the PHP be reloaded in a
>> short interval.
>>
>> To create a real chat, you need a socket connection. The best
>> solution would be Flash (which has great functions for that).
>> Java is another option.
>>
>> Timo
>
> Hello Timo, thanks very much. I don't know flash, but do you 
> think Flash
> 5 has this option also?. I read a basic Flash manual and didn't find
> some feature for 'sockets' or something else.
> For Java, I know a very basic programming of it, I will try study more
> of it to understand socket functions.
>
> Thanks all of you for your responses.
>
> Mig
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] How to program very basic chat on PHP?

2002-09-09 Thread M

Justin French wrote:

> 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

Hello Justin

Ok, you are right, I know it is possible to get complete chat services at free (just
install it in your page).

I think I forgot mention something. The reason I don't want use these services is
because I want people be able to retrieve info of my database when chatting.

Since I have profiles and pictures of people stored in databases, I want people
instantly getting these info through chat services.

For instance, when presenting list of chatters, just with a click you can see
picture and profile of that person.

This connection is impossible to stablish when using predefined chats, thats the
reason I want to make my own chat.

Thanks

Mig


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] How to program very basic chat on PHP?

2002-09-08 Thread Justin French

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 ([EMAIL PROTECTED]) 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
> 
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] How to program very basic chat on PHP?

2002-09-08 Thread M

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



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] How to program very basic chat on PHP?

2002-09-08 Thread M

timo stamm wrote:

> Hi Mig,
>
> to create something that behaves more like a true "chat", you
> need an active client side.
> For example, you could let a frame with the PHP be reloaded in a
> short interval.
>
> To create a real chat, you need a socket connection. The best
> solution would be Flash (which has great functions for that).
> Java is another option.
>
> Timo

Hello Timo, thanks very much. I don't know flash, but do you think Flash
5 has this option also?. I read a basic Flash manual and didn't find
some feature for 'sockets' or something else.
For Java, I know a very basic programming of it, I will try study more
of it to understand socket functions.

Thanks all of you for your responses.

Mig



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] How to program very basic chat on PHP?

2002-09-08 Thread timo stamm

Hi Mig,


to create something that behaves more like a true "chat", you 
need an active client side.
For example, you could let a frame with the PHP be reloaded in a 
short interval.

To create a real chat, you need a socket connection. The best 
solution would be Flash (which has great functions for that). 
Java is another option.


Timo


Am Sonntag den, 8. September 2002, um 12:05, schrieb M:

> "Philip J. Newman" wrote:
>
>> You could create a scema, or module that is called with each 
>> page load, that
>> checks for messages when the user is logged in.  So when the 
>> message is
>> stored into the databace, when the user loads the anypage 
>> while logged in it
>> checks for new messages, and if the user has messages then the 
>> window pops
>> up and the user can eather reply etc etc
>>
>> Phil
>
> 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.
>
> Thanks
>
> Mig


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] How to program very basic chat on PHP?

2002-09-08 Thread M

"Philip J. Newman" wrote:

> You could create a scema, or module that is called with each page load, that
> checks for messages when the user is logged in.  So when the message is
> stored into the databace, when the user loads the anypage while logged in it
> checks for new messages, and if the user has messages then the window pops
> up and the user can eather reply etc etc
>
> Phil

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.

Thanks

Mig



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] How to program very basic chat on PHP?

2002-09-07 Thread Philip J. Newman

You could create a scema, or module that is called with each page load, that
checks for messages when the user is logged in.  So when the message is
stored into the databace, when the user loads the anypage while logged in it
checks for new messages, and if the user has messages then the window pops
up and the user can eather reply etc etc

Phil

- Original Message -
From: "M" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, September 08, 2002 10:09 AM
Subject: [PHP] How to program very basic chat on PHP?


> Hello, this question is about dynamic communication between browsers.
>
> I have a site to meet people (PHP/Mysql).These people have their
> profiles and pictures stored into the site.
> I would like to make some kind of chat (very single chat), so when
> people log into system, I can trace their nicknames and list all active
> users onto some table.
>
> When someone wants talk to any other listed person, he just click on
> nick name, and some window will open on the other people browser's. This
> way, a single chat between two users could be stablished easily.
>
> Is this possible to program just using PHP?. I cant figure here how to
> control remotely the other user's browse (open chat window for instance)
> using only PHP.
>
> Thanks for any help
>
> Mig
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] How to program very basic chat on PHP?

2002-09-07 Thread M

Hello, this question is about dynamic communication between browsers.

I have a site to meet people (PHP/Mysql).These people have their
profiles and pictures stored into the site.
I would like to make some kind of chat (very single chat), so when
people log into system, I can trace their nicknames and list all active
users onto some table.

When someone wants talk to any other listed person, he just click on
nick name, and some window will open on the other people browser's. This
way, a single chat between two users could be stablished easily.

Is this possible to program just using PHP?. I cant figure here how to
control remotely the other user's browse (open chat window for instance)
using only PHP.

Thanks for any help

Mig


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php