View Single Post
  #2  
Old 22nd June 2010, 15:20
Mark_NL Mark_NL is offline
Senior Member
 
Join Date: Sep 2008
Location: The Netherlands
Posts: 912
Thanks: 12
Thanked 100 Times in 96 Posts
Default

You can call that php file, but if you use relative includes etc in your php file, you need to chdir first ..

you could add
Code:
chdir("/var/www/mydomain.com/web/billing/");
at the start of your php file.

in your crontab you would put something like:

Code:
@daily www-data /usr/bin/php /var/www/mydomain.com/web/billing/thephp.php
Reply With Quote