> Example (which not works)
> index.php
> <?php
> 
>       // Read last timestamp
>       $file_name = "last_mail";
>       $file = fopen($file_name, "r+");
>       $content = fread($file, filesize($filename));
> 
>       $time = time();
>       if($file[0] >= $time + $diff) {
>               include "mailscript.php";
> 
>               // Write time back to file
>               fseek($file, 0);
>               fwrite($file, $time);
>       }
> 
>       fclose($file);
> 
> ?>

either like this, where it would be good if you could register the
script as a shutdown function, but then you'll have to be aware of the
difference in behaviour of register_shutdown_function() in differing php
versions.
or, if you're lucky, the cli version of php is installed and you can
call any php script with "php -f yourscript.php".


Grüße / Regards,
Oliver
--
Earth -- mother of the most beautiful women in the universe. -- Apollo,
"Who Mourns for Adonais?" stardate 3468.1


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to