Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

curl execution timeout issue #32

Open
pavan2540 opened this issue Aug 9, 2016 · 1 comment
Open

curl execution timeout issue #32

pavan2540 opened this issue Aug 9, 2016 · 1 comment

Comments

@pavan2540
Copy link

$get_url = "neo4j_sync/actions.php/coursecluster_includes_course/";
$res = $this->curl->simple_get($get_url, false, array(
CURLOPT_USERAGENT => true,
CURLOPT_TIMEOUT => 0,
CURLOPT_RETURNTRANSFER => true
));

if u see above curl call CURLOPT_TIMEOUT is set to 0 , but im still getting time execution exceeds 300 seceonds error
and even i added " ini_set('max_execution_time', 0); " on top of the code but still facing same issue .. i'm not able to resolve this problem ... please help me out

@vuon9
Copy link

vuon9 commented Sep 1, 2016

Try it!

$get_url = "neo4j_sync/actions.php/coursecluster_includes_course/";
$res = $this->curl->simple_get($get_url, false, array(
'useragent' => true,
'timeout' => 0,
'returntransfer'=> true
));

or use index key of array as constant keys, but need to change arg position like this

$this->curl->simple_get('http://example.com', array(CURLOPT_PORT => 8080));

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants