Thinkphp 3.2 Response Header x-powered-by modification

Source: Internet
Author: User

At first, I saw the login link of the thousand maps.

Own made the site also looked down

The way to change is in the framework of TP3.2.2.

The specific path is D:\www\ThinkPHP\Library\Think\View.class.php

It's about 93.

 /** * Output content text can include HTML * @access private * @param string $content output * @param string $charset template output Character set * @param string $contentType Output Type * @return Mixed*/    Private functionRender$content,$charset= ",$contentType= ' '){        if(Empty($charset))$charset= C (' Default_charset '); if(Empty($contentType))$contentType= C (' Tmpl_content_type '); //page character encoding        Header(' Content-type: '.$contentType.‘; Charset= '.$charset); Header(' Cache-control: '. C (' Http_cache_control '));//Page Cache Control        Header(' X-powered-by:xxxcms '); //Output Template file        Echo $content; }

After the change, we'll see that it's already there.

Thinkphp 3.2 Response Header x-powered-by modification

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.