Éste es el resto de código que contiene $popo[$i]:
Código PHP:
<?php
session_start();
$ruta_imagen=$_GET['ruta'];
if($ruta_imagen!=NULL)
{
if($_SESSION['foto']==NULL)
{
$rut=array();
$rutimagen[0]=$ruta_imagen;
$_SESSION['foto']=$rutimagen;
$popo=$_SESSION['foto'];
}
else
{
$foto=$_SESSION['foto'];
$num=count($foto);
$rutimagen=$_SESSION['foto'];
$rutimagen[$num]=$ruta_imagen;
$_SESSION['foto']=$rutimagen;
$popo=$_SESSION['foto'];
}
}
?>
Saludos y gracias!!!