About PHP to do front page and background home page problems (ask greatly!) )

Source: Internet
Author: User
is PHP not generally responsible for the background? How to do front page design? Recently read a book on the development of a project.


Reply to discussion (solution)

Front page design is by Html+css, and PHP's main function is to read the data, and to the foreground output HTML+CSS code.

The project is all PHP suffix, is to take HTML contains PHP files, why do you want to end in PHP?

Take HTML containing PHP files
To be exact, embed PHP code in HTML code, almost all Web page dynamic language is so dry. Here are some instructions in the manual.
http://www.php.net/manual/zh/intro-whatis.php
Why do you want to end with PHP?
This is the usual configuration, Web servers such as Apache, and will only process the requested. php suffix file as a script. and the. html suffix will not be given to PHP processing, directly read and output to the client even if it is finished.
However, it all depends on the website developer's wishes. Raise your head a little, and you can see the link to this post:
http://topic.csdn.net/u/20120408/11/227d2e02-f303-45ac-b44a-0ba9f645ceff.html?66342
It is suffixed with. html. But in fact, it is also the result of a dynamic language such as PHP or ASP.

is PHP not generally responsible for the background? How to do front page design? Recently read a book on the development of a project.


It depends on how you understand it.
For a website: to the user to see the front desk, to the administrator to see the backstage
For a page: layout, style, static content is the foreground, dynamic content is the background

The project is all PHP suffix, is to take HTML contains PHP files, why do you want to end in PHP?

PHP suffix files are interpreted by the PHP system for execution, such as no special settings PHP system only explanation php suffix file

For PHP files, it should say: PHP contains HTML

It has to do with the composition of your project and personnel.
If the noun to explain the boss has said very detailed.

If you do a project on your own, then from the PHP developer, of course, the front desk is also done, will also prefer to use PHP to manipulate the display of the foreground part. But your book is probably a lot of junk, just look at it anyway.

Use PHP How to write a lottery quiz front screen.

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.