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

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -