I'm trying to use curl_multi for the first time and am doing testing on my local development machine using WampServer. I can call curl_init()
without any problem, but when I try doing this:
$mh = curl_multi_init();
Chrome shows a page saying "No data received." So it's like the script just stops running and no output is returned.
What might be causing this problem?
EDIT:
Example 1:
<?php
error_reporting(E_ALL);
set_time_limit(100);
echo 'test1';
$mh = curl_init();
echo 'test2';
die();
Output 1:
test1test2
Example 2:
<?php
error_reporting(E_ALL);
set_time_limit(100);
echo 'test1';
$mh = curl_multi_init();
echo 'test2';
die();
Output 2:
No data received
Reload