Oh, bummer. Do you have SSH access? I can walk you through the commands to execute to see what the underlying calls are.
It says SSH is enabled.
Okay, so depending on operating system, you either don’t need to install anything or you may need to download PuTTY – if you use Windows, you need it.
Once you have that, you will enter your domain name as the host (example: sitepoint.com), leave the port as 22
It will attempt to connect and you can use your username and password (might be the same one you use for FTP), to login.
Once logged in, type crontab -l
, that should list all cron jobs for your given user.
It just says
-bash: crontab: command not found
Bummer, so they may have locked that down as that should be available to all users
Aw, well. Thanks all for trying.
As a temp patch up, I may use the old-style syntax on the cron scripts, as felgal suggests.
I may have to write to the host and ask why they have such antiquated versions of php.
And in the long term, look at other hosts, as I’ve not been too satisfied with them lately.
I think I’ve had enough for today now. Will be back tomorrow.
Can someone confirm that cron is not part of the Php language and is a separate version specific library.
Tapped from a tablet.
Crontab is a feature of Linux it has nothing to do with php. The host could very well be using two separate versions of php one for the server and another for the cli.
It appears to all be working now. Using the old-skool syntax as felgal suggested.
$options = array(PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC);
and the executes something like this:
$sql->execute(array('id' => $id)) ;
This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.