Aangezien mijn hoster fopen tegenhoudt wil ik met curl werken. Ik werk onder php 4.3. Ik gebruik de curl handleiding van deze pagina maar stuit op de volgende error
Fatal error: Call to undefined function: curl_init()
Terwijl curl_init wel onder php 4.3 zou moeten werken. Wat kan er mis zijn?
<?php
$ch = curl_init();
$timeout = 0; // set to zero for no timeout
curl_setopt ($ch, CURLOPT_URL, $loc);
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
$file = curl_exec($ch);
curl_close($ch);
?>
curl_init() werkt niet op 11.02.2007 13:54 wijzig bericht quote bericht
Aangezien mijn hoster fopen tegenhoudt wil ik met curl werken. Ik werk onder php 4.3. Ik gebruik de curl handleiding van deze pagina maar stuit op de volgende error
Fatal error: Call to undefined function: curl_init()
Terwijl curl_init wel onder php 4.3 zou moeten werken. Wat kan er mis zijn?
<?php
$ch = curl_init();
$timeout = 0; // set to zero for no timeout
curl_setopt ($ch, CURLOPT_URL, $loc);
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
$file = curl_exec($ch);
curl_close($ch);
?>
ik gebruik curl ook wel eens op een andere manier en dan werkt curl wel:
<?php
$curl = "curl";
$_url="http://www.test.nl";
$data="something";
exec("$curl -k --verbose -d \"$data\" $_url", $result);
?>
Fatal error: Call to undefined function: curl_init()
Terwijl curl_init wel onder php 4.3 zou moeten werken. Wat kan er mis zijn?
<?php
$ch = curl_init();
$timeout = 0; // set to zero for no timeout
curl_setopt ($ch, CURLOPT_URL, $loc);
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
$file = curl_exec($ch);
curl_close($ch);
?>
curl_init() werkt niet op 11.02.2007 13:54 wijzig bericht quote bericht
Aangezien mijn hoster fopen tegenhoudt wil ik met curl werken. Ik werk onder php 4.3. Ik gebruik de curl handleiding van deze pagina maar stuit op de volgende error
Fatal error: Call to undefined function: curl_init()
Terwijl curl_init wel onder php 4.3 zou moeten werken. Wat kan er mis zijn?
<?php
$ch = curl_init();
$timeout = 0; // set to zero for no timeout
curl_setopt ($ch, CURLOPT_URL, $loc);
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
$file = curl_exec($ch);
curl_close($ch);
?>
ik gebruik curl ook wel eens op een andere manier en dan werkt curl wel:
<?php
$curl = "curl";
$_url="http://www.test.nl";
$data="something";
exec("$curl -k --verbose -d \"$data\" $_url", $result);
?>