Re: Cron & unlink
| From: | Dave W | Date: | Mon, 03 Jul 2006 00:14:04 +0000 |
| Subject: | Re: Cron & unlink | ||
| References: | 1 2 3 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-42151@lists.php.net to get a copy of this message | ||
oops. yea, chris is right. I thought you were trying to delete files.
On 7/2/06, Dave W <dabbaking@gmail.com> wrote:
You have to use the absolute (or server, whatever you want to call it) path. So like..../home/www/sessions/files/ or whatever it is. On 7/2/06, Ron Piggott (PHP) <ron.php@actsministries.org> wrote: Does anyone have experience in getting unlink to work within the context of a cron? I created my own garbage collection function and I am trying to delete some session files through a cron that runs every 10 minutes. The session files are owned by 'www' The cron is ran by 'actsmin' The 'unlink' command works within the context of a php script when activated by a user on the web site. Is there another file deletion command within PHP other than unlink? Here is the error message I am e-mailed by the cron when it doesn't successfully delete a session file:-- Dave WWarning: unlink(/path/to/sessions/files/): Is a directory in /path/to/php/script/cron/calls/script.php on line 47Any suggestions? Ron -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Dave W