http_match_modified
(PECL pecl_http >= 0.1.0)
http_match_modified — Comprobar si coincide la última modificación
Descripción
bool http_match_modified
([ int
$timestamp = -1
[, bool $for_range = false
]] )Comprueba si coincide la fecha Unix proporcionada con las cabeceras HTTP del cliente If-Modified-Since If-Unmodified-Since.
Parámetros
-
timestamp -
fecha Unix, o si se omite, la fecha actual
-
for_range -
si es
TRUE, se comprobará la cabecera normalmente usada para validar rangos HTTP
Valores devueltos
Devuelve TRUE si la fecha Unix corresponde a una fecha anterior a la de la cabecera, o si no FALSE.
Ver también
- http_match_etag() - Comprobar si coincide el ETag
- http_match_request_header() - Comprobar si coincide cualquier cabecera
- http_cache_etag() - Guardando en caché a partir de ETag
- http_cache_last_modified() - Guardando en caché por última modificación
There are no user contributed notes for this page.
