Date/PHP

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • neworldisorder
    Corporal

    • Sep 2005
    • 18

    Date/PHP

    Hi - I'm trying to put the date on my web pages with the following code:
    <? print(date("m-d-Y")); ?>

    It doesn't seem to like it - no date showing up - do I need to alter this, or is it down to the server settings?

    Thanks!

    Paul.
  • neworldisorder
    Corporal

    • Sep 2005
    • 18

    #2
    I sorted this problem - for future reference:

    One needs to log into to the CP - goto Apache Handlers - add the following:

    In the extensions box add: .php .html
    In the handlers box add: application/x-httpd-php

    Thanks!

    Comment

    Working...
    X