Re: PHP Always Outputs [message #178628 is a reply to message #178624] |
Sat, 14 July 2012 13:37 |
Doug Miller
Messages: 171 Registered: August 2011
Karma:
|
Senior Member |
|
|
Ryan <rbilesky(at)gmail(dot)com> wrote in news:a5baa7aa-287c-4862-8ab9-898783d691f4
@googlegroups.com:
> I want a php script to run and simply output nothing. But even this script:
>
> <?php
> ?>
>
> will output this html
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
> <HTML><HEAD>
> <META content="text/html; charset=windows-1252" http-equiv=Content-Type></HEAD>
> <BODY></BODY></HTML>
>
> Is there a setting somewhere in my php or apache config that needs to be turned off?
Check your .htaccess file -- it probably contains a line that looks like this:
php_value auto_prepend_file "foo.php"
with the contents of the file foo.php resembling
echo "!<DOCTYPE HTML PUBLIC...";
echo "<HTML><HEAD>";
etc.
|
|
|