Crontab php


#1

Hello,

Can I use /usr/bin/env php with DH?
Is that the right location for env?

And if this function is not available, what’s the best way to execute a php file?

Thanks!


#2

/usr/bin/env php will work, but you’re better off just specifying the one you want: /usr/local/php5/bin/php


#3

Thanks! /usr/bin/env php did not work for me but usr/local/php did… :slight_smile: