evelands
10-24-2012, 09:22 PM
Hello,
I have a question about your Local Time script
http://www.dynamicdrive.com/dynamicindex6/localtime.htm
Your instructions say to insert this code in the Body:
Current Server Time:<span id="timecontainer"></span>
<script type="text/javascript">
new showLocalTime("timecontainer", "server-ssi", 0, "short")
</script>
… with servermode set to "server-php", "server-asp", or "server-ssi".
My ISP supports PHP but not SSI. So, my body text would be:
Current Server Time:<span id="timecontainer"></span>
<script type="text/javascript">
new showLocalTime("timecontainer", "server-php", 0, "short")
</script>
But, in the header code is this line:
var servertimestring=(servermode=="server-php")? '<? print date("F d, Y H:i:s", time())?>' : (servermode=="server-ssi")? '<!--#config timefmt="%B %d, %Y %H:%M:%S"--><!--#echo var="DATE_LOCAL" -->' : '<%= Now() %>'
I see servermode referenced twice here, indicating both php and ssi.
Here is my question: to invoke PHP, do I need to edit this as well?
Also, I am a bit confused why both protocols are referenced in the same line. (Pardon me if I am showing my ignorance here; I come by it naturally).
Thank you for your time and consideration.
Scott Eveland
I have a question about your Local Time script
http://www.dynamicdrive.com/dynamicindex6/localtime.htm
Your instructions say to insert this code in the Body:
Current Server Time:<span id="timecontainer"></span>
<script type="text/javascript">
new showLocalTime("timecontainer", "server-ssi", 0, "short")
</script>
… with servermode set to "server-php", "server-asp", or "server-ssi".
My ISP supports PHP but not SSI. So, my body text would be:
Current Server Time:<span id="timecontainer"></span>
<script type="text/javascript">
new showLocalTime("timecontainer", "server-php", 0, "short")
</script>
But, in the header code is this line:
var servertimestring=(servermode=="server-php")? '<? print date("F d, Y H:i:s", time())?>' : (servermode=="server-ssi")? '<!--#config timefmt="%B %d, %Y %H:%M:%S"--><!--#echo var="DATE_LOCAL" -->' : '<%= Now() %>'
I see servermode referenced twice here, indicating both php and ssi.
Here is my question: to invoke PHP, do I need to edit this as well?
Also, I am a bit confused why both protocols are referenced in the same line. (Pardon me if I am showing my ignorance here; I come by it naturally).
Thank you for your time and consideration.
Scott Eveland