class.upload.php is a powerful and mature PHP class to manage uploaded files, and manipulate images in many ways. The script is available under a GPL license.
require('libs/class.upload.php');
class TinyMVC_Library_Upload Extends upload {
function __construct() {
parent::__construct();
$tmvc = tmvc::instance();
}
}
now produces an error Error: E_WARNING Message: Missing argument 1 for upload::upload(), called in /home/otdc/domains/otdc.ru/public_html/paraavis/tinymvc/myfiles/plugins/tinymvc_library_upload.php on line 8 and defined File: /home/otdc/domains/otdc.ru/public_html/paraavis/libs/class.upload.php Line: 2573Reply
now produces an error
Error: E_WARNING
Message: Missing argument 1 for upload::upload(), called in /home/otdc/domains/otdc.ru/public_html/paraavis/tinymvc/myfiles/plugins/tinymvc_library_upload.php on line 8 and defined
File: /home/otdc/domains/otdc.ru/public_html/paraavis/libs/class.upload.php
Line: 2573
Everything works. :)