title: Automate PHP Script
body: <p>As part of a data import I have created a PHP file that runs on a webserver / localhost to input data into a database from a CSV source file. The problem is this page needs to be opened manually so in essence is just like running the actual MySQL script behind it.</p>
  
  <p>How can I add this file to run at a specific day everyday on the server without "Human" interaction.</p>
  
  <p>I tried some of the other solutions such as:
  Starting PHP in Task Schedular and then running it with the argument 
  -f C:\Apache24\htdocs\my_phpfile.php</p>
  
  <p>However, this did not seem to execute the PHP file because when looking at the info in the table it was not updated. I know the PHP file works as I have run this manually through a browser.</p>
  
  <p>Please could I get some advice / help? What is the best way to do this? </p>
  
  <p>I am currently testing the environment on my windows 10 laptop, but ultimately this will run on a Windows 2012 Server.</p>
  
  <p>Thanks.</p>