UNPKG

phpjs

Version:

php.js offers community built php functions in javascript

18 lines (13 loc) 940 B
<!-- Generated by Rakefile:build --> <strong> <a href="http://kevin.vanzonneveld.net" rel="nofollow">Kevin van Zonneveld</a> </strong> on 2009-02-02 10:41:33 <br /> @ Brett Zamir: It's probably possible to detect for this kind of input since the difference between good &amp;amp; bad input is at least 3 digits. Maybe we should sanitize it and save our users the trouble. <hr /> <strong> <a href="http://bahai-library.com" rel="nofollow">Brett Zamir</a> </strong> on 2009-02-02 03:25:09 <br /> A quick warning about this function (I'll try to add to SVN later)... This works in the PHP style of expecting a timestamp in seconds--NOT IN MILLISECONDS! So, don't try to pass in a raw JavaScript timestamp (like new Date())--which are in milliseconds, or else it will lock up the browser probably a thousand times longer than you intended! (No doubt you'd restart before that anyways (!), but, it's no fun to lock up the browser...) <hr />