Re: [PHP] Executing after certain time

2001-07-06 Thread AJDIN BRANDIC
if you are going to use a cron job and you haven't got 'php as CGI' then use something like below and save it in your crod_daily or hourly #! /bin/sh wget -q -c http://my.domain/phpfile.php3 /dev/null Ajdin On Thu, 5 Jul 2001, Marty Landman wrote: At 08:41 am 7/5/01 -0700, Oliver Hotz

[PHP] Executing after certain time

2001-07-05 Thread Oliver Hotz
Hey guys, I have a php script that generates files, and a www page that links to them. Is there a way to delete those files, based on a time variable ?.. lets say 1 minute after they have been generated, they get deleted ? (this is on redhat linux, and the latest build of php/apache 1.3)

Re: [PHP] Executing after certain time

2001-07-05 Thread Marty Landman
At 08:41 am 7/5/01 -0700, Oliver Hotz wrote: Hey guys, I have a php script that generates files, and a www page that links to them. Is there a way to delete those files, based on a time variable ?.. Why not have cron kick off a script every minute that checks all candidate files and deletes

RE: [PHP] Executing after certain time

2001-07-05 Thread Don Read
On 05-Jul-01 Oliver Hotz wrote: Hey guys, I have a php script that generates files, and a www page that links to them. Is there a way to delete those files, based on a time variable ?.. lets say 1 minute after they have been generated, they get deleted ? man find (check for the -mmin