cfleck
tired
i used php to create a site that keeps track of users hours at work. my current task it to automate the report generation at the end of each week.
in my "report generator" i used some functions that were written primarily for the web site. it all works fine so long as i execute the script via a browser. however, if i try to execute it via the command line it gives me an error that makes no sense to me. i've attached it at the bottom here. i need to set it up to automagically run every thursday at 4:00 for example.
i don't know if i'm running it correctly of it its even possible, but i just made the script executable and did a ./test.php
anyway, here is the error...
in my "report generator" i used some functions that were written primarily for the web site. it all works fine so long as i execute the script via a browser. however, if i try to execute it via the command line it gives me an error that makes no sense to me. i've attached it at the bottom here. i need to set it up to automagically run every thursday at 4:00 for example.
i don't know if i'm running it correctly of it its even possible, but i just made the script executable and did a ./test.php
anyway, here is the error...
PHP:
./test.php: line 1: syntax error near unexpected token `dbConnectCEEO()'
?> 'st.psend_reports();k(date('d'));;