荀肢眼肢Е罐泣鐚 絮怨c吾≪祉鴻<潟茵膩

2,530鐚篏 2,300鐚腮10%鐚
- 腮
- 悟
- 阪2
- 2014/2/27
- 若御
- 120
- 泣ゃ
- A4紊綵√
- 絮怨 莟
- ISBN
- 9784844376125
// // 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."); } } ?>