Location: PHPKode > scripts > WAP Push > wap-push/wPush.test.php
<?php
/*
********************************************************************
**  wPush.                                                         *
**  Cesar D. Rodas <hide@address.com>                          *
**                                                                 *
********************************************************************
**  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        *
**  hide@address.com 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);


?>
Return current item: WAP Push