http_send_last_modified

(PECL pecl_http >= 0.1.0)

http_send_last_modifiedSend Last-Modified

說明

bool http_send_last_modified ([ int $timestamp = time() ] )

Send a Last-Modified header with a valid HTTP date.

Note: 此函式應與 http_send_data(), http_send_file()http_send_stream() 一同使用。

參數

timestamp

a Unix timestamp, converted to a valid HTTP date; if omitted, the current time will be sent

回傳值

如果成功則回傳 TRUE,失敗則回傳 FALSE

參見

  • 如使用 PHP 5.1.0 及以後版本中為 HttpResponse 類別。

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top