I do not know any PHP, so another developer helped me with this code. I am trying to return the names of all the files in a folder on my server. Then they are transferred to my iPhone application that uses data. However, I have 160 files in the folder, and the JSON string returns 85. Is there anything not in this code:
<?php
$path = 'Accepted/';
$files = glob("{$path}/{*.jpg,*.jpeg,*.png}", GLOB_BRACE);
echo json_encode($files);
?>
Gary
source
share