<?php
// your code goes here
$string = "../images/box1/IMG_3158.JPG../images/box1/IMG_3161.JPG../images/box1/IMG_3163.JPG../images/box1/IMG_3158.JPG../images/box1/IMG_3161.JPG../images/box1/IMG_3163.JPG";
$file_paths = explode('..', $string);
PD9waHAKCi8vIHlvdXIgY29kZSBnb2VzIGhlcmUKJHN0cmluZyA9ICIuLi9pbWFnZXMvYm94MS9JTUdfMzE1OC5KUEcuLi9pbWFnZXMvYm94MS9JTUdfMzE2MS5KUEcuLi9pbWFnZXMvYm94MS9JTUdfMzE2My5KUEcuLi9pbWFnZXMvYm94MS9JTUdfMzE1OC5KUEcuLi9pbWFnZXMvYm94MS9JTUdfMzE2MS5KUEcuLi9pbWFnZXMvYm94MS9JTUdfMzE2My5KUEciOwokZmlsZV9wYXRocyA9IGV4cGxvZGUoJy4uJywgJHN0cmluZyk7CnZhcl9kdW1wKCRmaWxlX3BhdGhzKTs=