-6

/home/public_html/backoffice/ca/article/mail.php: line 1: ?php: No such file or directory /home/public_html/backoffice/ca/article/mail.php: line 2: =: command not found /home/public_html/backoffice/ca/article/mail.php: line 3: syntax error near unexpected token '(' /home/public_html/backoffice/ca/article/mail.php: line 3: `echo $today = date('Y-m-d');'

pls help me

6
  • first run it in browser, check if it runs or not
    – codeGig
    Commented Mar 11, 2016 at 13:30
  • when i run php file directly it is running. Commented Mar 11, 2016 at 13:31
  • can you just show me cron command
    – codeGig
    Commented Mar 11, 2016 at 13:32
  • * * * * * /home/public_html/backoffice/ca/article/mail.php Commented Mar 11, 2016 at 13:33
  • what hosting company are you running it on ?
    – Shujaat
    Commented Mar 11, 2016 at 13:34

1 Answer 1

0

Use

/usr/bin/php -q /home/public_html/backoffice/ca/article/mail.php
2
  • Thanks it is working. Commented Mar 11, 2016 at 13:40
  • Accept this answer
    – codeGig
    Commented Mar 11, 2016 at 13:42

Not the answer you're looking for? Browse other questions tagged or ask your own question.