trying to make this a php app