<?php
 
/*
 
********************************************************************
 
**  wPush.                                                         *
 
**  Cesar D. Rodas <[email protected]>                          *
 
**                                                                 *
 
********************************************************************
 
**  The author disclaims the copyright of this class. You are      *
 
**  legaly free to use, modify and redistribute the class.         *
 
**  Helps, bugs reports, and contributions could be done at        *
 
**  [email protected]. Also this email is a GTalk account, and  *
 
**  I can be contacted throught this way too.                      *
 
********************************************************************
 
*/
 
 
set_time_limit(0);
 
require("http.php");
 
require("wPush.php");
 
 
$push = new wpush;
 
$push->setServer("http://localhost:82/cesar.php");
 
//$push->setProxy('proxy.server.com',3128); /*proxy test */
 
for($i=0; $i < 10; $i++)
 
    for($e=0; $e < 10; $e++) {
 
        $push->setContent("saddor",1,"+5959619741${e}${i}","http://www.phpclasses.org/wpush","hey! test my wPush class.");
 
        if ( !$push->Send())
 
            print "Error: ".$push->error."<br/>\n";
 
    }
 
 
print_r($push->Log);
 
 
 
?>
 
 |