Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8691343
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T00:06:27+00:00 2026-06-13T00:06:27+00:00

Has anyone come up with the correct way to push a message to multiple

  • 0

Has anyone come up with the correct way to push a message to multiple devices. We are developing an app that has followers and like Facebook or Twitter, I need to send a message to a persons followers (600 in all).

In PHP I just did a test and each message takes about 20 seconds for a reply to come back from

$fp = stream_socket_client('ssl://gateway.push.apple.com:2195', $err,
$errstr, 60, STREAM_CLIENT_CONNECT, $ctx);

and

// Send it to the server 
$result = fwrite($fp, $msg, strlen($msg));

This would result in it taking 3 hours to send 600 messages?

For each message I’m executing the same lines of code. Should I instead be opening up the stream and just issuing multiple writes and then fpclose?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T00:06:29+00:00Added an answer on June 13, 2026 at 12:06 am
    foreach($msgs as $msg) {
      $result = fwrite($fp, $msg, strlen($msg));
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Has anyone come across a software that can dynamically stream an arbitrary source identified
I am wondering if anyone has come across a way to generate tones in
I'm wondering if anyone has ever come across a plug-in for mootools that will
Has anyone come up with a good way of performing full text searches (
Has anyone come across this issue before?
I was wondering has anyone come across thos error in SIP before? WARN/System.err(4623): javax.sip.SipException:
Has anyone else come across this at all? I used to be able to
I was just wondering if anyone has come across anything offering similar search functionality
Has anyone successfully tried minifying AND concatenating all the jqGrid locale files so that
Has anyone come up with a good solution for deploying BlackBerry applications across different

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.