Dear All,
Saya punya function PHP getURL, dengan CURL seperti ini :
<?
function getURL($url) {
$curlHandle = curl_init(); // init curl
curl_setopt($curlHandle, CURLOPT_URL, $url); // set the url to fetch
curl_setopt($curlHandle, CURLOPT_HEADER, 0);
curl_setopt($curlHandle, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curlHandle, CURLOPT_TIMEOUT,120);
$content = curl_exec($curlHandle);
curl_close($curlHandle);
return $content;
}
Ketika saya aplikasikan dengan URL yang di Linux (Apache), tidak ada masalah.
Misalnya :
$grab = getURL("http://www.domain.com/index.php?go=database&title=sss");
echo $grab;
Tetapi ketika saya aplikasikan dengan URL yang di IIS (Windows 2003 Server),
hasilnya blank dan loadingnya lama (sampai timeout kali ya?), misalnya
$grab = getURL("http://www.domain.com/default.aspx?go=database&title=sss");
echo $grab;
Kedua contoh itu saya jalankan dari server Linux(Apache).
Saya menduga bahwa setting IIS yang belum benar, ada yang bisa share masalah
ini? Tks
Salam,
Jesri HT Purba
http://www.smsmanager.co.in
SMS Broadcast/Bulk (harga mulai Rp115/sms)
Mudah diintegrasikan dengan business Anda (web/desktop)
Sent from my BlackLaptop@,
Powered by HATI TULUS dan BERSIH
------------------------------------------
>
>
------------------------------------
--
www.itcenter.or.id - Komunitas Teknologi Informasi Indonesia
Gabung, Keluar, Mode Kirim : [EMAIL PROTECTED]
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ITCENTER/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ITCENTER/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/