I have make one cron job as below
<?php
echo "HI";
?>
When i ran it using cron job it give me error “?php directory not found”
Please help me regarding this.
Thanks in advance.
Kanji
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
How do you run it as a cron job? Either you need to run it like
Or you need to run it directly (without php) and put the following at the top:
In the above examples you need to replace
phpby the full path to your php instance, which you can find my typing the following on the shell: