This is my first post, sorry my English

Hello every one. I am a new programmer in PHP and i would like to use Zend Mobile Framework to implement my push notificator server.

I'm searching how to implement the tomcat project used in 

<http://developer.android.com/guide/google/gcm/demo.html> 

but written in PHP.

In the code most below I written the used sources. 
When I call the submit button, always have response with InvalidRegistration error.

Can anyone see where the error?

Thank You very much

<http://pastebin.com/MauzLX71>