Can I run PHP code through web server?

If you have done all of that and your code is still being displayed in the browser, then you will need to make sure that your files are using the .php extension! PHP code will not be executed if it is saved inside a .html file! Run it through your web server!
For More Information Please Refer:

You May Also Like to Read: