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 4258550
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T05:39:52+00:00 2026-05-21T05:39:52+00:00

I have array of mobile numbers, around 50,000. I’m trying to process and send

  • 0

I have array of mobile numbers, around 50,000. I’m trying to process and send bulk SMS to these numbers using third-party API, but the browser will freeze for some minutes. I’m looking for a better option.

Processing of the data involves checking mobile number type (e.g CDMA), assigning unique ids to all the numbers for further referencing, check for network/country unique charges, etc.

I thought of queuing the data in the database and using cron to send about 5k by batch every minute, but that will take time if there are many messages. What are my other options?

I’m using Codeigniter 2 on XAMPP server.

  • 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-05-21T05:39:53+00:00Added an answer on May 21, 2026 at 5:39 am

    I would write two scripts:

    File index.php:

    <iframe src="job.php" frameborder="0" scrolling="no" width="1" height="1"></iframe>
    <script type="text/javascript">
        function progress(percent){
            document.getElementById('done').innerHTML=percent+'%';
        }
    </script><div id="done">0%</div>
    

    File job.php:

    set_time_limit(0);                   // ignore php timeout
    ignore_user_abort(true);             // keep on going even if user pulls the plug*
    while(ob_get_level())ob_end_clean(); // remove output buffers
    ob_implicit_flush(true);             // output stuff directly
    // * This absolutely depends on whether you want the user to stop the process
    //   or not. For example: You might create a stop button in index.php like so:
    //     <a href="javascript:window.frames[0].location='';">Stop!</a>
    //     <a href="javascript:window.frames[0].location='job.php';">Start</a>
    // But of course, you will need that line of code commented out for this feature to work.
    
    function progress($percent){
        echo '<script type="text/javascript">parent.progress('.$percent.');</script>';
    }
    
    $total=count($mobiles);
    echo '<!DOCTYPE html><html><head></head><body>'; // webkit hotfix
    foreach($mobiles as $i=>$mobile){
        // send sms
        progress($i/$total*100);
    }
    progress(100);
    echo '</body></html>'; // webkit hotfix
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I currently have an array of around 8 - 10 numbers that changes on
In my Windows Mobile .NET application I have a simple array of object with
I have a Visual Studio 2008 Windows Mobile 6 C++ application that is using
I have been working in Jquery mobile and have been trying some samples and
I have a Visual Studio 2008 C++ Windows Mobile 6 application where I'm using
I have a JSon array that displays in a JQuery Mobile list. It shows
I am trying to create a list using the styles provided by jquery mobile.
OK i have two groups of mobile numbers (from mysql) which i need to
i have array unknown size i want to transfer to matrix[n][2].Example; D[c]=1,2,3,4,5 D[c/2][2]= 1
I have array of select tag. <select id='uniqueID' name=status> <option value=1>Present</option> <option value=2>Absent</option> </select>

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.