Preparing list of locations for php