hello. i have downloaded an html5 canvas script from https://github.com/zetakey/signsend and have had the script working. But for some reason line 68 from the https://github.com/zetakey/signsend/blob/master/upload_file.php file is now giving me an error
[email protected]
Notice : Undefined variable: i in /home/oststudentco/public_html/2019/upload_file.php on line 72Notice : String offset cast occurred in /home/oststudentco/public_html/2019/upload_file.php on line 72
Message delivery failed…
so the script is as above :
$message .= “Content-Type: application/octet-stream; name=”" . basename($files) . “”\n" . “Content-Description: " . basename($files[$i]) . “\n” . “Content-Disposition: attachment;\n” . " filename=”" . basename($files) . “”; size=" . filesize($files) . “;\n” . “Content-Transfer-Encoding: base64\n\n” . $data . “\n\n”;
could this be to do with the PHP version that is being used? if so how can i correct this rather than changing the PHP version
thanks