You may use the following syntax to run php script from your schedule task :-

 

/usr/bin/php /var/www/vhost/yourdmain.com/httpdocs/script-name.php

 

Was this answer helpful? 1 Users Found This Useful (4 Votes)