View Single Post
  #1 (permalink)  
Old 01-05-2007, 03:11 PM
baggiho baggiho is offline
Member
 
Join Date: Oct 2006
Posts: 71
baggiho is on a distinguished road
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.