Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Using php & Javascript (Ajax & jQuery) in Cronjobs

Posted on 2011-03-08
4
Medium Priority
?
1,597 Views
Last Modified: 2012-05-11
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
Comment
Question by:mhmr
  • 2
4 Comments
 
LVL 84

Accepted Solution

by:
Dave Baldwin earned 1000 total points
ID: 35080116
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
 
LVL 2

Author Comment

by:mhmr
ID: 35083078
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
 
LVL 83

Assisted Solution

by:leakim971
leakim971 earned 1000 total points
ID: 35083260
0
 
LVL 2

Author Closing Comment

by:mhmr
ID: 35202547
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

These days socially coordinated efforts have turned into a critical requirement for enterprises.
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to count occurrences of each item in an array.
Suggested Courses

885 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question