I have a cron job that ideally I want to run hourly (it's on the FB accelerators and deals with realtime social stuff, so once an hour doesn't cut it)
1) Can I have a cron job that contains "run(), sleep(60), run()..." that lasts for 60 minutes?
2) Frequency of running aside, it currently outputs:
...web/public/mysqltest.php: ?php: cannot open
...web/public/mysqltest.php: require_once: not found
...web/public/mysqltest.php: include_once: not found
...web/public/mysqltest.php: include_once: not found
...web/public/mysqltest.php: syntax error at line 5: `(' unexpected
(the rest of the path is there).
How can I start debugging that message? It's odd to me that my server can't open a PHP file. When run in a browser it does its job admirably. The first 6 lines of the script are:
<?php
require_once 'facebook.php';
include_once 'lib.php';
include_once 'config.php';
$facebook = new Facebook($api_key, $secret);
get_db_conn();
Nothing super fancy as far as I can tell.
I can confirm that the include/required files are indeed in the same directory. Do they need a certain level of access permissions? Any and all help would be appreciated.