i php script Kıvrılmaları kullanarak istiyorum ve komut satırı modunda çalıştırın.
Burada script
<?php
//enable_dl("php_curl.dll");
$ch = curl_init();
$options=array(
CURLOPT_URL=>"http://test.com/wp-content/themes/bluefocus/images/desc_img.jpg",
CURLOPT_BINARYTRANSFER=>true,
CURLOPT_VERBOSE=>true
);
curl_setopt_array($ch,$options);
$data = curl_exec($ch);
$fp=fopen("test.jpg","w");
fwrite($fp,$data);
curl_close($ch);
?>
i komutu ile cmd çalıştırmak php get.php
hata mesajı:
D:\project>php get.php
Fatal error: Call to undefined function curl_init() in D:\project\gals_curl_batch_download\get.php on line 3
web sayfası çıktı phpinfo () curl devrede gösteriyor
cURL support enabled
cURL Information libcurl/7.19.4 OpenSSL/0.9.8k zlib/1.2.3
and here is the strange thing phpinfo() int the webpage output show, in fact extension enabled in php.ini can be run in web page. the exact directory of the extension is under ./ext
extension_dir ./ext ./ext
ama php-i | "EXTENSION_DIR" bulmak her zaman bu göstermek ve php.ini dosyasında ile modifiye edilemez
extension_dir => C:\php5 => C:\php5
restarted apache several times, keeps the same error. so I wonder why the value of extension_dir can't be modified.