|
You have $newfile in quotes
$newfile = '"'.$path_info['filename'] . ' [Compatibility Mode].pdf"';
So if $path_info['filename'] is 'abc' you'd get
$newfile = '"abc [Compability Mode].pdf"';
but it should be
$newfile = 'abc [Compability Mode].pdf';
So change your row into
$newfile = $path_info['filename'] . ' [Compatibility Mode].pdf';
__________________
Your answers will only be as good as your question. Formulate it well and give all the necessary information.
|