Content-type = text/html in php

Source: Internet
Author: User
Tags php book
Content-type = text/html in php. read the content-type = text/html in php. the following text is written because the younger brother has seen many problems related to the forum recently, please kindly advise !!! Some additional information about how to remove PHP4 has been answered in the FAQ on this site, but strictly speaking, the information is divided into two parts: I wrote the following text "> <LINKhre because my younger brother saw many questions about this type on the forum recently. please give me some advice !!! Some additional information about how to remove PHP4 has been answered in the frequently asked questions on this site, but strictly speaking, this information is divided into two parts: one part indicates the message that PHP is running, is what X-POWERED-BY and so on; some are declarations of the default content format of the file text/HTML. The answers to the frequently asked questions solve the first part of the problem (as long as you add a question to the relevant line), but the forum is more about the last part of the questions, I want to discuss this question. In the beginning, I want to declare that this situation is likely to occur when PHP runs in CGI mode, so I guess most of them are WIN32 Platform errors. First, the most challenging solution is to comment out all the extension modules, that is, in PHP. in ini, the extension modules about databases, graphics, MAIL, and so on are declared not to be loaded. some PHP. the INI file is in the following format:
Windows Extensions
; Extension = PHP_mysql.dll
; Extension = PHP_nsmail.dll
; Extension = PHP_calendar.dll
; Extension = PHP_dbase.dll
; Extension = PHP_filepro.dll
; Extension = PHP_gd.dll
; Extension = PHP_dbm.dll
; Extension = PHP_mssql.dll
; Extension = PHP_zlib.dll
; Extension = PHP_filepro.dll
; Extension = PHP_imap4r2.dll
; Extension = PHP_ldap.dll
; Extension = PHP_crypt.dll
; Extension = PHP_msql2.dll
; Extension = PHP_odbc.dll
What if we need these modules? Younger brother, my solution is to dynamically load the corresponding page, that is, dl (). I used to think about the function. now, haha... If you have any good ideas, you can post them and share them with you! The second solution is to use the-q parameter of PHP. according to PHP, "Suppress HTTP Header Output" is used to disable HTTP Header Output. This is a hundred times, but none of your header () and setcookie () are useless-Hey, your PHP is basically useless. Therefore, this is just a solution for zookeeper. Well, that's all. it should be able to solve the above problems of running PHP in CGI mode. The above information integrates the relevant PHP section of www.faqts.com-The top-level question-making area in that place. there are often PHP/ZEND writers and some PHP book authors to answer your questions, great !!! Thank you for your advice!

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.