PHP Classes
elePHPant
Icontem

File: wPush.test.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Cesar D. Rodas  >  WAP Push  >  wPush.test.php  >  Download  
File: wPush.test.php
Role: Example script
Content type: text/plain
Description: Test file
Class: WAP Push
Send WAP push messages through a push gateway
Author: By
Last change:
Date: 8 years ago
Size: 1,262 bytes
 

Contents

Class file image Download
<?php
/*
********************************************************************
** wPush. *
** Cesar D. Rodas <saddor@cesarodas.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 *
** saddor@cesarodas.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);


?>