Ver Mensaje Individual
  #1 (permalink)  
Antiguo 02/08/2007, 07:34
sintesk7
 
Fecha de Ingreso: agosto-2004
Mensajes: 349
Antigüedad: 19 años, 8 meses
Puntos: 3
sacar datos json desde php y mostrarlos

Hola amigos!

Tengo archivos en formato json que tienen la siguiente estructura:

Código HTML:
{ "count": 11,
 "photos": [{"photo_id": 2641000, "photo_title": "Estació de tren. Inca. Mallorca", "photo_url": "http://www.panoramio.com/photo/2641000", "photo_file_url": "http://static1.bareka.com/photos/medium/2641000.jpg", "longitude": 2.906141, "latitude": 39.718114, "width": 500, "height": 375, "upload_date": "08 June 2007", "owner_id": 380887, "owner_name": "homyr", "owner_url": "http://www.panoramio.com/user/380887"}
,
{"photo_id": 2640053, "photo_title": "cementerio de Inca", "photo_url": "http://www.panoramio.com/photo/2640053", "photo_file_url": "http://static2.bareka.com/photos/medium/2640053.jpg", "longitude": 2.909220, "latitude": 39.712300, "width": 500, "height": 375, "upload_date": "08 June 2007", "owner_id": 420396, "owner_name": "Julita", "owner_url": "http://www.panoramio.com/user/420396"}
,
{"photo_id": 2640039, "photo_title": "cementerio de Inca", "photo_url": "http://www.panoramio.com/photo/2640039", "photo_file_url": "http://static4.bareka.com/photos/medium/2640039.jpg", "longitude": 2.909070, "latitude": 39.712766, "width": 375, "height": 500, "upload_date": "08 June 2007", "owner_id": 420396, "owner_name": "Julita", "owner_url": "http://www.panoramio.com/user/420396"}
]}
en este caso son los datos de 3 fotos,

¿como hago en php para mostrar todas las fotos del archivo?

no sé como manejar este tipo de datos.

Gracias