#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2012
    Posts
    29
    Rep Power
    0

    Want to show time in html for Apache server


    hi I am trying to show the time in HTML page, can show in other server but not working in Apache server....
    doing like this..
    Code:
    var stime = '<!--#config timefmt="%B %d, %Y %H:%M:%S" sizefmt="abbrev"--><!--#echo var="DATE_LOCAL"-->'
    var serverdate=new Date(stime);
    alert(serverdate);
  2. #2
  3. Transforming Moderator
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2007
    Location
    Washington, USA
    Posts
    14,245
    Rep Power
    9400
    Is the file running through the INCLUDES output filter (ie, running through the thing that interprets SSIs)?
    If you do a View Source on that page do you still see the <!--s in the Javascript?
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2012
    Posts
    29
    Rep Power
    0
    Yes..
  6. #4
  7. Transforming Moderator
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2007
    Location
    Washington, USA
    Posts
    14,245
    Rep Power
    9400

IMN logo majestic logo threadwatch logo seochat tools logo