dforbu
03-24-2004, 03:00 PM
I am running apache 2.0.40 on redhat 9, with php 4.2.2. Stock setup.
The PHP works IF I don't mix any HTML into the code.
<?php phpinfo(); ?>
works perfectly, but
<HTML>
<HEAD>
<TITLE>test</TITLE>
</HEAD>
<BODY>
<?php phpinfo(); ?>
</BODY>
</HTML>
or even
<HTML>
<?php phpinfo(); ?>
</HTML>
does not. If I mix html tags in, and view the page with the browser, I see the line
<?php phpinfo(); ?>
in the page source. Is there some setting in php.ini or apache httpd.conf? I have several web servers running the same apache/php configuration, and I've never seen this happen before. It's as if apache isn't recognizing the '<? php' tags..
As a workaround, we're using echo to output HTML tags, but I should be able to mix up PHP and HTML.
The PHP works IF I don't mix any HTML into the code.
<?php phpinfo(); ?>
works perfectly, but
<HTML>
<HEAD>
<TITLE>test</TITLE>
</HEAD>
<BODY>
<?php phpinfo(); ?>
</BODY>
</HTML>
or even
<HTML>
<?php phpinfo(); ?>
</HTML>
does not. If I mix html tags in, and view the page with the browser, I see the line
<?php phpinfo(); ?>
in the page source. Is there some setting in php.ini or apache httpd.conf? I have several web servers running the same apache/php configuration, and I've never seen this happen before. It's as if apache isn't recognizing the '<? php' tags..
As a workaround, we're using echo to output HTML tags, but I should be able to mix up PHP and HTML.