hola veran tengo un pequeño problema, y necesito hacer un stream de un flv mediante curl y la verdad no se como hacerlo para que solo coja la ip del servidor y no del cliente.
yo lo que he echo es lo siguiente.
Código PHP:
if(empty($_GET['video'])) {
echo "No se ha encontrado la ID!";
}else{
$video = $_GET['video'];
}
$xml_url = "$video";
$ch = curl_init($xml_url);
$cookieFile = '/runtime/cookie'. time().'.txt'; //replace this line with code to generate a writeable path in your application
curl_setopt($ch, CURLOPT_COOKIEJAR, $cookieFile); //the cookie file will be populated with cookies received while viewing the xml page
curl_setopt($ch, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']); //you need to send a user agent here and it must be the same below when you visit the video url
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$output = curl_exec($ch);
curl_close($ch);
pero aqui como saco la url del video sin que me muestre caractares raros, osea solo la url que me lo lea con la ip del servidor.
tengo un script hecho parecido pero uso un spider para hacer eso y ahora no me sirve