I wrote some PHP scripts and all works perfectly in my browsers. But then I create Cron jobs for that scripts and enter email for cron output I got mails with errors in my PHP scripts.
Its look like Cron daemon think that I have "Basic PHP Configuration" but I use "Intermediate PHP Configuration" and all needed PHP extensions allow for me (again, then I run this scripts from browser all OK).
Some info:
Cron daemon jobs:
php -q /home/carclub/public_html/**auto****.php - run every 15 minutes
php -q /home/carclub/public_html/****mail.php - run every hour
Errors(from Cron emails):
<b>Fatal error</b>: Call to undefined function mb_strcut() in <b>/home/carclub/public_html/****mail.php</b> on line <b>52</b>
<b>Fatal error</b>: Call to undefined function curl_init() in <b>/home/carclub/public_html/_****ser.php</b> on line <b>335</b>
Sorry for using asterics (*) in filenames, I don`t want show fullnames because somebody may want`s run this scripts and my site may down(I`m not good PHP programmer
).
Thank`s.
Its look like Cron daemon think that I have "Basic PHP Configuration" but I use "Intermediate PHP Configuration" and all needed PHP extensions allow for me (again, then I run this scripts from browser all OK).
Some info:
Cron daemon jobs:
php -q /home/carclub/public_html/**auto****.php - run every 15 minutes
php -q /home/carclub/public_html/****mail.php - run every hour
Errors(from Cron emails):
<b>Fatal error</b>: Call to undefined function mb_strcut() in <b>/home/carclub/public_html/****mail.php</b> on line <b>52</b>
<b>Fatal error</b>: Call to undefined function curl_init() in <b>/home/carclub/public_html/_****ser.php</b> on line <b>335</b>
Sorry for using asterics (*) in filenames, I don`t want show fullnames because somebody may want`s run this scripts and my site may down(I`m not good PHP programmer
Thank`s.
Last edited: