“file_get_contents с URL” Ответ

Передача файла с помощью file_get_content

file_get_contents('http://url/to/upload/handler', false, $context);
Nutty Newt

file_get_contents с URL

<?php

$curl_handle=curl_init();
curl_setopt($curl_handle, CURLOPT_URL,'http://###.##.##.##/mp/get?mpsrc=http://mybucket.s3.amazonaws.com/11111.mpg&mpaction=convert format=flv');
curl_setopt($curl_handle, CURLOPT_CONNECTTIMEOUT, 2);
curl_setopt($curl_handle, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl_handle, CURLOPT_USERAGENT, 'Your application name');
$query = curl_exec($curl_handle);
curl_close($curl_handle);

?>
Wandering Wolverine

Ответы похожие на “file_get_contents с URL”

Вопросы похожие на “file_get_contents с URL”

Больше похожих ответов на “file_get_contents с URL” по PHP

Смотреть популярные ответы по языку

Смотреть другие языки программирования