[PHP] Re: generate an etag header that apache can subsequently use, how?

2007-06-22 Thread M. Sokolewicz
hey Jochem, as far as I can see, this should work for you: ?php $stats = stat('/dev/shm/file'); $etag = sprintf('%x-%x-%x', $stats['ino'], $stats['size'], $stats['mtime']); // lowercase hexadecimal numbers separated by dashes header('Etag: '.$etag); ? Assuming your apache is configured to use

Re: [PHP] Re: generate an etag header that apache can subsequently use, how?

2007-06-22 Thread Jochem Maas
hi Tul, thanks for the feedback ... can I borrow your brain for a little longer? M. Sokolewicz wrote: hey Jochem, as far as I can see, this should work for you: ?php $stats = stat('/dev/shm/file'); $etag = sprintf('%x-%x-%x', $stats['ino'], $stats['size'], $stats['mtime']); //