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
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']); //
2 matches
Mail list logo