Forum Moderators: coopster

Message Too Old, No Replies

Cronjob works but my php file doesn't do what he must do?

         

keitai

6:11 pm on Mar 20, 2006 (gmt 0)

10+ Year Member



Ok I know how to set a cronjob and tested this cronjob


30 18 * * * /usr/bin/php /local/web/.../www/web/test.php
30 18 * * * /usr/bin/php /local/web/.../generate.php

My test.php is just a simple email to myself, this one works.

With generate.php I have troubles, here I use fopen and fwrite. For the file path I use /local/web/.../

Now when I browse to generate.php it works fine but with the cronjob it doesn't, what should I do?

oh I have chmod 0777 generate.php

keitai

10:21 pm on Mar 20, 2006 (gmt 0)

10+ Year Member



ok found a solution had to do with my cron

I added


/usr/bin/wget -q http://www.etc