Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1654
  • Last Modified:

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.
Thanks.
0
mhmr
Asked:
mhmr
  • 2
2 Solutions
 
Dave BaldwinFixer 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.
0
 
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
0
 
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.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now