I'm trying to develop yahoo messenger robot by php,I develop e base part of it,now I can receive pm,add request,new status and I can answer to them.
I wanna it work for ever , so I use
while(1){
recive();
answer();
}
in each request to recive e message,it will open url by curl and get json data.
each pm take 1s to send I think,I check it when my server was in Germany,now how can I speed up it? and is my algorithm true?is it true way to do it?or yahoo will filter me? (My Yahoo Robot is not for spam,it will answer customer questions)