- Nov 25, 2004
- 320
- 0
- 0
i put this php code in absolute.php and uploaded to: domain.com/folder/
<?php echo $_SERVER['DOCUMENT_ROOT']; ?>
and it returned:
/kunden/homepages/41/d171141329/htdocs/domain.com
i downloaded putty for windows.. and connected through ssh.
crontab -e
pressed the insert key and typed in
# daily reset stats
20 19 * * * php /kunden/homepages/41/d171141329/htdocs/domain.com/folder/reset.php
pressed esc and typed in :wq and enter
now when i type in crontab -l it lists it.. so it should be saved, and it will run that php script at 7:20 (this is just to test.. i'm changing to midnight "00 00" later)
but it doesn't run.. i'm positive the php file works cause when i goto manually into my browser it runs the code.. do you know what i'm doing wrong?
<?php echo $_SERVER['DOCUMENT_ROOT']; ?>
and it returned:
/kunden/homepages/41/d171141329/htdocs/domain.com
i downloaded putty for windows.. and connected through ssh.
crontab -e
pressed the insert key and typed in
# daily reset stats
20 19 * * * php /kunden/homepages/41/d171141329/htdocs/domain.com/folder/reset.php
pressed esc and typed in :wq and enter
now when i type in crontab -l it lists it.. so it should be saved, and it will run that php script at 7:20 (this is just to test.. i'm changing to midnight "00 00" later)
but it doesn't run.. i'm positive the php file works cause when i goto manually into my browser it runs the code.. do you know what i'm doing wrong?