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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T09:03:40+00:00 2026-05-26T09:03:40+00:00

I am writing a php script to grab information from more than 30 different

  • 0

I am writing a php script to grab information from more than 30 different links currently.

Say I have an array storing all the links, and then use a foreach loop to pass the link to a function grabDataFromLink($url)

But turns out it can at most grab 10 to 15 links’ data, and then it stopped giving data anymore. Why is it so?

My code is something like this:

function grabDataFromLink($link){
  $ch = curl_init($link);   
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC); 
  $content = curl_exec($ch);
  echo $content;
  curl_close($ch);
}

foreach ($links as $key => $link)
   grabDataFromLink($link);
  • 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-26T09:03:41+00:00Added an answer on May 26, 2026 at 9:03 am

    Check the php error log, check if a time limit or memory limit occurred. Is so, put set_time_limit(0);ini_set(memory_limit, -1); at the beginning of your script.
    (answered by xdazz)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm writing a PHP script to grab text box data from a submitted form.
I'm currently writing a PHP script that 3rd party clients will be able to
I'm writing a PHP script to generate SQL dumps from my database for version
I'm writing a PHP script that I want to disable from web access (I
I'm writing a PHP script that accesses two different data objects - one is
I'm writing a small PHP script to grab the latest half dozen Twitter status
I am currently writing a php script that validates a username and password. I
I'm writing a php script that will fetch data from a given URL and
I am writing a PHP script where the inputs are: From date To date
I'm writing a simple php/mysql script that gets all ads I have in my

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.