php - Running Javascript file on the server using crontab -
i have javascript file processing , calls php file in end. need entire processing on server using cron tab.
can write javascript file
<?php echo '<script type="text/javascript"> // js code ... </script>'; ?>
and use crontab run php file?
or
should use node.js run javascript file on server using cron tab?
you have choose if want run javascript code in server or in client.
in first case, need use node.js, server-side. if javascript code must run in client, can install add-on on browser make automatic time time (you can program simulate requests).
Comments
Post a Comment