Is there any way to execute javascript in cron job

I am using javascript in my php file. when i execute this file in my browser its working fine. But in cron job its not working. But i want to use javascript that file. Is there any way to execute javascript file in cron job?
Who is Participating?
Derek JensenConnect With a Mentor Commented:
By very definition, JavaScript is only run client-side. That means that PHP can only output JavaScript via a text string. However, the JavaScript is not going to actually be executed until the output is accessed, externally.

Is there a particular reason you require javascript? There's nothing I've found that JS can do that PHP can't, and PHP usually does it much better and faster. :)
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.