| PHP configuration help (inline PHP not working)? I am having problems getting inline PHP to work correctly. If I do
"""
<?php
printf("<html><body><p>The time is %s.</p></body></html>", date("g:i a", time()));
?>
"""
it will print "The time is 10:08 am."
However, if I do
"""
<html><body><p>The time is <?php date("g:i a", time()) ?>.</p></body></html>
"""
all I get is "The time is ." printed to the screen. What am I missing in either php.ini or http.conf to get this inline php to work correctly. |