The standard BES Push example code provided by RIM is based on java/domino/asp. There is no official example code for PHP.
2013 Update: BES 10/bds 10 for BlackBerry 10 Mobile Enterprise Push:
Create a new CURL resource
$ch = Curl_init ();
$data = ' subject= '. $entityData->get (' Ticket_title '). ' &id= '. $entityData->get (' Ticket_no '). ' &content= '. $entityData->get (' description '). ' &status= '. $entityData->get (' Ticketstatus '). ' &author=jiang yang&createdtime=2013 ';
Set URL and other appropriate options
curl_setopt ($ch, Curlopt_url, "http://bes101.acmehq.springworks.info:9080 /push? destination=user02@acmehq.springworks.info&port=myapplicationid_ddemo&requesturi=/");
curl_setopt ($ch, Curlopt_header, true);
curl_setopt ($ch, Curlopt_useragent, "BlackBerry Push Service sdk/1.0");
curl_setopt ($ch, curlopt_http_version, curl_http_version_1_1);
curl_setopt ($ch, Curlopt_post, 1);
curl_setopt ($ch, Curlopt_postfields, $data);
curl_setopt ($ch, Curlopt_verbose, true);
Grab URL and pass it to the browser
curl_exec ($ch);
Close CURL resource, with free up system
curl_close ($ch);
2011, BES 5.0 to the BlackBerry OS 5/6/7 Enterprise push
, is based on the reference 1 simplified and can be pushed through BES emulator data to the BlackBerry Emulator client program ECL Sample Client (client code reference the last two links).
Reference:
1) BES Push
http://supportforums.blackberry.com/t5/BlackBerry-Push-Development/Push-API-sample-code-needed/td-p/468267
2 BIS Push
Http://us.blackberry.com/devjournals/resources/journals/jan_2005/push_me.jsp#Download_The_Source
3 ECL Java Push example: What is-sample applications demonstrating BlackBerry push technology:emergency contact List
To push an emergency contacts List to a BlackBerry smartphone configure a Browser Channel push with the emergency List. A test application has been created and can is referred to the This article:db-00442.
4) demonstration and analysis of BES push application example
5 PHP Curl Library Introduction, use case