Allright I have this PHP script which works fine when run from the browserwindow.
in the script there's a
$ping = shell_exec("ping -c 1 domain.com");
I want it to mail the $ping value to me. The mailer is not the problem.
just to see if the cronjob was started succesfully I put a mailcommand at the beginning of the script, mailing me that it has started. this message did arrive.
I think the error is at the shell_exec, since all the $ping-related processing is not executed, basically giving me the idea that $ping does not exist, thus the shell_exec was not run.
i think?
in the script there's a
$ping = shell_exec("ping -c 1 domain.com");
I want it to mail the $ping value to me. The mailer is not the problem.
just to see if the cronjob was started succesfully I put a mailcommand at the beginning of the script, mailing me that it has started. this message did arrive.
I think the error is at the shell_exec, since all the $ping-related processing is not executed, basically giving me the idea that $ping does not exist, thus the shell_exec was not run.
i think?