0 votes
2.9k views
in Introduction to Hypertext Pre-Processor by (54.6k points)
closed by

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

1 Answer

+1 vote
by (51.3k points)
selected by
 
Best answer

1. PHP script can be written in side of HTML code and save the file with extension of .php. The embedded PHP file get 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.

Welcome to Sarthaks eConnect: A unique platform where students can interact with teachers/experts/students to get solutions to their queries. Students (upto class 10+2) preparing for All Government Exams, CBSE Board Exam, ICSE Board Exam, State Board Exam, JEE (Mains+Advance) and NEET can ask questions from any subject and get quick answers by subject teachers/ experts/mentors/students.

Categories

...