с激с≪ゃc≪罨蚊罨蚊篌祉水冴号

1,760鐚篏 1,600鐚腮10%鐚
- 腮
- 悟
- 阪2
- 2007/3/1
- 若御
- 208P
- 泣ゃ
- 絨閽∽e鐚怨 決綵劫<祉違若cゃcc帥種
- ISBN
- 9784844323679
// // CURL ライブラリを使ってファイルをローカルに保存 // // 04Sep07(c)Yuuki'SOI'Umeno, and Creators Guild Co.,Ltd. // require_once 'class/IJ_Log.php'; function get_url_by_curl($url, $file) { if ( $url ) { $cl = curl_init(); if ( $cl ) { $fp = fopen($file, 'w'); if ( $fp ) { curl_setopt($cl, CURLOPT_URL, $url); curl_setopt($cl, CURLOPT_FILE, $fp); if ( curl_exec($cl) ) { IJ_Log::debug("complete get image: \"$file\""); fclose($fp); } else IJ_Log::write("failed curl execution: \"$url\""); } else IJ_Log::write("not open file: \"$file\""); curl_close($cl); } else IJ_Log::write("not initialize curl library. please check PHP configuration."); } } function get_url_by_curl_as_string($url) { if ( $url ) { $cl = curl_init(); if ( $cl ) { IJ_Log::debug($url); curl_setopt($cl, CURLOPT_URL, $url); curl_setopt($cl, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($cl, CURLOPT_RETURNTRANSFER, 1); $buf = curl_exec($cl); IJ_Log::debug($buf); if ( $buf === FALSE ) IJ_Log::write("failed curl execution: \"$url\""); curl_close($cl); return $buf; } else IJ_Log::write("not initialize curl library. please check PHP configuration."); } } ?>