zend_send_file
bool zend_send_file(string filename[, string mime_type])
Description: Send a file using ZDS
Return Value: Returns FALSE if sending the file failed (does not return otherwise).
Parameters:
filename - path to the file.
mime_type - MIME type of the file, if omitted, it will be taken
from the configured MIME types file.
custom_headers - user defined headers that will be sent instead
of regular ZDS headers. A few essential headers will be sent anyway.
zend-send_buffer
bool zend_send_file(string buffer[, string mime_type][, string custom_headers])
Description: Send a file using ZDS
Return Value: Returns FALSE if sending the file failed (does not return otherwise).
Parameters:
buffer - the content that will be sent.
mime_type - MIME type of the file, if omitted, it will be taken
from the configured MIME types file.
custom_headers - user defined headers that will be sent instead
of regular ZDS headers. A few essential headers will be sent anyway.
Note:
The ZDS is not currently supported in Windows.
|
|
|
|
|
Related Links: |
|
|
|