title: Getting cron job to execute script on OSX 10.10 (Yosemite) XAMPP
body: <p>Been messing around with XAMPP Cron Jobs for awhile and can't seem to get these to work right. This is being run on my personal computer for Mac OSX Yosemite. Using the terminal to make this work. The script is a PHP file. I put the default application to open up in a browser. It runs the cron job but it opens it up as if it is a text file and not as if it is a php script.</p>
  <p>I did test this individually script separate from the cron and it works fine. Just for testing purposes I have it just writing to basic txt file. The paths are the default that pretty much comes with XAMPP.</p>
  <p>Example of cron job in terminal</p>
  <p>1 * * * * /usr/bin/open /Applications/XAMPP/xamppfiles/htdocs/rest of my path/write.php</p>
  <p>The cron job does pull up the script in the default browser but is read like a text file.</p>
  <p>So in the URL bar it starts off with file:// and than the cron job command path listed in the example.</p>
  <p>Two questions:</p>
  <h1>1 Is there a way to make this execute the same way if I visited the webpage?</h1>
  <h1>2 Is there a way to make this run in the background?</h1>
  <p>Thanks for any input.</p>