As implied in the title, the Cron Job is supposed to execute a php file (update.php, to be specific). The php file then writes to a csv file stored in the same directory.
I have the time set to * * * * * so that it executes every minute. The command is written as follows: php -q /home//public_html/wallboard/update.php I don't believe this is causing any errors, though it also doesn't seem to write to the CSV file. When I visit update.php in a browser, however, it executes and writes to the CSV file immediately. I'm not experienced with Cron Jobs and I'm sure there's an issue, but I don't know what exactly that issue is. Let me know if you have suggestions/questions. Any help is appreciated!
* * * * * usr/bin/php -q /home/<user>/public_html/wallboard/update.php
<?php include('lib/HelpDeskView.php'); include('lib/WallboardDisplay.php'); include('helpdesk.csv'); $helpdesk = new HelpDeskView(); $text=" test,test,test"; file_put_contents( "helpdesk.csv" , $text, FILE_APPEND);