Function download_authcode_url
set all required informations for a secure download to the session and return the url for the download (session is required)
see the samples of the download manager
Located at
tools.lib.php
Parameters summary
string |
$url |
to the script where the function "download_from_authcode" is called (the download manager) |
string |
$file |
|
string |
$filename = "" |
|
string |
$contentType = "application/octet-stream" |
|
integer |
$authcode_expire_after_sec = null |
|
string |
$blocksize = null |
for download transfer, see also function "download" |
boolean |
$sessionOnDemand = false |
if "true" the download url contains a query string to create all session informations on demand (used for secure client/session independent downloads, as sample sending a download link via email) |
mixed |
$callback = null |
as 'my_callback_function' OR array('MyClass', 'myCallbackMethod') |
array |
$callback_para = null |
Return value summary
string
|
string |