com-tecnick-tcexam-admin

# Procedural File: tce_functions_upload.php Source Location: /admin/code/tce_functions_upload.php ## Page Details: Functions to upload files. #### Tags:
author: | Nicola Asuni
copyright: | Copyright © 2004-2010, Nicola Asuni - Tecnick.com S.r.l. - ITALY - www.tecnick.com - info@tecnick.com
link: | www.tecnick.com
since: | 2001-11-19
license: | GNU Affero General Public License
### F_is_allowed_upload [line 62]
`true F_is_allowed_upload( string $filename)`
Check if the uploaded file extension is allowed. #### Tags:
return: | in case of allowed file type, false otherwise
author: | Nicola Asuni
copyright: | Copyright © 2004-2010, Nicola Asuni - Tecnick.com S.r.l. - ITALY - www.tecnick.com - info@tecnick.com
link: | www.tecnick.com
since: | 2001-11-19
license: | GNU Affero General Public License
#### Parameters
string | $filename | the filename
[ Top ] ### F_read_file_size [line 110]
`mixed F_read_file_size( string $filetocheck)`
returns the file size in bytes #### Tags:
return: | file size in bytes or false in case of error
author: | Nicola Asuni
copyright: | Copyright © 2004-2010, Nicola Asuni - Tecnick.com S.r.l. - ITALY - www.tecnick.com - info@tecnick.com
link: | www.tecnick.com
since: | 2001-11-19
license: | GNU Affero General Public License
#### Parameters
string | $filetocheck | file to check (local path or URL)
[ Top ] ### F_upload_file [line 85]
`mixed F_upload_file( string $fieldname, string $uploaddir)`
Uploads image file to the server. #### Tags:
return: | file name or false in case of error
author: | Nicola Asuni
copyright: | Copyright © 2004-2010, Nicola Asuni - Tecnick.com S.r.l. - ITALY - www.tecnick.com - info@tecnick.com
link: | www.tecnick.com
since: | 2010-06-12
license: | GNU Affero General Public License
#### Parameters
string | $fieldname | form field name containing the source file path
string | $uploaddir | upload directory
[ Top ] Documentation generated on Mon, 06 Dec 2010 12:03:05 +0100 by phpDocumentor 1.4.3