English

In how many ways you can embed PHP code in an HTML page?

Advertisements

Question

In how many ways you can embed PHP code in an HTML page?

Short/Brief Note
Advertisements

Solution

  1. PHP script can be written inside of HTML code and save the file with an extension of .php. The embedded PHP file gets executed in the Webserver, the browser receives only the HTML and other client-side files.
  2. Php files can also be embedded with css and js files.
  3. Using template engines like Smarty, DWOO, Mustache, Blade we can embed PHP files.
shaalaa.com
Web Development Concept
  Is there an error in this question or solution?
Chapter 4: Introduction to Hypertext Pre-Processor - Evaluation - PART – III [Page 96]
Advertisements
Share
Notifications



      Forgot password?
Use app×