Yes, the PHP fillies are determined by its extension. IN the server that supports the PHP files see a file with the extension .php which means this file is a PHP file. PHP is an Interpreter based language. That means the PHP codes runs one line after another line. When a browser gets a PHP script it hands that file off to the PHP interpreter for the processing. The full process is done by the server.

The interpreter completes its things and hands the result of the interpreted script back to the webserver. Here keep in mind that, the most important things, the HTML, CSS and the JavaScript run in the browser. Your browser is not is an interpreter. So in the web browser don’t allow PHP files runs which is with the .html extension.

So you must have to name your file with the extension .php

I am Md Maruf Siddique. Chief Software Engineer of Infonex Software International Limited  Editor of Bayannonews.com I hope my article benefited you. Share this article with others. Thanks.
To read more blogs/articles of me, Visit: wordsence.com
Email me: softengmaruf@gmail.com
Follow me: Twitter , Facebook , Medium , Quora

NO COMMENTS

LEAVE A REPLY