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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T12:57:42+00:00 2026-05-22T12:57:42+00:00

With normal curl when I went on page with normal curl it gave me

  • 0

With normal curl when I went on page with normal curl it gave me the source code of one page. And I could just get it as string like this :

$ch = curl_init();
$contents = curl_exec($ch);
echo $contents;  // echos sourcecode of one page

But now i have curl_multi_exec, I tried echoing it, but it gave me 0000000000000.

$mh = curl_multi_init();

curl_multi_add_handle($mh,$curls[0]);
curl_multi_add_handle($mh,$curls[1]);
curl_multi_add_handle($mh,$curls[2]);
curl_multi_add_handle($mh,$curls[3]);
curl_multi_add_handle($mh,$curls[4]);


$running = null;
do {
    usleep(10000);
    $sisu = curl_multi_exec($mh, $running);
} while($running > 0);
echo $sisu;  // just echos 000000000000000 , but it should echo source of 5 pages

What I am doing wrong?

  • 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-22T12:57:43+00:00Added an answer on May 22, 2026 at 12:57 pm

    Have a look at the curl_multi_getcontent() function and the CURLOPT_RETURNTRANSFER option.

    There’s a nice example of using the curl_multi code here: http://www.jaisenmathai.com/articles/php-curl-asynchronous.html

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

Sidebar

Related Questions

Normal page looks like this: http://hell.orts.ru:8004/snapboard/threads/id/3/ However, if …#fragment_id is used in the link,
Try loading this normal .jpg file in Internet Explorer 6.0. I get an error
I'm just working as normal. Suddenly my commit gets this error: Commit failed (details
What is the normal way people writing network code in Delphi use Windows-style overlapped
Whats the normal procedure of clearing a form after POST? Just loop through the
The normal way to do this would be: var resultSelect = document.getElementById(resultSelect); resultSelect.size =
Is it normal? So you just need to add \.hgignore to the list to
Normal button looks like: Now, please let me know, How can i make a
Normal query manner: Session sess=factory.getCurrentSession(); sess.beginTran....(); String hql=from Entity en where en......; Query q=sess.createQuery(hql).setCacheble(true);
Normal list comprehensions occur this way: new_list = [f(x) for x in l] What

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.