File path: dist/twist/Core/Utilities/File.utility.php
Namespace: Twist\Core\Utilities
Extends: Base
serve
— Serve any local file to the user to be downloaded. Mime type, Max Cache Time and Restricted Download Speed in KB are all optional
Name | Description |
---|---|
$strFile | n/a |
[$strServeAsName = null] | n/a |
[$strMimeType = null] | n/a |
[$intMaxCacheTime = null] | n/a |
[$intMaxTransferRate = null] | n/a |
[$blDeleteFile = false] | n/a |
void — No return information has been documented for this function.
<?php
//Set the variables for the example
$strFile = 'foo';
$strServeAsName = null;
$strMimeType = null;
$intMaxCacheTime = null;
$intMaxTransferRate = null;
$blDeleteFile = false;
//Call the function serve with the example vars
Twist::File() -> serve($strFile, $strServeAsName, $strMimeType, $intMaxCacheTime, $intMaxTransferRate, $blDeleteFile);