Could someone tell me what I did wrong? I suck at PHP and it shows really
Parse error: parse error, unexpected T_STRING in /home/virtual/site3/fst/var/www/html/store/admin/includes/functions/general.php on line 785
PHP Code:
// the $filename parameter is an array with the following elements:
// name, type, size, tmp_name
function tep_copy_uploaded_file($filename, $target) {
if (substr($target, -1) != '/') $target .= '/$manufacturers_data['manufacturers_directory']';
$target .= $filename['name'];
move_uploaded_file($filename['tmp_name'], $target);
}
I modified this and it gave me the error
PHP Code:
if (substr($target, -1) != '/') $target .= '/$manufacturers_data['manufacturers_directory']';