content-type=text/html Problems with PHP
Patrick May 31, 2000
e-mail it to me. I'll talk about my opinion. Previous article
The following text is because the younger brother to see the recent forum on this kind of problem a lot and write, also please many advice!!!
In this site's frequently asked questions about how to get rid of some of the PHP4 of redundant information, but strictly speaking this information is divided into two parts: part is to indicate that PHP is running the message, that is, what x-powered-by, and a part of the declaration of the file's default content form text /html. The answers in the FAQ address the first part of the question (as long as the relevant line is OK), but the forum is more about the latter part of the question, I would like to discuss this issue.
The first thing to state is that this is likely to happen when PHP is running in CGI, so the younger brother suspects that most of the WIN32 platform is wrong.
First of all, one of the most extreme solutions is to comment out all extensions, that is, the database, graphics, mail, and so on in the php.ini extension modules are declared not to load, some php.ini files similar to the following form:
; 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
So what if you need these modules? Little brother my solution only on the corresponding page dynamic loading, that is, DL () up--before the younger brother I also wondered what the use of this function, now, haha ... If you have any good way, you can also post it and share it with you!
The next solution is to use the PHP-q parameter, according to PHP's own argument is "suppress HTTP header output" that is, prohibit HTTP headers. This is solve everything, but any of your headers () and Setcookie () are useless-hey, your PHP is basically scrapped. So, it's just a wo rash way.
OK, so much so that you should be able to solve the CGI mode of running PHP above the problem. The above information synthesizes the www.faqts.com of the PHP section-that place can be top of the question site, often have php/zend writers and some PHP book authors to answer your question, how wonderful!!!
Welcome you to advise!
http://www.bkjia.com/PHPjc/532020.html www.bkjia.com true http://www.bkjia.com/PHPjc/532020.html techarticle php content-type=text/html question Patrick May 31, 2000 send it to me. I'll talk about my opinion. The following text is due to the younger brother to see recent forums on this category ...