title: how to run jquery ajax in cronjob
body: <p>i want to run a ajax function in cronjob..</p>
  
  <p>my code is :</p>
  
  <pre><code>&lt;?php
  function sendSMS($username, $password, $phones, $text){?&gt;
  
  &lt;script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript"&gt;
   $(document).ready(function (){ 
  
    var smsUrl='http://bulksms.mysmsmantra.com:8080/WebSMS/SMSAPI.jsp?username=&lt;?php echo $username ?&gt;&amp;password=&lt;?php echo $password ?&gt;&amp;sendername=NETSMS&amp;mobileno=&lt;?php echo $phones ?&gt;&amp;message=&lt;?php echo $text?&gt;'; 
  
      $.ajax({
  
                   data     : '',
                   type     : "get",
                   url      : smsUrl,
                   error    : function(resp){
                   },
                   success  : function(resp){
                   }
  
     });
  });
  &lt;/script&gt;
  &lt;?php }?&gt;
  </code></pre>
  
  <p>the code is working fine if i run the php page manually in the browser.. but not work in cron job... is it possible to run ajax function in cronjob?  </p>