HDTutorial
EN

Playback starts YouTube’s embedded player (privacy-enhanced mode).

How to run PHP code in HTML file

185,613 views October 26, 2015 7:09

Watch on YouTube
ChannelSo Phy

Description from the creator

You can't run PHP in .html files because the server does not recognize that as a valid PHP extension unless you tell it to. This video will show you how to make it possible to run PHP code in .html file.

About this tutorial

So Phy published this 7:09 video tutorial on October 26, 2015. It has been watched 185,613 times on YouTube.

Channel
So Phy
Category
Education
Duration
7:09
Published
October 26, 2015
Views
185,613
Likes
817

Tags

Share

Further reading

  • How to Use PHP in HTML - Code Envato Tuts+ code.tutsplus.com

    That's because the server is usually configured to run PHP only for files with the .php extension. If you want to run your HTML files as PHP, you can tell the server to run your .html files as PHP files, but it's a much…

  • How to use PHP in HTML pages ntchosting.com

    This will, however, affect the HTML Code Coloring option in most HTML/PHP editors, which allows for easy understanding of the role of HTML tags. You should escape each double quote within the HTML code with a backslash.…

  • How to Run PHP on an HTML File - ThoughtCo thoughtco.com

    If you are creating a new file anyway, you may as well use .php, but the way to execute PHP on a .html page is to modify the .htaccess file. This file may be hidden, so depending upon your FTP program, you may have to m…

This tutorial in other languages