Hello,
From my understanding, setting the ini value "html_error s" is supposed to
force the output from phpinfo to be either plain text or HTML.
I have setup two files. One is executes as CGI, and the other as
preprocessor.
(cgi:)
#!/usr/local/bin/php
<?PHP
print "Content-type: text/html\n\n";
ini_set("html_e rrors", "1");
phpinfo();
?>
(non cgi:)
<?
ini_set("html_e rrors", "0")."<br><br>" ;
phpinfo();
?>
Even though the value of "html_error s" is displayed correctly in phpinfo(),
the output type does not change. The CGI process will always display as
plain text, and likewise the preprocessor will always display as html
despite turning html_errors off.
How can I get the standard html phpinfo() output when running through CGI?
Thanks!
Christopher
From my understanding, setting the ini value "html_error s" is supposed to
force the output from phpinfo to be either plain text or HTML.
I have setup two files. One is executes as CGI, and the other as
preprocessor.
(cgi:)
#!/usr/local/bin/php
<?PHP
print "Content-type: text/html\n\n";
ini_set("html_e rrors", "1");
phpinfo();
?>
(non cgi:)
<?
ini_set("html_e rrors", "0")."<br><br>" ;
phpinfo();
?>
Even though the value of "html_error s" is displayed correctly in phpinfo(),
the output type does not change. The CGI process will always display as
plain text, and likewise the preprocessor will always display as html
despite turning html_errors off.
How can I get the standard html phpinfo() output when running through CGI?
Thanks!
Christopher
Comment