parsing.html为PHP:如何检查哪个方法是正确的?
将.html文件parsing为PHP的常用方式是将以下行的第一个(PHP作为Apache模块)或两者(PHP作为CGI)添加到.htaccess文件中: AddType application/x-httpd-php .html .htm AddHandler application/x-httpd-php .html .htm 有时需要x-http-php5 ,具体取决于主机: AddType application/x-httpd-php5 .html .htm AddHandler application/x-httpd-php5 .html .htm 但是,我现在正在一个新的东道主,没有渗透这些线路的工作。 在所有情况下,原始文件被发送到浏览器,并且wget显示x-httpd-php被呈现为Content-Type! HTTP request sent, awaiting response… HTTP/1.1 200 OK Date: Tue, 07 Aug 2012 14:16:40 GMT Server: Apache Last-Modified: Tue, 07 Aug 2012 07:46:44 GMT ETag: "862239-14-4c6a83216c100" Accept-Ranges: bytes Content-Length: 20 X-Powered-By: PleskLin Keep-Alive: timeout=15, […]