PDA

View Full Version : cron trouble



belbek
08-10-2007, 07:45 AM
have 2 files: php and txt
php should write into txt some javascript.
Everything ok when I start php by hand but
when I do it with cron
fwrite from php-file outputs me the number if bites written in txt file so cron sems to be works fine but in fact txt-file remains untached.

I run cron every minute with command:
* * * * * /usr/local/bin/php -q /home/public_html/file.php

please, help if you can