Php code doesn't work in browser

I wrote a html code in geany editor and put inside the php code but it doesn’t work in no one of my browsers

Hi @Sarah_Yks - PHP isn’t run in the browser (unlike JavaScript). It runs inside the web server before the page is sent to the browser. For more details see eg https://stackoverflow.com/questions/11144641/php-wont-work-in-my-browser

So to program in PHP you need a server to store and run the PHP files and access them from your browser. At the moment Endless OS doesn’t come with a web server like this (unless someone knows an easy way to install one?, so you might benefit from finding a shared server where you can upload your PHP files to run.

hmm thank you so much