I have used the php script from the well known Ray Wanderlich tutorial to send push notifications during development phase. They were triggered properly after I created the
Always make sure you don't use old APNS codes (e.g. you are using the same database table for your development and production application). This causes the Apple APNS service to disconnect because it received an invalid APNS code, as a different APNS code is used for development and the actual published app.
Another remark: do not forget to regenerate the key pair if you publish your app to the appstore. A development certificate won't work in production!