--- Jake McHenry <[EMAIL PROTECTED]> wrote:
> I know this is a bit off topic, but does anyone know of a way I can
> take the server time in php and get it into javascript?

Well, that part isn't off-topic, in my opinion.

JavaScript and HTML are the exact same thing from the perspective of PHP;
they're output. So yes, you can get any information from PHP to JavaScript by
writing it:

<script language="javascript">
...
<?
$ts = time();
echo "var ts = $ts;\n";
?>
...
</script>

My JavaScript syntax might be wrong, but hopefully you get the idea.

Chris

=====
My Blog
     http://shiflett.org/
HTTP Developer's Handbook
     http://httphandbook.org/
RAMP Training Courses
     http://www.nyphp.org/ramp

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to