title: php cron job execute javascript as well
body: <p>I have a cron job running a php script, but theres some html and javascript that I need to execute for the actual script to work. </p>
  
  <p>Converting the javascript to php isnt an option. </p>
  
  <p>Basically I need it to act as though a person is viewing the page every time the cronjob runs.</p>
  
  <p>EDIT:
  the script uses javascript from a different site to encrypt some passwords so it is able to log into my account on the site, and the javascript is thousands of lines. The way the script flows is: Send data to website>get the data it sends back>use sites javascript to alter data>set html form value to value of data returned by javascript function>submit html form to get info back to php>send data to log me in. I know the code is very shoddy but its the only way i could think to do it without having to rewrite all the javascript they use to encrypt the password to php</p>