The following text is written by the younger brother because he has seen many questions about this type on the forum recently. please kindly advise !!! 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 those what X-POWERED-BY and so on; there is a part of the statement of the following text is because the younger brother saw the recent forum on such a lot of questions and write, please give me more 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; there is a part that declares the default content form 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 scrapped. 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 !!!