hi there,
it’s not possible to run php the way you are hoping to on netlify.
Here is a good summary of what you can and can not do on Netlify you might find helpful: