Web студия "GrandView"
  Главная   Написать Контакты
   
   
О проекте
Руководство php
 

http_match_etag

(PECL)

http_match_etag -- Match ETag

Описание

bool http_match_etag ( [string etag [, bool for_range = FALSE]] )

Matches the given ETag against the clients If-Match resp. If-None-Match HTTP headers.

Список параметров

etag

The ETag to match

for_range

If set to TRUE, the header usually used to validate HTTP ranges will be checked

Возвращаемые значения

Returns TRUE if ETag matches or the header contained the asterisk ("*"), else FALSE.



add a note add a note User Contributed Notes
http_match_etag
root at mantoru dot de
01-Nov-2007 06:46
An Apache-like ETag can be generated like this:

<?php
function etag($filename, $quote = true) {
    if (!
file_exists($filename) || !($info = stat($filename))) {
        return
false;
    }
   
$q = ($quote) ? '"' : '';
    return
sprintf("$q%x-%x-%x$q", $info['ino'], $info['size'], $info['mtime']);
}
?>

http_match_modified> <http_support
Last updated: Fri, 26 Jan 2007
 
 
Новости
11 июля 2007
Сайт запущен
© 2007 info@grandviewstudio.com

Deprecated: Function set_magic_quotes_runtime() is deprecated in /home/sites/grandviewstudiocom/www/65f67d67a94ad980786580ae69e11c07/sape.php on line 324

Deprecated: Function set_magic_quotes_runtime() is deprecated in /home/sites/grandviewstudiocom/www/65f67d67a94ad980786580ae69e11c07/sape.php on line 330
Z058440144362 Z348613067571