Motyar

Freelance Web Developer

Nov 6, 2009

Php api for your gtalk. phpapi@bot.im

phpapi@bot.im is a gtalk-bot can help you to call any php method to see results. Some times it helps me.


Simply add phpapi@bot.im to your gtalk. and call any php method in this form-
functionname-argument1,argument2,argument3

i.e. to get max from two integers send max-23,4

You can create your own bots with help of Imified .
Code

$msg = $_REQUEST['msg'];
$msg = explode('-',$msg);

//pass your phpapi.php?fun=fuction&args=arg1,arg2,....
$call = $msg[0];

$args = explode(",", $msg[1]);
if($call!='' && $args!=''){
print_r(call_user_func_array($call, $args));
}
else{
echo "Please call a php function in this form-
 function-argument1,argument2";
}

Labels: ,


By :