i am trying to copy a png file using the next code
$cty2 = 'filename';
fwrite($fh, $stringData);
$old = 'images/bg_freeze.png';
$new = 'images/$cty2.png';
copy($old, $new) or die("Unable to copy $old to $new.");
fclose($fh);
But, the result is a png file with this name ( $cty2.png ) it should be ( filename.png )
How I solve it to make the new file name ( filename.png ) not ( $cty2.png )