modified:   php/get_ids.php