Question: what is a php file?
Answer: Generally speaking, a PHP file is a plain-text file which contains code written in the PHP programming language. ... The PHP engine on the web server converts all the code written in PHP to HTML, so the resulting web page contains only HTML code when it's sent to the client side for rendering in the user browser.