Ver Mensaje Individual
  #4 (permalink)  
Antiguo 11/05/2017, 17:01
xoceunder
 
Fecha de Ingreso: junio-2012
Ubicación: En el Mundo
Mensajes: 759
Antigüedad: 11 años, 10 meses
Puntos: 10
Respuesta: duda con uso de json

Código PHP:
Ver original
  1. $salida_xml .= "<MoviesId>".$res['cve']."</MoviesId>";
  2. $salida_xml .= "<Title>".utf8_encode($res['titulo_latino'])."</Title>";
  3. $salida_xml .= "<ContentType>Movies</ContentType>";
  4. $salida_xml .= "<Description>".utf8_encode($description['sinopsis'])."</Description>";  
  5. $salida_xml .= "<ReleaseDate>".$res['anio']."</ReleaseDate>";
  6. $salida_xml .= "<Rating>".$res['clasificacion']."</Rating>";
  7. $salida_xml .= "<StarRating>80</StarRating>";
  8. $salida_xml .= "<Actors>".$res['director']."</Actors>";
  9. $salida_xml .= "<Directors>".$res['reparto']."</Directors>";
  10. $salida_xml .= "<Categories>".$generos."</Categories>";
  11. $salida_xml .= "<Length>".$res['duracion']."</Length>";
  12. $salida_xml .= "<StreamUrls>".$res['url_video']."</StreamUrls>";
  13. $salida_xml .= "<StreamFormat>".strtolower($res['formato_video'])."</StreamFormat>";
  14. $salida_xml .= "<HDPosterURL>http://144.217.94.67/posters/".$poster."</HDPosterURL>";
  15. $salida_xml .= "<hdbackgroundimageurl>".$res['fondo']."</hdbackgroundimageurl>";
  16. $salida_xml .= "<Pin>".$res['pedir_pin']."</Pin>";
  17. $salida_xml .= "<SubtitleUrl>".$sub['subtitulo']."</SubtitleUrl>";
  18.  
  19. $salida_xml .= "</item>\n";  
  20.  
  21. }
  22.  
  23.  
  24. $salida_xml .= "</category>\n";
  25.  
  26. }
  27.  
  28. $salida_xml .= "</channel>";
  29. $salida_xml .= "</rss>";
  30. echo $salida_xml;