Using php & Javascript (Ajax & jQuery) in Cronjobs

Hi Experts
I need to run php page using the cronjob on my hosting account
i always do that and is working very well using the command "php5"
but now i need to run a php page which contains some javascript and ajax/jQuery
i can run this page from my browser( Client Side ) and it output and do just what i want but in cronjob it is'nt.

any help will be appreciated.
Who is Participating?
Dave BaldwinConnect With a Mentor Fixer of ProblemsCommented:
javascript, jQuery, and AJAX need a browser to run in.  In particular, the basis of AJAX, 'XMLHttpRequest', is a browser function, not even a javascript function.
mhmrAuthor Commented:
ok any way to do this
i have an ssh connection in my hosting package  if this doing any good.
so if that possible using a unix command??

Thanks in advance
mhmrAuthor Commented:
thanks all for the information provided,
i don't have enouph permession to install those programs.
so i'll try another way to run my script, may be i'll switch to php.
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.