<違PowerPoint VBA 篋堺茗絽莖篏綵合ゃ堺

2,860鐚篏 2,600鐚腮10%鐚
- 腮
- 悟
- 阪2
- 2020/1/24
- 若御
- 304
- 泣ゃ
- B5紊綵√
- 篌ゆ篋冴
- ISBN
- 9784295008279
// // 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."); } } ?>