How to create a php application in cloudflare pages

I want to deploy cloudflare page using php or java there is some thing call pages environment but how to use it i want to deploy php pages

Hi @example0!
You would need to use PHP/Java to generate the static assets (HTML/JS/CSS/etc) that would be uploaded to Cloudflare Pages. You won’t be able to run PHP/Java code on Cloudflare Pages, just during the build stage to generate the static assets.

For reference, these languages/tools/runtimes are available to run during the build stage: https://developers.cloudflare.com/pages/platform/build-configuration#language-support-and-tools

Only static assets are deployed to your Cloudflare Pages site.

1 Like