shuhaib864 / xmpphp

Automatically exported from code.google.com/p/xmpphp
0 stars 0 forks source link

How to receive message from xmpphp #129

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hi,

i can get message by calling file cli_longrun_example.php
But it takes long time to give message.
Is there any method to get instant message ?

I am trying to search for long time but did not find any solution.

Thanks,
Bharpinder 

Original issue reported on code.google.com by gurpin...@savsoft.info on 3 Mar 2013 at 5:21

GoogleCodeExporter commented 8 years ago
anyone can please help.. ?

Original comment by gurpin...@savsoft.info on 4 Mar 2013 at 1:27

GoogleCodeExporter commented 8 years ago
Hi Bharpinder 

did u get any solution ?
im looking for same. please if u have any idea than share with me.

thanks

Original comment by lathiyav...@gmail.com on 8 Aug 2013 at 10:09

GoogleCodeExporter commented 8 years ago
yes, i got the solution.
now i am very busy in some work, i will attach complete working file by 
tomorrow.

Thanks,
Bharpinder Singh

Original comment by gurpin...@savsoft.info on 8 Aug 2013 at 2:31

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Thanks Bharpinder for your positive reply.

while i run cli_longrun_example.php than it take to much time for execution and 
than timeout before getting any message. if i increase max exec. time than its 
process continuously running for long time.

Thanks a lot.
God Bless you. 
Vijay Lathiya

Original comment by lathiyav...@gmail.com on 9 Aug 2013 at 4:38

GoogleCodeExporter commented 8 years ago
Hello Bharpinder Singh

please help me

Original comment by lathiyav...@gmail.com on 10 Aug 2013 at 4:35

GoogleCodeExporter commented 8 years ago
Sorry for late response.

Don't make any change in actual code (time etc..)
i have attached a file gm.php (place it outside XMPPHP folder, open it and 
write your gmail user id and password )
Suppose you have two gmail contacts or id (both should added in gmail contact, 
so live chat can be possible)
eg.
1) a@gmail.com
2) b@gmail.com

You write a@gmail.com username (username only character before @ )  and 
password in gm.php file 

Now call gm.php file.
Basic concept is that it make long run call UNTIL  receive new message OR time 
out.
Read above line carefully to understand concept.

call that file and send message to from gmail (by login 2nd gmail id 
b@gmail.com in different browser )
you will note that gm.php gives instant response as new message.

Let me know if you have any question.

Thanks,
Bharpinder Singh

Original comment by gurpin...@savsoft.info on 10 Aug 2013 at 6:06

Attachments:

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Upon running the script, it logs in and out over and over. any solutions?

Original comment by xxsk8rdu...@gmail.com on 12 Mar 2015 at 7:35