The concept of PHTML and explanation of viewing phtml format files_PHP tutorial

WBOY
Release: 2016-07-13 17:41:32
Original
3562 people have browsed it

Concept:
A PHTML (sometimes called PHP) web page is a web page that contains PHP (a language similar to JavaScript or Microsoft VBScript) scripts. Like ASP, PHP scripts are embedded in the HTML code of the web page. among. The web server calls the PHP interpreter to interpret and execute the PHP script before the page is sent to the requesting user. Web pages containing PHP scripts usually have ".php", ".php3" or ".phtml" as the suffix. Like ASP, PHP can be considered a "dynamic web page".

View phtml format files:
Let Dreamweaver support phtml (support more file types)
The default extension of ZendFramework template is .phtml, and the default extension is .phtml after opening it with DW When using plain text editing, you cannot highlight or display code tips, etc. Simply modify the configuration file of DW to let DW open phtml and use the PHP engine to parse it:
Find the following files:
%Dreamweaver installation directory%
configuration
documenttypes
mmdocumenttypes. xml
 Change original content:
 
Modify to (add .phtml to the bold part):

Save Then restart DW.
In similar situations, you can also find the corresponding parsing engine in the mmdocumenttypes.xml file for manual modification.

  • Source: baike.baidu.com
  • www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/486123.htmlTechArticleConcept: PHTML (sometimes called PHP) web page is a web page that contains PHP (a language similar to JavaScript or Microsoft VBScript Language) script web pages are the same as ASP. PHP scripts are embedded in the web page...
    source:php.cn
    Statement of this Website
    The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
    Popular Tutorials
    More>
    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template
    About us Disclaimer Sitemap
    php.cn:Public welfare online PHP training,Help PHP learners grow quickly!